/* =========================================================================
   MARTA FERNÁNDEZ · LOGOPEDA
   Hoja de estilos principal
   -------------------------------------------------------------------------
   Índice:
     1.  Variables / tema (colores, tipografías, espaciados)
     2.  Reset y utilidades base
     3.  Cabecera / navegación
     4.  Hero (portada) + slider
     5.  Franja de confianza / metodología
     6.  Servicios
     7.  Cita destacada (quote)
     8.  Sobre mí
     9.  Proceso de trabajo
     10. SEO local / zonas de atención
     11. Centros colaboradores
     12. Preguntas frecuentes
     13. Contacto
     14. Footer
     15. Animaciones al hacer scroll (reveal)
     16. Páginas legales
     17. Banner y modal de cookies
     18. Media queries generales
   ========================================================================= */


/* =========================================================================
   1. VARIABLES / TEMA
   -------------------------------------------------------------------------
   Toda la paleta de color vive aquí, extraída del logo definitivo
   (negro cálido + dorado). Si en el futuro cambia la paleta, solo hay
   que tocar este bloque: el resto del CSS usa siempre estas variables.
   ========================================================================= */
:root {
  /* Color de marca — extraído del logo (M/F en negro + trazo dorado) */
  --ink: #17140f;             /* texto oscuro principal (negro cálido del logo) */
  --ink-2: #2b2318;           /* negro cálido, un tono más claro (fondos oscuros, tallos) */
  --gold: #f0b94f;            /* dorado de marca (trazo del logo): acentos, formas, hover */
  --gold-deep: #946011;       /* dorado oscurecido: texto/enlaces con buen contraste sobre blanco */
  --gold-pale: #fbeac8;       /* dorado muy claro: insignias y fondos suaves */
  --cream: #f8f2e7;           /* fondo cálido */
  --paper: #fffcf7;           /* fondo base */
  --sand: #f0e6d2;            /* fondo cálido secundario */
  --white: #fff;
  --muted: #6b6259;           /* texto secundario */
  --line: rgba(23, 20, 15, .12); /* bordes sutiles */

  /* Otros tokens */
  --shadow: 0 24px 70px rgba(23, 20, 15, .14);
  --radius: 22px;
}

