/* ====== Genessa Estudio · tema oscuro + dorado + azul logo ====== */
:root {
  --bg: #0a0a0d;
  --bg-2: #111116;
  --panel: #16161c;
  --text: #ececf1;
  --muted: #9a9aa5;
  --gold: #c9a227;
  --gold-2: #e7c45a;
  --blue: #4cc9e8;
  --line: rgba(255,255,255,0.08);
  --wa: #25d366;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ====== Versión clara ====== */
[data-theme="light"] {
  --bg: #faf7f1;
  --bg-2: #f1ece1;
  --panel: #ffffff;
  --text: #1a1a1f;
  --muted: #6b6b75;
  --gold: #a87f1a;
  --gold-2: #c89a25;
  --blue: #1d8aa6;
  --line: rgba(0,0,0,0.10);
  --shadow: 0 20px 60px rgba(40,30,10,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--gold); color: #000; padding: 8px 12px; border-radius: 6px; z-index: 200;
}
.skip:focus { left: 8px; }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: transparent; z-index: 90; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--blue)); transition: width 0.1s; }

/* ====== Tipografía ====== */
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 500; }
.gold { color: var(--gold); font-style: italic; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
h2 i { color: var(--gold); font-style: italic; font-weight: 500; }
h3 { font-size: 1.25rem; font-family: var(--sans); font-weight: 600; }
.muted { color: var(--muted); }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s, transform 0.7s; }
.reveal.in { opacity: 1; transform: none; }

/* ====== Header ====== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 58px; height: 58px; border-radius: 50%;
  display: block;
  box-shadow: 0 0 24px rgba(76,201,232,0.35);
  flex: none;
}
.brand-text strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text); }
.brand-text em { font-family: var(--serif); font-style: italic; color: var(--gold); margin-left: 4px; }
nav { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; align-items: center; }
nav a { font-size: 1.05rem; font-weight: 700; color: var(--muted); transition: color 0.2s; }
nav a:hover { color: var(--gold); }
.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.6rem; padding: 4px 8px; }

/* Header actions (theme toggle + reserve button) */
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--gold); display: grid; place-items: center;
  font-size: 1.1rem; transition: transform 0.2s, border-color 0.2s;
}
.theme-toggle:hover { transform: rotate(15deg); border-color: var(--gold); }
.theme-toggle .theme-icon-dark { display: inline; }
.theme-toggle .theme-icon-light { display: none; }
[data-theme="light"] .theme-toggle .theme-icon-dark { display: none; }
[data-theme="light"] .theme-toggle .theme-icon-light { display: inline; }

/* ====== CTA dentro de tarjetas (servicios, bonos, packs) ====== */
.card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 10px 16px;
  background: transparent; border: 1px solid var(--line);
  color: var(--gold); border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  align-self: flex-start;
  min-height: 40px;
}
.card-cta:hover { background: var(--wa); border-color: var(--wa); color: #042b14; transform: translateY(-1px); }
.card-cta span { transition: transform 0.2s; }
.card-cta:hover span { transform: translateX(3px); }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--line);
  background: var(--panel); color: var(--text);
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.button:hover { transform: translateY(-2px); border-color: var(--gold); }
.button-wa { background: var(--wa); color: #042b14; border-color: var(--wa); }
.button-wa:hover { background: #20bd5b; border-color: #20bd5b; color: #042b14; box-shadow: 0 8px 20px rgba(37,211,102,0.3); }
.button-ghost { background: transparent; border-color: var(--line); }
.text-link { color: var(--gold); font-weight: 500; }
.text-link:hover { color: var(--gold-2); }
.text-link span { display: inline-block; transition: transform 0.2s; }
.text-link:hover span { transform: translateX(4px); }

/* ====== Hero ====== */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center;
  padding: 100px 28px 110px;
  max-width: 1000px; margin: 0 auto;
  min-height: 70vh;
  text-align: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201,162,39,0.18), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(76,201,232,0.12), transparent 50%);
  pointer-events: none; z-index: 0;
}
.hero-copy { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-copy h1 { margin: 16px 0 18px; }
.hero-copy .lead { color: var(--muted); font-size: 1.05rem; max-width: 620px; margin: 0 auto; }
.hero-actions { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 50px; flex-wrap: wrap; justify-content: center; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--gold); }
.hero-stats span { font-size: 0.85rem; color: var(--muted); }

