/*
Theme Name: Orden y Paz
Theme URI: https://ordenypaz.es
Author: María Zafra
Author URI: https://ordenypaz.es
Description: Tema WordPress para Orden y Paz — organizadora profesional en Montilla (Córdoba). Diseño sereno y minimalista, tipografía Playfair Display + Montserrat, secciones de presentación, servicios, preguntas frecuentes y contacto. Réplica fiel del sitio original.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orden-y-paz
Tags: one-column, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, blog
*/

:root {
  --background: #ffffff;
  --foreground: #242424;
  --secondary: #eef2f0;
  --muted-foreground: #6b6b6b;
  --border: #e0e0e0;
  --radius: 0.25rem;
  --max-w: 72rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.font-display { font-family: "Playfair Display", serif; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
.brand { line-height: 1; display: inline-block; }
.brand .name {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand .name em { font-weight: 300; font-style: italic; }
.brand .tag {
  display: block;
  margin-top: 0.25rem;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  color: var(--muted-foreground);
}
.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-desktop a {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(36, 36, 36, 0.8);
  transition: color 0.2s ease;
}
.nav-desktop a:hover { color: var(--foreground); }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; stroke-width: 1.5; }
.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 1rem 1.25rem;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(36, 36, 36, 0.8);
}

@media (min-width: 64rem) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
}
.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.hero .content {
  position: relative;
  z-index: 10;
  padding: 0 1.25rem;
  text-align: center;
  color: #fff;
}
.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.75rem;
  font-weight: 500;
  line-height: 1;
}
.hero h1 .outline {
  font-weight: 300;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.95);
  color: transparent;
}
.hero .subtitle {
  margin: 1.5rem auto 0;
  max-width: 36rem;
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.9);
}
.hero .cta-row {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  min-width: 11rem;
  padding: 0 2rem;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-solid { background: #fff; color: var(--foreground); }
.btn-outline { border: 1px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--foreground); }
.btn-dark { background: var(--foreground); color: #fff; }
.btn-line { border: 1px solid rgba(36, 36, 36, 0.4); color: var(--foreground); }
.btn-line:hover { background: var(--foreground); color: #fff; }

@media (min-width: 40rem) {
  .hero h1 { font-size: 4.5rem; }
  .hero .subtitle { font-size: 16px; }
  .hero .cta-row { flex-direction: row; }
}
@media (min-width: 48rem) {
  .hero h1 { font-size: 6rem; }
}

/* ===== Sections ===== */
section { padding: 5rem 0; }
@media (min-width: 48rem) { section { padding: 7rem 0; } }
.scroll-mt { scroll-margin-top: 6rem; }

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.15;
}
@media (min-width: 48rem) { .section-title { font-size: 3rem; } }

.overline {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted-foreground);
}

/* Conóceme */
.conoceme .grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.conoceme .portrait { box-shadow: 0 24px 50px -20px rgba(0,0,0,0.35); width: 100%; height: auto; }
.conoceme .body { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--muted-foreground); text-align: justify; }
.conoceme .body strong { font-weight: 600; color: var(--foreground); }
.conoceme .body .ask { font-family: "Playfair Display", serif; font-size: 1.25rem; font-style: italic; color: var(--foreground); }
@media (min-width: 48rem) {
  .conoceme .grid { grid-template-columns: 2fr 3fr; gap: 4rem; }
}

/* Quote slider */
.quotes { text-align: center; }
.quotes h3 {
  font-size: 1.5rem;
  font-weight: 200;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
@media (min-width: 48rem) { .quotes h3 { font-size: 1.875rem; } }
.quotes .stage { position: relative; margin-top: 2.5rem; min-height: 10rem; display: flex; align-items: center; justify-content: center; }
@media (min-width: 48rem) { .quotes .stage { min-height: 8rem; } }
.quotes blockquote {
  padding: 0 2.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.35;
  color: rgba(36, 36, 36, 0.7);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.quotes blockquote.hide { opacity: 0; transform: translateY(-12px); position: absolute; }
@media (min-width: 48rem) { .quotes blockquote { font-size: 2.25rem; } }
.quotes .controls { margin-top: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.quotes .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--border);
  background: none; cursor: pointer;
  color: rgba(36,36,36,0.6);
  transition: background 0.2s ease;
}
.quotes .arrow:hover { background: var(--secondary); }
.quotes .arrow svg { width: 1.25rem; height: 1.25rem; stroke-width: 1.5; }
.quotes .dots { display: flex; gap: 0.5rem; }
.quotes .dots span { width: 6px; height: 6px; border-radius: 999px; background: var(--border); }
.quotes .dots span.active { background: var(--foreground); }

/* Quien contrata */
.quien .grid { display: grid; gap: 2.5rem; align-items: start; }
.quien img { width: 100%; height: 100%; object-fit: cover; }
.quien ul { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; list-style: none; }
.quien li { display: flex; gap: 0.75rem; font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--muted-foreground); }
.quien li .mark { flex-shrink: 0; color: var(--foreground); }
@media (min-width: 48rem) { .quien .grid { grid-template-columns: 1fr 2fr; gap: 3.5rem; } }