/* =========================================================================
   2. RESET Y UTILIDADES BASE
   ========================================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

.section-pad {
  padding: 110px 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: white;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 9999;
}

.eyebrow {
  margin: 0 0 15px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 600;
  color: var(--gold-deep);
}
.eyebrow.light {
  color: #f6dfa8;
}

h1, h2, h3, p {
  margin-top: 0;
}
h1, h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
}
h1 {
  font-size: clamp(3.4rem, 7vw, 6.5rem);
  line-height: .94;
  margin-bottom: 28px;
}
h1 span {
  color: var(--gold-deep);
}
h2 {
  font-size: clamp(2.5rem, 4.6vw, 4.6rem);
  line-height: 1.02;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.05rem;
}
p {
  color: var(--muted);
}

/* Botones y enlaces con flecha */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border: 1px solid var(--ink);
  transition: .25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(23, 20, 15, .18);
  background: #0d0b08;
}
.btn-sm {
  padding: 11px 18px;
  font-size: .85rem;
}
.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}
.text-link {
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.text-link span {
  transition: .2s;
}
.text-link:hover span {
  transform: translateX(4px);
}

/* =========================================================================
   3. CABECERA / NAVEGACIÓN
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 250, 247, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  height: 112px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  margin-right: auto;
}
.brand img {
  width: 225px;
  height: 96px;
  object-fit: contain;
  object-position: left center;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: .85rem;
}
.main-nav a {
  position: relative;
}
.main-nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: .25s;
}
.main-nav a:hover:after {
  width: 100%;
}
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  width: 42px;
  height: 42px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
  border-radius: 2px;
}

/* =========================================================================
   4. HERO (PORTADA) + SLIDER
   ========================================================================= */
.hero {
  background:
    radial-gradient(circle at 81% 46%, rgba(240, 185, 79, .16), transparent 34%),
    linear-gradient(180deg, #fbfaf7 0%, #f5f0e8 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 34px;
  align-items: center;
}
.hero-text {
  max-width: 600px;
  font-size: 1.06rem;
  line-height: 1.85;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  gap: 18px;
  margin-top: 36px;
  font-size: .8rem;
  color: var(--muted);
}
.hero-meta span {
  padding-left: 16px;
  position: relative;
}
.hero-meta span:before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-visual {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-photo-frame {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 540px;
  overflow: hidden;
  border-radius: 150px 56px 150px 56px;
  box-shadow: 0 28px 70px rgba(23, 20, 15, .16);
  background: #e8e3db;
}
.hero-photo-frame:after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: inherit;
  pointer-events: none;
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% 48%;
  transform: scale(1.015);
}

/* Formas orgánicas decorativas del hero (se mueven ligeramente al hacer scroll, ver JS) */
.organic-shape {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
.shape-a {
  width: 390px;
  height: 430px;
  background: rgba(224, 217, 207, .78);
  right: -70px;
  top: 24px;
  border-radius: 55% 45% 60% 40% / 45% 60% 40% 55%;
  transform: rotate(10deg);
}
.shape-b {
  width: 320px;
  height: 330px;
  background: rgba(240, 185, 79, .24);
  left: -78px;
  bottom: -12px;
  border-radius: 45% 55% 38% 62% / 60% 40% 58% 42%;
  transform: rotate(-14deg);
}

.botanical {
  position: absolute;
  z-index: 4;
  width: 155px;
  height: 195px;
  opacity: .38;
  pointer-events: none;
}
.botanical-left {
  left: -30px;
  bottom: 6px;
  transform: rotate(-16deg);
}
.botanical-right {
  right: -32px;
  bottom: 18px;
  transform: scaleX(-1) rotate(-12deg);
}
.botanical:before {
  content: "";
  position: absolute;
  width: 1px;
  height: 170px;
  background: #2b2318;
  left: 74px;
  bottom: 0;
  transform: rotate(20deg);
  transform-origin: bottom center;
}
.botanical span {
  position: absolute;
  width: 48px;
  height: 78px;
  border: 1px solid #2b2318;
  border-radius: 100% 0 100% 0;
  background: rgba(255, 255, 255, .1);
}
.botanical span:nth-child(1) { left: 26px; bottom: 22px; transform: rotate(-35deg); }
.botanical span:nth-child(2) { right: 13px; bottom: 66px; transform: rotate(38deg); }
.botanical span:nth-child(3) { left: 42px; bottom: 112px; transform: scale(.72) rotate(-16deg); }

.hero-note {
  position: absolute;
  z-index: 5;
  right: 16px;
  bottom: 24px;
  background: rgba(255, 255, 255, .94);
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(23, 20, 15, .12);
  font-size: .82rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* --- Slider hero: 3 imágenes + 1 vídeo ---------------------------------- */
.hero-slider {
  display: block;
  position: relative;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .75s ease, visibility .75s ease;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
/* Red de seguridad CSS: sin JS, se muestra solo la primera imagen (a
   sangre, sin solaparse con las demás) en lugar de dejar el hueco vacío. */
html.no-js .hero-slide {
  opacity: 1;
  visibility: hidden;
}
html.no-js .hero-slide:first-child {
  visibility: visible;
  z-index: 1;
}
.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% 48%;
  display: block;
}
.hero-slide img {
  transform: scale(1.015);
}
.hero-slide video {
  background: #dcd8d1;
}

/* El vídeo se muestra "contenido" (no a sangre) dentro de su slide */
.hero-slide video {
  width: auto;
  height: 88%;
  max-width: 85%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 28px;
  box-shadow: 0 15px 40px rgba(23, 20, 15, .15);
}
.hero-slide.video-slide {
  background: #f7f0e0;
}

.video-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.video-controls {
  position: absolute;
  z-index: 20;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.video-control {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(23, 20, 15, .82);
  color: white;
  font-size: 16px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, background .2s ease;
}
.video-control:hover {
  transform: scale(1.08);
  background: #17140f;
}

.slider-arrow {
  position: absolute;
  z-index: 8;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(255, 255, 255, .8);
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  box-shadow: 0 8px 24px rgba(23, 20, 15, .1);
  opacity: 0;
  transition: .25s ease;
}
.hero-slider:hover .slider-arrow,
.slider-arrow:focus-visible {
  opacity: 1;
}
.slider-prev { left: 18px; }
.slider-next { right: 18px; }

.slider-dots {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, .82);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 20, 15, .3);
  cursor: pointer;
  transition: .25s ease;
}
.slider-dots button.active {
  width: 24px;
  border-radius: 99px;
  background: var(--ink);
}

/* Imagen hero-2 más contenida, sin afectar hero-1 / hero-3 */
.hero-slide img.hero-img-small {
  width: auto;
  height: 88%;
  max-width: 85%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 28px;
  box-shadow: 0 15px 40px rgba(23, 20, 15, .12);
}

/* =========================================================================
   5. FRANJA DE CONFIANZA / METODOLOGÍA
   ========================================================================= */
.trust-strip {
  background: var(--ink);
  color: #fff;
  padding: 54px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.trust-grid article {
  text-align: center;
  padding: 6px 18px;
}
.trust-grid h3 {
  margin: 12px 0 8px;
  color: #fff;
}
.trust-grid p {
  font-size: .86rem;
  color: rgba(255, 255, 255, .72);
  margin: 0;
}
.icon-circle {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(240, 185, 79, .55);
  color: var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto;
  font-size: .76rem;
  font-weight: 600;
}

/* =========================================================================
   6. SERVICIOS
   ========================================================================= */
.services {
  background: #fbfaf7;
}
.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.section-heading p:last-child {
  margin-bottom: 0;
}
.section-heading.narrow {
  max-width: 620px;
}
.section-heading.left {
  text-align: left;
  margin: 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
/* Pirámide invertida: 3 tarjetas arriba, 2 centradas abajo */
.service-card:nth-child(1) { grid-column: 1 / 3; }
.service-card:nth-child(2) { grid-column: 3 / 5; }
.service-card:nth-child(3) { grid-column: 5 / 7; }
.service-card:nth-child(4) { grid-column: 2 / 4; }
.service-card:nth-child(5) { grid-column: 4 / 6; }
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(23, 20, 15, .06);
  transition: .25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(23, 20, 15, .11);
}
.service-image {
  height: 210px;
  background: linear-gradient(135deg, #f3e6c8, #f0d9a0);
  position: relative;
}
.photo-slot:after {
  content: "Añade tu foto";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(23, 20, 15, .48);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.photo-slot img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-body {
  padding: 24px;
}
.service-body h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  margin: 0 0 8px;
}
/* Lista de puntos tratados dentro de cada servicio (lista simple, sin viñeta) */
.service-points {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.service-points li {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.4;
}

.services-cta {
  text-align: center;
  margin-top: 48px;
}

/* =========================================================================
   7. CITA DESTACADA (QUOTE)
   ========================================================================= */
.quote-band {
  background: linear-gradient(180deg, #f0e9df, #e8dfd3);
  padding: 90px 0;
}
.quote-wrap {
  text-align: center;
  position: relative;
}
.quote-mark {
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: 1;
  color: rgba(23, 20, 15, .18);
  margin-bottom: -34px;
}
.quote-wrap blockquote {
  margin: 0 auto;
  max-width: 850px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.5;
}
.quote-wrap strong {
  font-weight: 500;
}

/* =========================================================================
   8. SOBRE MÍ
   ========================================================================= */
.about {
  background: #fff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-copy p {
  font-size: 1rem;
  line-height: 1.85;
}
.about-photo {
  position: relative;
  min-height: 530px;
  background: linear-gradient(135deg, #f3e6c8, #ecd49c);
  border-radius: 48% 48% 20px 20px;
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.about-badge {
  position: absolute;
  z-index: 3;
  left: 28px;
  bottom: 28px;
  background: rgba(255, 255, 255, .92);
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(23, 20, 15, .12);
}
.about-badge strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
}
.about-badge span {
  font-size: .78rem;
  color: var(--muted);
}

/* =========================================================================
   9. PROCESO DE TRABAJO
   ========================================================================= */
.process {
  background: #f5f0e8;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.process-grid article {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(23, 20, 15, .08);
  padding: 28px;
  border-radius: 16px;
}
.process-grid span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: .8rem;
  margin-bottom: 18px;
}
.process-grid h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.process-grid p {
  font-size: .9rem;
  margin: 0;
}

/* =========================================================================
   10. SEO LOCAL / ZONAS DE ATENCIÓN
   ========================================================================= */
.local-seo {
  background: linear-gradient(135deg, #f4eee5, #fbfaf7);
}
.local-seo-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: center;
}
.local-seo .section-heading {
  margin: 0;
  max-width: none;
}
.local-seo strong {
  color: var(--ink);
  font-weight: 600;
}
.location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: center;
}
.location-chips span {
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 24px rgba(23, 20, 15, .05);
  font-size: .88rem;
  color: var(--ink);
  font-weight: 600;
}

/* =========================================================================
   11. CENTROS COLABORADORES
   ========================================================================= */
.centres {
  background: #fff;
}
.centres-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.centre-card {
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfaf7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 12px 32px rgba(23, 20, 15, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.centre-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(23, 20, 15, .11);
  border-color: rgba(23, 20, 15, .24);
}
.centre-card img {
  width: 100%;
  height: 82px;
  object-fit: contain;
}
.centre-card span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
}

/* =========================================================================
   12. PREGUNTAS FRECUENTES
   ========================================================================= */
.faq {
  background: #fbfaf7;
}
.faq-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: start;
}
.accordion details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.accordion summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary:after {
  content: "+";
  font-size: 1.2rem;
  color: var(--ink);
}
.accordion details[open] summary:after {
  content: "–";
}
.accordion p {
  margin: 12px 0 0;
  max-width: 680px;
}

/* =========================================================================
   13. CONTACTO
   ========================================================================= */
.contact {
  background: #fff;
}
.contact-card {
  background: var(--ink);
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  color: #fff;
  box-shadow: var(--shadow);
}
.contact-card h2 {
  color: #fff;
}
.contact-copy > p {
  color: rgba(255, 255, 255, .76);
  max-width: 650px;
}
.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.contact-edit-note {
  font-size: .78rem;
  margin-top: 18px !important;
}
.contact-edit-note code {
  color: #fff;
}
.contact-details {
  border-left: 1px solid rgba(255, 255, 255, .2);
  padding-left: 42px;
  display: grid;
  gap: 24px;
  align-content: center;
}
.contact-details div {
  display: grid;
  gap: 3px;
}
.contact-details span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #e8c98a;
}
.contact-details a,
.contact-details p {
  color: #fff;
  margin: 0;
}

/* =========================================================================
   14. FOOTER
   ========================================================================= */
.site-footer {
  background: #efe9e0;
  padding: 65px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr;
  gap: 50px;
}
.footer-brand img {
  width: 150px;
  margin-bottom: 14px;
}
.footer-brand p {
  max-width: 320px;
  font-size: .88rem;
}
.footer-grid h3 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 16px;
}
.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .85rem;
}
.footer-grid a:hover {
  color: var(--gold-deep);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: .78rem;
  color: var(--muted);
}

/* =========================================================================
   15. ANIMACIONES AL HACER SCROLL (REVEAL)
   -------------------------------------------------------------------------
   .reveal: aparece con fundido + desplazamiento cuando entra en pantalla
   (activado por IntersectionObserver en js/main.js).
   La variable --reveal-delay permite escalonar tarjetas/listas desde JS
   sin tener que escribir una clase distinta para cada elemento.
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0s);
}
/* Red de seguridad CSS: si por lo que sea el JS no llega a ejecutarse
   (bloqueado, sin conexión, navegador muy antiguo...), el HTML mantiene la
   clase "no-js" en <html> y este contenido se muestra igualmente, sin
   esperar a que nada lo revele. Ver el comentario en la sección 0 de
   js/main.js para el resto de la explicación. */
html.no-js .reveal {
  opacity: 1;
  transform: none;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay {
  transition-delay: .12s;
}

/* =========================================================================
   16. PÁGINAS LEGALES
   ========================================================================= */
.legal-page {
  background: linear-gradient(180deg, #fbfaf7, #f5f0e8);
  min-height: 100vh;
}
.legal-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, .92);
}
.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-header img {
  width: 190px;
  max-height: 82px;
  object-fit: contain;
  object-position: left center;
}
.legal-header a:last-child {
  font-weight: 600;
  color: var(--ink);
}
.legal-shell {
  width: min(920px, 92%);
  margin: auto;
  padding: 72px 0 100px;
}
.legal-shell h1 {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  margin-bottom: 18px;
}
.legal-shell h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-top: 46px;
  margin-bottom: 14px;
}
.legal-shell h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  margin-top: 30px;
}
.legal-shell p,
.legal-shell li {
  color: var(--muted);
}
.legal-shell ul {
  padding-left: 22px;
}
.legal-shell a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  margin: 26px 0;
  box-shadow: 0 12px 34px rgba(23, 20, 15, .05);
}
.legal-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}
.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.legal-table th {
  color: var(--ink);
  background: #f5f0e8;
  font-size: .88rem;
}
.legal-note {
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: #fff;
  border-radius: 0 12px 12px 0;
}
.legal-footer {
  padding: 28px 0;
  background: #efe9e0;
  border-top: 1px solid var(--line);
  font-size: .85rem;
}
.legal-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.legal-footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* =========================================================================
   17. BANNER Y MODAL DE COOKIES
   ========================================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5000;
  padding: 18px;
}
.cookie-banner__inner {
  width: min(1180px, 100%);
  margin: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 22px 70px rgba(23, 20, 15, .24);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
.cookie-banner__copy strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 7px;
}
.cookie-banner__copy p {
  font-size: .9rem;
  margin: 0 0 7px;
  max-width: 780px;
}
.cookie-banner__copy a {
  font-size: .82rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner__actions,
.cookie-modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-btn {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}
.cookie-btn:hover {
  transform: translateY(-1px);
}
.cookie-btn--primary {
  background: var(--ink);
  color: #fff;
}
.cookie-btn--secondary {
  background: #fff;
  color: var(--ink);
}
.cookie-btn--ghost {
  background: #f5f0e8;
  color: var(--ink);
  border-color: var(--line);
}
.footer-cookie-link {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.footer-cookie-link:hover {
  color: var(--gold-deep);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 5100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.cookie-modal[hidden],
.cookie-banner[hidden] {
  display: none;
}
.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 20, 15, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.cookie-modal__panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(760px, 90vh);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 30px 90px rgba(23, 20, 15, .3);
}
.cookie-modal__panel h2 {
  font-size: 2.3rem;
  margin-bottom: 12px;
}
.cookie-modal__close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.cookie-preference {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.cookie-preference p {
  font-size: .86rem;
  margin: 4px 0 0;
}
.cookie-required {
  font-size: .75rem;
  white-space: nowrap;
  background: #f7ecd6;
  color: var(--ink);
  padding: 7px 10px;
  border-radius: 99px;
  font-weight: 600;
}
.cookie-preference--toggle {
  cursor: pointer;
  position: relative;
}
.cookie-preference--toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cookie-switch {
  width: 50px;
  height: 28px;
  flex: 0 0 auto;
  background: #ded6c8;
  border-radius: 99px;
  position: relative;
  transition: .2s;
}
.cookie-switch:before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  transition: .2s;
}
.cookie-preference--toggle input:checked + .cookie-switch {
  background: var(--ink);
}
.cookie-preference--toggle input:checked + .cookie-switch:before {
  transform: translateX(22px);
}
.cookie-preference--toggle input:focus-visible + .cookie-switch {
  outline: 3px solid rgba(23, 20, 15, .25);
  outline-offset: 3px;
}

/* =========================================================================
   18. MEDIA QUERIES GENERALES
   ========================================================================= */
@media (max-width: 980px) {
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 112px;
    background: #fbfaf7;
    border-bottom: 1px solid var(--line);
    padding: 24px 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    transform: translateY(-130%);
    transition: .3s;
    z-index: -1;
  }
  .main-nav.open { transform: none; }
  .hero-grid, .about-grid, .faq-grid, .contact-card { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-visual { min-height: 520px; }
  .hero-photo-frame { height: 500px; border-radius: 110px 44px 110px 44px; }
  .botanical { opacity: .28; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card { grid-column: auto; }
  .contact-details { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); padding: 30px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .local-seo-grid { grid-template-columns: 1fr; gap: 36px; }
  .location-chips { justify-content: center; }
  .centres-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section-pad { padding: 82px 0; }
  .nav-wrap { height: 92px; }
  .brand img { width: 170px; height: 78px; }
  .main-nav { top: 92px; }
  .hero-grid { gap: 28px; }
  .hero-photo-frame { height: 420px; width: 100%; border-radius: 82px 32px 82px 32px; }
  .hero-visual { min-height: 445px; }
  .shape-a { width: 280px; height: 330px; right: -80px; }
  .shape-b { width: 210px; height: 220px; left: -70px; }
  .botanical { width: 110px; height: 145px; opacity: .22; }
  .botanical-left { left: -18px; }
  .botanical-right { right: -18px; }
  .hero-note { right: 4%; bottom: 8px; }
  .trust-grid, .process-grid, .services-grid { grid-template-columns: 1fr; }
  .trust-grid article { padding: 8px 12px; }
  .service-image { height: 230px; }
  .about-grid { gap: 42px; }
  .about-photo { min-height: 430px; }
  .contact-card { padding: 38px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .hero-meta { flex-direction: column; gap: 8px; }
  .hero-meta span { padding-left: 0; }
  .hero-meta span:before { display: none; }

  .hero-slide img.hero-img-small { height: 82%; max-width: 88%; border-radius: 20px; }

  .slider-arrow { opacity: .9; width: 38px; height: 38px; }
  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }
  .slider-dots { bottom: 12px; }

  .centres-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .centre-card { min-height: 150px; padding: 18px; }
  .centre-card img { height: 64px; }
}

@media (max-width: 760px) {
  .cookie-banner { padding: 10px; }
  .cookie-banner__inner { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .cookie-banner__actions .cookie-btn { flex: 1 1 120px; }
  .cookie-modal__panel { padding: 28px 20px; }
  .cookie-preference { align-items: flex-start; }
  .legal-shell { padding-top: 52px; }
}

/* Respeta la preferencia del sistema de reducir el movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .organic-shape {
    transform: none !important;
  }
}
