/* =========================================================
   Wtmw nails — Hoja de estilos
   Paleta oficial de la marca (logo/gama-colores-tipografía.pdf):
   #829B80 · #626F64 · #F0ECE3 · #737166. Diseño mobile-first.
   ========================================================= */

:root {
  /* Colores — los 4 oficiales + sombras/tintes derivados para legibilidad */
  --green:        #829B80;   /* verde salvia (oficial) */
  --olive:        #626F64;   /* verde oscuro (oficial): titulares, superficies medias */
  --green-deep:   #4a544b;   /* sombra del verde oficial: fondos oscuros con texto */
  --green-deeper: #394139;   /* fondo más profundo (footer, degradados) */
  --cream:        #f7f4ec;   /* fondo: tinte claro de la crema oficial */
  --cream-2:      #F0ECE3;   /* crema (oficial): paneles alternos */
  --sand:         #e3decf;
  --taupe:        #737166;   /* gris topo (oficial) */
  --sage-deep:    #5d6e5b;   /* salvia con contraste para texto pequeño */
  --sage-light:   #c5d4c0;   /* salvia clara para acentos sobre fondo oscuro */
  --ink:          #1e1e1e;   /* negro del logo */
  --muted:        #67655a;   /* topo oscurecido, legible sobre crema */
  --line:         #e0dbcc;
  --white:        #ffffff;
  --wa:           #25d366;
  --wa-deep:      #1da851;

  /* Tipografía — Chillax (la secundaria de la marca; el lettering "wtmw"
     es Tracy Queen y entra siempre como imagen del logo) */
  --display: "Chillax", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sans:    "Chillax", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Medidas */
  --container: 1180px;
  --radius:   14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 18px rgba(38, 56, 46, .08);
  --shadow:    0 14px 40px rgba(38, 56, 46, .14);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; color: var(--olive); }
button { font-family: inherit; cursor: pointer; }

/* Respeta el motivo del usuario de reducir animaciones */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

/* Para que la navegación con anclas no quede tapada por la cabecera fija */
section[id], header[id] { scroll-margin-top: 78px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green-deep); color: var(--cream);
  padding: 10px 16px; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* Foco accesible */
a:focus-visible, button:focus-visible, .filter:focus-visible, iframe:focus-visible {
  outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px;
}

/* =========================================================
   Botones
   ========================================================= */
.btn {
  --pad-y: .8em; --pad-x: 1.5em;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--sans); font-weight: 500; font-size: .98rem;
  letter-spacing: .02em; line-height: 1;
  border: 1.5px solid transparent; border-radius: 999px;
  text-align: center; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  min-height: 48px;
}
.btn--lg { font-size: 1.05rem; --pad-y: 1em; --pad-x: 1.9em; min-height: 54px; }
.btn:active { transform: translateY(1px); }

.btn--brand { background: linear-gradient(135deg, #8fa88d, var(--green)); color: #1e241e; box-shadow: 0 8px 22px rgba(130,155,128,.38); }
.btn--brand:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(130,155,128,.5); }

.btn--ghost { background: rgba(255,255,255,.08); color: var(--cream); border-color: rgba(255,255,255,.6); backdrop-filter: blur(2px); }
.btn--ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.btn--outline { background: transparent; color: var(--green-deep); border-color: var(--green); }
.btn--outline:hover { background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); transform: translateY(-2px); }

.btn--whatsapp { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(37,211,102,.32); }
.btn--whatsapp:hover { background: var(--wa-deep); transform: translateY(-2px); }

/* =========================================================
   Navegación
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s, box-shadow .35s, padding .35s;
  padding: 14px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 11px; }
/* Flor del logo: blanca sobre el hero, oscura cuando la barra se vuelve crema */
.brand__flower { width: 38px; height: auto; flex: none; }
.brand__flower--dark { display: none; }
.brand__name { display: flex; flex-direction: column; line-height: .98; }
.brand__name strong { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: .06em; color: var(--cream); }
.brand__name span { font-weight: 400; font-size: .68rem; letter-spacing: .42em; text-transform: uppercase; color: var(--sage-light); padding-left: 2px; }