/* Bloque intro integrado dentro del hero */
.hero-intro {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.hero-intro .eyebrow { display: inline-block; margin-bottom: 14px; }
.hero-intro h2 { margin-bottom: 18px; }
.hero-intro p { color: var(--muted); max-width: 720px; margin: 0 auto; font-size: 1.02rem; }
.hero-intro .intro-badges { margin-top: 28px; }

/* ====== Intro ====== */
.intro {
  max-width: 900px; margin: 0 auto; padding: 40px 28px 80px; text-align: center;
}
.intro p { color: var(--muted); }
.intro-badges { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.intro-badges span {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 0.85rem; color: var(--muted);
}

/* ====== Secciones ====== */
.section { padding: 80px 28px; max-width: 1300px; margin: 0 auto; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 40px; flex-wrap: wrap; }
.section-heading > div { max-width: 700px; }

/* ====== Service cards ====== */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.service-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(201,162,39,0.12), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }
.service-icon { font-size: 1.6rem; color: var(--gold); }
.service-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.service-card p { color: var(--muted); font-size: 0.92rem; }
.service-card .price-from { color: var(--gold); font-weight: 600; font-size: 0.9rem; margin-top: auto; padding-top: 10px; }

/* ====== Bonos ====== */
.bonos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.bono-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px;
  position: relative; overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.bono-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.bono-card .sesiones { color: var(--gold); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; font-weight: 600; }
.bono-card .nombre { font-family: var(--serif); font-size: 1.4rem; margin: 8px 0 16px; }
.bono-card .precio { font-family: var(--serif); font-size: 2.2rem; color: var(--gold); font-weight: 600; }
.bono-card .precio small { font-size: 1rem; color: var(--muted); margin-left: 4px; }
.bono-card::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.15), transparent 70%);
}

/* ====== Packs ====== */
.packs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.pack-card {
  background: linear-gradient(180deg, rgba(201,162,39,0.06), var(--bg-2));
  border: 1px solid var(--gold);
  border-radius: 18px; padding: 32px 28px;
  position: relative; overflow: hidden;
}
.pack-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}
.pack-card h3 {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold);
}
.pack-card .slogan { color: var(--muted); font-style: italic; margin: 4px 0 18px; }
.pack-card .combo { color: var(--text); font-size: 0.95rem; margin-bottom: 18px; }
.pack-card .precios { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.pack-card .precios .sesion { color: var(--muted); font-size: 0.9rem; }
.pack-card .precios .bono { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-2); }

/* ====== Beneficios presoterapia ====== */
.benefits { background: var(--bg-2); padding: 100px 28px; }
.benefits-card {
  max-width: 980px; margin: 0 auto;
  background: linear-gradient(180deg, var(--panel), var(--bg));
  border: 1px solid var(--line); border-radius: 24px;
  padding: 50px;
  box-shadow: var(--shadow);
}
.benefits-text p { color: var(--muted); margin-bottom: 18px; line-height: 1.7; }
.benefits-text .benefits-more { color: var(--muted); }
.benefits-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 28px 0 32px; }
.benefits-cols h3 { color: var(--gold); margin-bottom: 14px; font-size: 1.1rem; font-family: var(--serif); font-weight: 600; }
.benefits-cols li { padding: 8px 0 8px 24px; position: relative; color: var(--text); font-size: 0.95rem; border-bottom: 1px dashed var(--line); }
.benefits-cols li:last-child { border-bottom: none; }
.benefits-cols li::before {
  content: "✦"; position: absolute; left: 0; top: 8px;
  color: var(--gold); font-size: 0.85rem;
}

/* ====== Galería / antes-después ====== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.gallery-item {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  cursor: pointer; transition: transform 0.3s, border-color 0.3s;
  aspect-ratio: 4/5;
}
.gallery-item:hover { transform: translateY(-4px); border-color: var(--gold); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .tag {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(10,10,13,0.85); padding: 6px 12px; border-radius: 999px;
  font-size: 0.8rem; color: var(--gold); border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

/* ====== Estudio ====== */
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.studio-grid figure { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.studio-grid img { width: 100%; height: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform 0.4s; }
.studio-grid figure:hover img { transform: scale(1.04); }

/* ====== Contacto ====== */
.contact { background: var(--bg-2); padding: 100px 28px; }
.contact-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px;
  align-items: stretch;
}
.contact-card {
  background: linear-gradient(180deg, var(--panel), var(--bg));
  border: 1px solid var(--line); border-radius: 20px;
  padding: 40px 36px; text-align: left;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: center;
}
.contact-card h2 { text-align: left; }
.contact-lines { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin: 22px 0; color: var(--muted); }
.contact-lines p { display: flex; align-items: center; gap: 10px; }
.contact-lines span { color: var(--gold); font-size: 1.1rem; }
.contact-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.contact-buttons .button { padding: 12px 20px; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s;
}
.socials a:hover { border-color: var(--gold); color: var(--gold); }