/* Servicios */
.servicios h2 { text-align: center; }
.servicios .cards { margin-top: 3.5rem; display: grid; gap: 2rem; }
.servicios .card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--secondary);
  padding: 3rem 2rem; text-align: center;
}
.servicios .card h3 { margin-top: 1rem; font-family: "Playfair Display", serif; font-size: 1.875rem; font-weight: 500; }
.servicios .card p.text { margin-top: 1.5rem; flex: 1; font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--muted-foreground); }
.servicios .card .btn { margin-top: 2rem; }
.servicios .feature { margin-top: 2rem; display: grid; gap: 2rem; }
.servicios .feature img { width: 100%; height: 100%; object-fit: cover; }
.servicios .feature .panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--border); padding: 3rem 2rem; text-align: center;
}
.servicios .feature .star { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3em; color: var(--foreground); }
.servicios .feature .panel h3 { margin-top: 1rem; font-family: "Playfair Display", serif; font-size: 1.875rem; font-weight: 500; }
.servicios .feature .panel p { margin-top: 1.5rem; font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--muted-foreground); }
.servicios .feature .panel .btn { margin-top: 2rem; }
@media (min-width: 48rem) {
  .servicios .cards { grid-template-columns: 1fr 1fr; }
  .servicios .feature { grid-template-columns: 1fr 1fr; }
}

/* Servicios generales */
.generales .grid { display: grid; gap: 3rem; align-items: center; }
.generales .circle-wrap { position: relative; margin: 0 auto; max-width: 28rem; width: 100%; }
.generales .circle-ring { position: absolute; inset: -1rem; border: 1px solid rgba(36,36,36,0.15); border-radius: 999px; }
.generales .circle-img { aspect-ratio: 1 / 1; width: 100%; border-radius: 999px; object-fit: cover; }
.generales ul { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; list-style: none; }
.generales li { display: flex; gap: 0.75rem; font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--muted-foreground); }
.generales li .mark { flex-shrink: 0; color: var(--foreground); }
@media (min-width: 48rem) { .generales .grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* FAQ */
.faq { background: rgba(238, 242, 240, 0.6); }
.faq .inner { max-width: 48rem; margin: 0 auto; padding: 0 1.25rem; }
.faq h2 { text-align: center; }
.faq .accordion { margin-top: 3rem; }
.faq-item { border-bottom: 1px solid rgba(36,36,36,0.15); }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 0; background: none; border: none; cursor: pointer; text-align: left;
  font-family: "Playfair Display", serif; font-size: 1.25rem; font-weight: 500; color: var(--foreground);
}
@media (min-width: 48rem) { .faq-trigger { font-size: 1.5rem; } }
.faq-trigger .icon { flex-shrink: 0; margin-left: 1rem; transition: transform 0.3s ease; }
.faq-trigger .icon svg { width: 1.25rem; height: 1.25rem; stroke-width: 1.5; }
.faq-item.open .faq-trigger .icon { transform: rotate(45deg); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-content .inner-p { padding: 0 0 1.5rem; font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--muted-foreground); }

/* Contacto */
.contacto { text-align: center; }
.contacto .inner { max-width: 48rem; margin: 0 auto; padding: 0 1.25rem; }
.contacto .lead { margin: 1.5rem auto 0; max-width: 36rem; font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--muted-foreground); }
.contacto .btn { margin-top: 2.5rem; }

/* Footer */
.site-footer .top { border-top: 1px solid rgba(36,36,36,0.15); }
.site-footer .top .container { display: flex; flex-direction: column; align-items: center; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; }
.site-footer .socials { display: flex; align-items: center; gap: 2rem; }
.site-footer .socials a { color: var(--foreground); transition: opacity 0.2s ease; }
.site-footer .socials a:hover { opacity: 0.6; }
.site-footer .socials svg { width: 1.5rem; height: 1.5rem; stroke-width: 1.5; }
.site-footer .loc { display: flex; align-items: center; gap: 0.5rem; font-size: 14px; font-weight: 300; color: var(--muted-foreground); }
.site-footer .loc svg { width: 1rem; height: 1rem; stroke-width: 1.5; }
.site-footer .bottom { background: var(--foreground); padding: 1rem 0; }
.site-footer .bottom .container { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.8); }
@media (min-width: 40rem) {
  .site-footer .bottom .container { flex-direction: row; justify-content: space-between; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