/* En cabecera transparente (sobre el hero) el texto es claro */
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--cream); font-weight: 500; font-size: .98rem; position: relative; }
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--sage-light); transition: width .3s var(--ease);
}
.nav__links > a:not(.btn):hover::after { width: 100%; }
.nav__cta { color: #1e241e; }

/* Estado al hacer scroll — .nav--solid es la misma apariencia pero fija
   (para las subpáginas legales, que no tienen hero oscuro debajo) */
.nav.scrolled, .nav--solid { background: var(--cream); box-shadow: 0 6px 24px rgba(57,65,57,.10); padding: 9px 0; }
.nav.scrolled .brand__flower--light, .nav--solid .brand__flower--light { display: none; }
.nav.scrolled .brand__flower--dark, .nav--solid .brand__flower--dark { display: block; }
.nav.scrolled .brand__name strong, .nav--solid .brand__name strong { color: var(--olive); }
.nav.scrolled .brand__name span, .nav--solid .brand__name span { color: var(--sage-deep); }
.nav.scrolled .nav__links a, .nav--solid .nav__links a { color: var(--green-deep); }
.nav.scrolled .nav__cta, .nav--solid .nav__cta { color: #1e241e; }

/* Botón hamburguesa */
.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 46px; height: 46px; align-items: center; justify-content: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.5); border-radius: 12px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav.scrolled .nav__toggle, .nav--solid .nav__toggle { background: var(--cream-2); border-color: var(--line); }
.nav.scrolled .nav__toggle span, .nav--solid .nav__toggle span { background: var(--green-deep); }

/* Fondo semitransparente: al tocarlo se cierra el menú móvil */
.nav__backdrop { position: fixed; inset: 0; z-index: 95; background: rgba(30,30,30,.4); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.nav.menu-open .nav__backdrop { opacity: 1; visibility: visible; }
@media (min-width: 861px) { .nav__backdrop { display: none; } }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background: #394139 url("images/uñas-3.jpg") center / cover no-repeat;
  padding: 120px 0 90px;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(46,53,46,.55) 0%, rgba(46,53,46,.30) 35%, rgba(46,53,46,.78) 100%),
    linear-gradient(95deg, rgba(46,53,46,.82) 0%, rgba(46,53,46,.30) 60%, rgba(46,53,46,.10) 100%);
}
.hero__content { position: relative; max-width: 640px; margin-inline: auto; text-align: center; color: var(--cream); }
.hero__eyebrow {
  font-size: .78rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--sage-light); margin-bottom: 18px; font-weight: 500;
}
/* El nombre entra como imagen del logo (lettering Tracy Queen) */
.hero__title { margin: 6px 0 0; }
/* El lienzo lleva relleno a la derecha para que la flor quede centrada ópticamente */
.hero__logo { width: min(425px, 80vw); height: auto; display: block; margin-inline: auto; }
.hero__tagline { font-family: var(--display); font-size: clamp(1.2rem, 4.6vw, 1.65rem); font-weight: 400; color: var(--cream-2); margin-top: 22px; }
.hero__sub { font-size: 1.04rem; color: rgba(247,244,236,.9); margin-top: 18px; max-width: 33em; margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 34px; font-size: .92rem; color: rgba(247,244,236,.92); }
.hero__chips li { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(2px); }
.hero__chips a { color: inherit; }

/* =========================================================
   Estructura de secciones
   ========================================================= */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--cream-2); }
.section__head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 58px); text-align: center; }
.eyebrow { font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sage-deep); font-weight: 600; margin-bottom: 12px; }
.eyebrow--light { color: var(--sage-light); }
.section__title { font-size: clamp(2.1rem, 6vw, 3.2rem); }
.section__lead { color: var(--muted); margin-top: 14px; font-size: 1.06rem; }

/* =========================================================
   Servicios
   ========================================================= */
