/* =========================================================
   Más que Ondas — Propuesta de rediseño
   Estética de salón de belleza integral: femenina, cuidada,
   sin ser infantil. Rosa palo + crema + dorado suave, mucho
   blanco, tipografía serif elegante en titulares.
   ========================================================= */

:root {
  /* Marca */
  --rose-900: #5c2a38;
  --rose-700: #93465c;
  --rose-500: #c67f93;
  --rose-300: #e7bdc8;
  --rose-050: #fbeeee;

  --gold: #b9945a;
  --gold-light: #e0c48a;

  /* Neutros — crema cálido, no blanco frío de "app" */
  --ink: #362a2c;
  --ink-soft: #71605f;
  --line: #ecdcd4;
  --bg: #fffaf6;
  --bg-soft: #faf0ea;
  --bg-dark: #2b1b22;
  --white: #ffffff;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 16px rgba(54, 42, 44, .08);
  --shadow: 0 16px 36px rgba(54, 42, 44, .14);
  --shadow-lg: 0 26px 60px rgba(54, 42, 44, .26);

  --maxw: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-display: 'Prata', 'Georgia', serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.16; font-weight: 400; letter-spacing: -.005em; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* Eyebrow: versalita con línea dorada, tono spa, sin píldora de color */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 400; font-size: .82rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold); }

.section { padding: clamp(60px, 8vw, 108px) 0; }
.section-head { max-width: 620px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow::after { content: ''; width: 26px; height: 1px; background: var(--gold); }
.section-head h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); margin: 16px 0 14px; color: var(--rose-900); }
.section-head p { color: var(--ink-soft); font-size: 1.03rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 14px 30px; border-radius: var(--radius-pill);
  cursor: pointer; border: 1.5px solid transparent; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease);
  white-space: nowrap; letter-spacing: .01em;
}
.btn-primary { background: var(--rose-700); color: #fff; }
.btn-primary:hover { background: var(--rose-900); transform: translateY(-1px); }
.btn-wa { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-wa:hover { border-color: #25D366; color: #1a8f47; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--rose-700); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 22px 0; transition: padding .35s var(--ease), background .35s, box-shadow .35s;
}
.header.scrolled { background: rgba(43,27,34,.95); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: 13px 0; }

/* Header sobre el hero (foto): siempre en tono oscuro, coherente en todo el
   recorrido — así el logo (raster oscuro, ver más abajo) y el texto de marca
   mantienen contraste tanto arriba del todo como tras hacer scroll. */
.header--hero::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 160px; pointer-events: none;
  background: linear-gradient(180deg, rgba(30,17,22,.65), rgba(30,17,22,0));
  z-index: 0; transition: opacity .35s;
}
.header--hero.scrolled::before { opacity: 0; }
/* La barra de marca + hamburguesa debe quedar SIEMPRE por encima del panel
   desplegable (aunque esté abierto): si no, al abrir el menú el propio panel
   (position:fixed) tapa la hamburguesa que lo abrió y no hay forma de cerrarlo. */
.header .nav { position: relative; z-index: 5; }
.header .brand { color: #fff; }
/* Logo es un PNG negro sin variantes de color: se fuerza a blanco por filtro
   en vez de mantener dos ficheros de logo — el header es siempre oscuro
   (antes y después de scroll), así que un único blanco fijo basta. */
.header .brand img { filter: brightness(0) invert(1); }
.header .nav-links > a { color: rgba(255,255,255,.86); }
.header .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.header .btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.header .burger { color: #fff; }

.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; letter-spacing: .01em; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand b { font-weight: 700; color: var(--gold-light); font-family: var(--font-body); }

.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 600; font-size: .88rem; letter-spacing: .03em; text-transform: uppercase; }
.nav-links > a { transition: color .2s; position: relative; }
.nav-links > a:hover { color: var(--gold-light); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; position: relative; background: none; border: 0; width: 28px; height: 28px; cursor: pointer; }
.burger svg { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; transition: opacity .2s; }
.burger .icon-close { opacity: 0; }
.header.menu-open .burger .icon-menu { opacity: 0; }
.header.menu-open .burger .icon-close { opacity: 1; }

/* El panel exterior es el que anima max-height: sin padding propio, porque el
   padding no se comprime por debajo de max-height y dejaría una barra visible
   tapando la cabecera incluso "cerrado". El padding real vive en .mobile-menu-inner.
   z-index por debajo de .header .nav (5) para que la marca y la hamburguesa
   (que también cierra el menú) queden siempre visibles y pulsables encima. */
.mobile-menu {
  display: none;
  position: fixed; left: 0; right: 0; top: 0; z-index: 2;
  background: var(--bg-dark); box-shadow: var(--shadow-lg);
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease);
}
.mobile-menu.open { max-height: 100vh; overflow-y: auto; }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 2px; padding: 92px 24px 24px; }
.mm-link { padding: 15px 6px; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 600; color: rgba(255,255,255,.9); text-transform: uppercase; font-size: .86rem; letter-spacing: .03em; }
.mm-cta { justify-content: center; margin-top: 16px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .burger { display: block; }
  .mobile-menu { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background:
    linear-gradient(180deg, rgba(30,17,22,.42) 0%, rgba(30,17,22,.5) 55%, rgba(30,17,22,.86) 100%),
    url('img/cabina-tratamientos.jpg') center 38% / cover no-repeat;
}
.hero-inner { color: #fff; max-width: 660px; }
.hero .eyebrow { color: var(--gold-light); }
.hero .eyebrow::before { background: var(--gold-light); }
.hero h1 { font-size: clamp(2.15rem, 5.4vw, 3.6rem); margin: 22px 0 18px; font-weight: 400; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero .lead { font-size: 1.1rem; color: rgba(255,255,255,.86); max-width: 540px; margin-bottom: 34px; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: rgba(255,255,255,.68); font-size: .88rem; letter-spacing: .02em; }
.hero-trust b { color: var(--gold-light); font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; }
.hero-trust .div { width: 1px; height: 20px; background: rgba(255,255,255,.3); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* ---------- El salón (texto + foto) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text .section-head { margin-bottom: 28px; }
.about-text > p { color: var(--ink-soft); margin-bottom: 26px; font-size: 1.02rem; }
.trait-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.trait { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.trait .num { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); font-weight: 400; flex-shrink: 0; width: 30px; }
.trait h4 { font-size: 1.02rem; margin-bottom: 4px; font-family: var(--font-body); font-weight: 700; }
.trait p { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 34px; } .about-photo { aspect-ratio: 16/9; } }

.zones { background: var(--bg-soft); }

/* ---------- Servicios ---------- */
.serv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.serv {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.serv:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--rose-300); }
.serv-ico {
  width: 48px; height: 48px; border-radius: 50%; background: var(--rose-050); color: var(--rose-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.serv-ico svg { width: 22px; height: 22px; }
.serv h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--rose-900); font-weight: 400; }
.serv p { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 980px) { .serv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .serv-grid { grid-template-columns: 1fr; } }

.menu-note {
  background: var(--white); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 24px; margin-top: 34px; color: var(--ink-soft); font-size: .92rem;
}
.menu-note b { color: var(--rose-700); }

/* ---------- Stats ---------- */
.stats { background: var(--bg-dark); border-radius: var(--radius-lg); padding: 46px 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stats .num { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 400; color: var(--gold-light); }
.stats .lbl { color: rgba(255,255,255,.62); font-size: .85rem; margin-top: 8px; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 18px; } }

/* ---------- Equipo ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-card img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); margin-bottom: 16px; filter: saturate(1.02);
}
.team-card h4 { font-size: 1.05rem; margin-bottom: 4px; color: var(--rose-900); font-weight: 400; }
.team-card p { font-size: .86rem; color: var(--ink-soft); }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Galería ---------- */
.gallery-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-teaser figure, .gallery figure { border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.gallery-teaser img, .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; filter: saturate(.98); }
.gallery-teaser figure:hover img, .gallery figure:hover img { transform: scale(1.05); filter: saturate(1.08); }
@media (max-width: 720px) { .gallery-teaser { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Testimonios ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px; position: relative;
}
.testi-card::before {
  content: '“'; font-family: var(--font-display); font-size: 3.4rem; color: var(--rose-300);
  position: absolute; top: 6px; left: 20px; line-height: 1;
}
.testi-card p { position: relative; font-size: .94rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: 16px; margin-top: 22px; }
.testi-card b { color: var(--rose-700); font-size: .88rem; }
@media (max-width: 880px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: stretch; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 46px);
}
.contact-card .eyebrow { margin-bottom: 16px; }
.contact-card h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 14px; color: var(--rose-900); }
.contact-card > p { color: var(--ink-soft); margin-bottom: 26px; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-line small { display: block; color: var(--ink-soft); font-size: .8rem; }
.contact-line b { font-size: 1rem; font-weight: 700; }
.contact-actions { display: flex; gap: 12px; margin: 26px 0 22px; flex-wrap: wrap; }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--rose-700); transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--rose-700); color: #fff; border-color: var(--rose-700); }
.socials svg { width: 17px; height: 17px; }