/* ====== Mapa (Google Maps) ====== */
.map-embed {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  min-height: 380px;
}
.map-embed iframe {
  width: 100%; flex: 1; border: 0; display: block;
  min-height: 300px;
}
.map-link {
  display: block; text-align: center;
  padding: 12px; font-size: 0.88rem; font-weight: 600;
  color: var(--gold); background: var(--panel);
}
.map-link span { display: inline-block; transition: transform 0.2s; }
.map-link:hover span { transform: translateX(4px); }

/* ====== Footer ====== */
footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 28px; border-top: 1px solid var(--line);
  max-width: 1300px; margin: 0 auto; gap: 20px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand p { color: var(--muted); font-size: 0.85rem; }
.copyright { color: var(--muted); font-size: 0.85rem; }

/* ====== Lightbox ====== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: #fff;
  font-size: 2rem; cursor: pointer;
}

/* ====== Dialog (booking) ====== */
dialog {
  background: var(--panel); color: var(--text);
  border: 1px solid var(--gold); border-radius: 18px;
  padding: 36px; max-width: 480px; width: 92%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
dialog::backdrop { background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); }
.close-dialog {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: var(--muted);
  font-size: 1.6rem; cursor: pointer;
}
.booking-title h2 { margin: 8px 0 6px; }
.booking-title p { color: var(--muted); font-size: 0.9rem; }
form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--muted); }
input, select, textarea {
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; outline: none;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { min-height: 80px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.78rem; text-align: center; margin-top: 4px; }

/* ====== Responsive ====== */
@media (max-width: 880px) {
  .site-header { flex-wrap: wrap; padding: 12px 18px; }
  nav {
    display: none; width: 100%; flex-direction: column; gap: 2px;
    padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--line);
    order: 5;
  }
  nav.open { display: flex; }
  nav a {
    padding: 14px 10px; border-radius: 10px;
    min-height: 44px; display: flex; align-items: center;
  }
  nav a:active { background: var(--panel); }
  .menu-toggle { display: block; margin-left: auto; min-width: 44px; min-height: 44px; }
  .site-header .button-wa { padding: 10px 16px; font-size: 0.9rem; min-height: 44px; }
  .hero { padding: 50px 20px 70px; min-height: auto; }
  .hero-copy .lead { font-size: 1rem; }
  .hero-actions .button { min-height: 48px; padding: 14px 22px; }
  .benefits-card { padding: 28px 22px; gap: 24px; border-radius: 18px; }
  .benefits-cols { grid-template-columns: 1fr; gap: 22px; }
  .studio-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 20px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .benefits, .contact { padding: 64px 20px; }
  .contact-card, .booking-title { padding: 34px 22px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { text-align: center; align-items: center; }
  .contact-card h2 { text-align: center; }
  .contact-lines { align-items: center; }
  .service-grid, .bonos-grid, .packs-grid, .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 18px 26px; }
  .hero-stats strong { font-size: 1.4rem; }
  .footer-brand + .copyright { margin-top: 6px; }
  .header-actions .button-wa span { display: none; }
  .header-actions .button-wa { padding: 10px; min-width: 44px; }
  footer { flex-direction: column; align-items: flex-start; text-align: left; }
  dialog { padding: 26px 18px; width: 94%; }
  input, select, textarea { padding: 13px 12px; font-size: 16px; }
  label { font-size: 0.92rem; }
  .theme-toggle { width: 40px; height: 40px; }
}

/* Ajustes específicos iPhone / Android (notch, home indicator) */
@supports (padding: max(0px)) {
  .site-header {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
    padding-top: max(12px, env(safe-area-inset-top));
  }
}