.services { display: grid; grid-template-columns: 1fr; gap: 18px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--sage-light); }
.service__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(135deg, #e9ede2, #dee5d8); color: var(--sage-deep); margin-bottom: 18px; }
.service__icon svg { width: 30px; height: 30px; }
.service h3 { font-size: 1.5rem; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: .99rem; }
.services__note { text-align: center; margin-top: 34px; color: var(--muted); }
.services__note a { color: var(--sage-deep); font-weight: 600; border-bottom: 1.5px solid var(--sage-light); padding-bottom: 1px; }
.services__note a:hover { color: var(--green-deep); }

/* =========================================================
   Galería + filtros
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.filter {
  background: transparent; border: 1.5px solid var(--line); color: var(--green-deep);
  padding: 9px 18px; border-radius: 999px; font-size: .9rem; font-weight: 500; letter-spacing: .01em;
  transition: background .25s, color .25s, border-color .25s, transform .2s;
  min-height: 42px;
}
.filter:hover { border-color: var(--green); transform: translateY(-1px); }
.filter.is-active { background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); }

.gallery { column-count: 2; column-gap: 12px; }
.gallery__item {
  break-inside: avoid; margin: 0 0 12px; position: relative;
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm); background: var(--sand);
}
.gallery__item img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.gallery__item::after {
  content: "🔍"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff; background: linear-gradient(0deg, rgba(57,65,57,.45), rgba(57,65,57,.1));
  opacity: 0; transition: opacity .3s;
}
@media (hover: hover) {
  .gallery__item:hover img { transform: scale(1.05); }
  .gallery__item:hover::after { opacity: 1; }
}
.gallery__item.is-hidden, .gallery__item.is-clamped { display: none; }
.gallery__more { text-align: center; margin-top: 28px; }

/* =========================================================
   Sobre nosotras
   ========================================================= */
.about { display: grid; grid-template-columns: 1fr; gap: 38px; align-items: center; }
/* Las fotos del local se muestran con su proporción real (sin recortar) */
.about__media { display: grid; gap: 16px; }
.about__img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: auto; display: block; }
.about__text .section__title { text-align: left; }
.about__text p { color: var(--muted); margin-top: 16px; }
.about__text p strong { color: var(--ink); }
.about__values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 26px; }
.about__values li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--green-deep); }
.about__values span { display: grid; place-items: center; width: 24px; height: 24px; flex: none; background: var(--green-deep); color: var(--sage-light); border-radius: 50%; font-size: .75rem; }

/* =========================================================
   Formación (banda)
   ========================================================= */
.formacion { background: var(--green-deep); color: var(--cream); padding: clamp(56px, 8vw, 90px) 0; position: relative; overflow: hidden; }
.formacion::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(197,212,192,.2), transparent 70%); }
.formacion__inner { position: relative; display: grid; gap: 28px; align-items: center; }
.formacion__text .section__title { color: var(--cream); text-align: left; }
.formacion__text p { color: rgba(247,244,236,.85); margin-top: 14px; max-width: 46em; }
.formacion__text p strong { color: var(--sage-light); }
.formacion .btn { justify-self: start; }

/* =========================================================
   Reseñas
   ========================================================= */
.reviews__rating { font-size: 1.02rem; }
.reviews__rating strong { color: var(--green-deep); }
.reviews__rating .stars { color: var(--green); letter-spacing: .08em; }

.reviews { display: grid; grid-template-columns: 1fr; gap: 20px; }
.review {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.review__stars { color: var(--green); letter-spacing: .14em; font-size: 1.02rem; margin-bottom: 16px; }
.review blockquote { font-family: var(--display); font-size: 1.12rem; line-height: 1.55; color: var(--olive); flex: 1; }
.review__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 22px; }
.review__name { font-weight: 600; color: var(--green-deep); font-size: 1rem; }
.review__src { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); font-weight: 600; flex: none; }

/* Tarjeta oscura "Ver todas las reseñas" */
.review--cta {
  background: var(--green-deeper); color: var(--cream); justify-content: center; gap: 14px;
  text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.review--cta:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.review__cta-stars { color: var(--green); letter-spacing: .14em; font-size: 1.02rem; }
.review__cta-text { font-family: var(--display); font-size: 1.3rem; line-height: 1.4; color: var(--cream); }
.review__cta-text strong { color: var(--sage-light); }
.review__cta-link { color: var(--sage-light); font-weight: 600; border-bottom: 1px solid rgba(197,212,192,.5); padding-bottom: 2px; align-self: flex-start; }

/* =========================================================
   Reservar (Booksy)
   ========================================================= */
.reservar { background: linear-gradient(160deg, var(--green-deeper), var(--green-deep)); color: var(--cream); padding: clamp(60px, 9vw, 104px) 0; text-align: center; position: relative; overflow: hidden; }
/* Flor del logo como marca de agua */
.reservar::before { content: ""; position: absolute; right: -55px; top: -45px; width: 230px; height: 230px; background: url("logo/flor_web_blanca.png") center / contain no-repeat; opacity: .08; transform: rotate(12deg); pointer-events: none; }
.reservar__inner { max-width: 680px; margin-inline: auto; position: relative; }
.reservar .section__title { color: var(--cream); }
.reservar__lead { color: rgba(247,244,236,.85); margin-top: 14px; font-size: 1.08rem; }
.reservar__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; margin-top: 32px; }
.reservar__actions .btn { min-width: 210px; }
.reservar__fallback { margin-top: 22px; font-size: .92rem; color: rgba(247,244,236,.7); }
.reservar__fallback a { color: var(--sage-light); border-bottom: 1px solid rgba(197,212,192,.5); }