.map-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; filter: grayscale(.1) sepia(.05); }
.map-card iframe { width: 100%; height: 100%; border: 0; min-height: 320px; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta-final { background: var(--bg-dark); }
.cta-box { text-align: center; color: #fff; }
.cta-box .eyebrow { justify-content: center; }
.cta-box .eyebrow::after { content: ''; width: 26px; height: 1px; background: var(--gold); }
.cta-box h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 14px 0; font-weight: 400; }
.cta-box p { color: rgba(255,255,255,.72); max-width: 520px; margin: 0 auto 28px; }
.cta-box .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.cta-box .btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.68); padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h5 { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: .94rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: var(--gold-light); }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand img { filter: brightness(0) invert(1); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Llamar flotante ---------- */
/* Botón de llamada directa, no WhatsApp: el negocio no tiene WhatsApp Business
   publicado en su web actual (ver config.js), así que en móvil el CTA
   persistente debe ser "llamar" (tel:), el canal 100% verificado hoy mismo. */
.call-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; background: var(--rose-700); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  border: 1.5px solid rgba(255,255,255,.25); transition: transform .3s var(--ease);
}
.call-float:hover { transform: scale(1.06); background: var(--rose-900); }
.call-float svg { width: 26px; height: 26px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(30,17,22,.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 86vh; border-radius: 6px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* Grid genérico reutilizado por valor.html (tarjetas de "seis mejoras") */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }

@media (max-width: 720px) {
  .hero { padding-top: 90px; }
}