/* El widget de Booksy se carga OCULTO (accesible para JS): el botón "Reservar cita"
   lo dispara para abrir la reserva en una ventana sobre la web. Así evitamos el botón
   turquesa "BOOK NOW" de Booksy y mantenemos un estilo coherente. */
.booksy-mount {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; pointer-events: none;
}

/* =========================================================
   Contacto
   ========================================================= */
.contact { display: grid; grid-template-columns: 1fr; gap: 30px; }
.contact__list { display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 15px; }
.contact__ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; background: var(--cream-2); border: 1px solid var(--line); border-radius: 12px; font-size: 1.1rem; }
.contact__list strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: var(--olive); margin-bottom: 2px; }
.contact__list a { color: var(--muted); }
.contact__list a:hover { color: var(--sage-deep); }
.contact__list span { color: var(--muted); }
.contact__social { display: flex; gap: 12px; margin-top: 4px; }

/* Enlaces de redes en forma de icono */
.social-link {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 50%; border: 1px solid var(--line); color: var(--green-deep);
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.social-link svg { width: 19px; height: 19px; }
.social-link:hover { background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); transform: translateY(-2px); }
.footer__social .social-link { border-color: rgba(255,255,255,.22); color: var(--sage-light); }
.footer__social .social-link:hover { background: var(--green); color: #1e241e; border-color: var(--green); }
.contact__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* El mapa de Google no se carga hasta aceptar cookies (o pulsar "Cargar mapa") */
.map-placeholder {
  min-height: 320px; height: 100%; display: grid; place-content: center; gap: 16px;
  text-align: center; padding: 28px; background: var(--cream-2);
}
.map-placeholder p { color: var(--muted); font-size: .95rem; max-width: 28em; }
.map-placeholder .btn { justify-self: center; }
.map-placeholder__ext { font-size: .9rem; color: var(--sage-deep); text-decoration: underline; text-underline-offset: 2px; }
.map-placeholder__ext:hover { color: var(--green-deep); }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--green-deeper); color: rgba(247,244,236,.78); padding: 56px 0 0; }
.footer__inner { display: grid; gap: 34px; }
.footer__logo { width: 190px; height: auto; }
.footer__brand p { font-family: var(--display); margin-top: 14px; color: rgba(247,244,236,.7); }
.footer__cta { margin-top: 22px; box-shadow: none; } /* sin halo sobre el fondo oscuro */
.footer__title { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sage-light); font-weight: 600; margin: 0 0 6px; }
.footer__links .footer__title { width: 100%; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.footer__links a:hover, .footer__contact a:hover { color: var(--sage-light); }
.footer__contact { display: grid; gap: 8px; }
.footer__social { display: flex; gap: 16px; margin-top: 4px; }
.footer__social a { color: var(--sage-light); font-weight: 600; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding: 20px 0; text-align: center; font-size: .85rem; color: rgba(247,244,236,.6); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; margin-top: 8px; }
.footer__legal a { text-decoration: underline; text-underline-offset: 2px; }
.footer__legal a:hover, .footer__legal a[aria-current="page"] { color: var(--sage-light); }

/* =========================================================
   Barra de acción móvil + FAB WhatsApp
   ========================================================= */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 8px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: rgba(247,244,236,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 22px rgba(57,65,57,.12);
  transform: translateY(115%); transition: transform .3s var(--ease);
}
.actionbar.is-visible { transform: translateY(0); }
.actionbar__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; font-weight: 600; font-size: .98rem; border: 1.5px solid var(--green); color: var(--green-deep); }
.actionbar__btn--primary { background: linear-gradient(135deg, var(--sage-light), var(--green)); border-color: transparent; color: #1e241e; }

.wa-fab {
  position: fixed; right: 22px; bottom: 24px; z-index: 90;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-fab:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 14px 30px rgba(37,211,102,.5); }

/* =========================================================
   Banner de cookies (consentimiento)
   ========================================================= */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 150;
  max-width: 460px;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 20px 22px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title { font-size: 1.2rem; margin-bottom: 6px; }
.cookie-banner__text { font-size: .93rem; color: var(--muted); }
.cookie-banner__text a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: 10px; margin-top: 16px; }
/* Aceptar y Rechazar con idéntica prominencia (requisito de la AEPD) */
.cookie-banner__btn {
  flex: 1; background: var(--cream-2); border-color: var(--green);
  color: var(--green-deep); font-weight: 600;
}
.cookie-banner__btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--cream); }

@media (max-width: 860px) {
  /* En móvil, banda a lo ancho justo por encima de la barra de acción */
  .cookie-banner {
    left: 10px; right: 10px; max-width: none;
    bottom: calc(74px + env(safe-area-inset-bottom));
  }
}

/* =========================================================
   Páginas legales (aviso legal, privacidad, cookies)
   ========================================================= */
.legal { max-width: 780px; padding-top: clamp(110px, 16vw, 150px); padding-bottom: 80px; }
.legal h1 { font-size: clamp(1.9rem, 5.5vw, 2.6rem); }
.legal__updated { font-size: .88rem; color: var(--taupe); margin-top: 10px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; margin-bottom: .4em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; margin-bottom: .3em; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin-top: .8em; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-top: .8em; }
.legal li { margin-top: .35em; }
.legal strong { color: var(--ink); }
.legal a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--green-deep); }
/* Huecos que debe rellenar la dueña: resaltados para que no pasen desapercibidos */
.legal .placeholder { background: var(--sand); padding: 1px 6px; border-radius: 6px; font-weight: 600; color: var(--green-deep); }
.legal__table-wrap { overflow-x: auto; margin-top: 1em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--muted); }
.legal th { background: var(--cream-2); color: var(--olive); font-weight: 600; }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(30,30,30,.94); padding: 20px;
  opacity: 0; animation: lbIn .25s var(--ease) forwards;
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { to { opacity: 1; } }
.lightbox__figure { max-width: min(92vw, 760px); max-height: 86vh; display: flex; flex-direction: column; align-items: center; }
.lightbox__figure img { max-height: 80vh; width: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__figure figcaption { color: rgba(247,244,236,.85); font-size: .92rem; margin-top: 14px; text-align: center; max-width: 40em; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.26); }
.lightbox__close { top: 18px; right: 18px; font-size: 1.2rem; }
.lightbox__nav--prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 14px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   Animaciones de aparición (scroll-reveal)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  /* Menú compacto desplegable desde el botón, no a pantalla completa */
  .nav__links {
    position: absolute; top: calc(100% + 6px); right: 16px; z-index: 120;
    width: min(72vw, 250px);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--green-deep); padding: 10px; border-radius: 16px;
    border: 1px solid rgba(240,236,227,.22);
    transform: translateY(-8px) scale(.98); opacity: 0; visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    box-shadow: 0 22px 50px rgba(0,0,0,.35);
  }
  .nav__links.open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
  .nav__links a { color: var(--cream) !important; font-size: 1.05rem; padding: 12px 14px; border-radius: 10px; }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__links > a:not(.btn):hover { background: rgba(255,255,255,.08); }
  .nav__cta { margin-top: 6px; text-align: center; }
  .nav__toggle { display: flex; position: relative; z-index: 120; }
  .nav.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* En móvil dejamos hueco para la barra de acción inferior */
  body { padding-bottom: 66px; }
  .actionbar { display: flex; }
  .wa-fab { display: none; }
}

@media (min-width: 600px) {
  .gallery { column-count: 3; }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .about__values { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1.05fr 1fr; align-items: stretch; }
  .formacion__inner { grid-template-columns: 1fr auto; }
  .formacion .btn { justify-self: end; }
  /* Footer a tres columnas: marca · secciones · contacto */
  .footer__inner { grid-template-columns: 1.25fr .8fr 1fr; gap: 48px; align-items: start; }
  .footer__links { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (min-width: 1000px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .gallery { column-count: 4; }
  .about { grid-template-columns: 1fr 1.05fr; gap: 56px; }
  .hero__content { max-width: 660px; }
}
