/* Adri Soltero — Spa & Beauty Academy
   Sistema visual: minimalismo editorial inspirado en spas de alta gama
   (referencia de calidad: sixsenses.com), en modo oscuro completo —
   toda la página en el mismo verde botella del logo (muestreado de
   logo-adri-soltero.jpg), con dorado champán solo como acento de texto
   y un verde más vivo reservado para los botones/CTA. */

:root {
  --cream: #0f2b21;       /* fondo general de la página (antes claro) */
  --cream-2: #14342a;     /* fondo alterno para secciones (academia) */
  --paper: #1a3d30;       /* superficie de tarjetas, un tono más claro que el fondo */
  --ink: #f3f6f2;         /* texto principal (antes oscuro, ahora claro) */
  --ink-soft: #b9c7bd;    /* texto secundario */
  --gold: #c9a35f;        /* acento de texto (eyebrows, cifras, precios) */
  --gold-dark: #a3803f;
  --green-deep: #0a1f18;  /* verde más profundo: footer y ubicación */
  --green-deep-2: #1b3d2f;
  --btn-green: #2f7a5c;   /* verde vivo para botones/CTA, distinto del fondo */
  --btn-green-dark: #235f47;
  --line: rgba(255,255,255,0.12);
  --radius: 6px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Jost", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; line-height: 1.15; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--gold); font-weight: 500; margin-bottom: 12px; }
.eyebrow.small { margin-bottom: 6px; }

/* ---------- Header ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
#site-header.scrolled {
  background: rgba(15, 43, 33, 0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 1.3rem; color: #fff; display: flex; align-items: center; gap: 10px; line-height: 1.2; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-logo { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
#site-header.scrolled .brand { color: var(--ink); }
.brand-text span { font-family: "Jost", sans-serif; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255,255,255,0.75); font-weight: 400; }
#site-header.scrolled .brand-text span { color: var(--ink-soft); }
.nav-links { display: flex; gap: 30px; }
.nav-link {
  text-decoration: none;
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
#site-header.scrolled .nav-link { color: var(--ink-soft); }
.nav-link:hover { border-color: var(--gold); color: #fff; }
#site-header.scrolled .nav-link:hover { color: var(--ink); }
.nav-cta {
  position: relative;
  overflow: hidden;
  background: var(--btn-green);
  color: #fff !important;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.25s;
}
.nav-cta:hover { background: var(--btn-green-dark); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 120px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* Safari (sobre todo macOS) puede mostrar de golpe sus controles nativos
   (play grande + flechas de retroceder/adelantar 10s) justo cuando el video
   llega al final antes de reiniciar el loop. pointer-events:none evita que
   se activen por hover/foco, y esto oculta cualquier control nativo que
   Safari intente dibujar de todos modos — el video es puramente decorativo,
   nunca debe mostrar UI de reproductor. */
.hero-bg video::-webkit-media-controls,
.hero-bg video::-webkit-media-controls-panel,
.hero-bg video::-webkit-media-controls-start-playback-button,
.hero-bg video::-webkit-media-controls-play-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,16,10,0.35) 0%, rgba(20,16,10,0.25) 45%, rgba(20,16,10,0.72) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-eyebrow {
  display: inline-block;
  color: #f3e9d6;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  margin-bottom: 20px;
  border: 1px solid rgba(243,233,214,0.4);
  padding: 7px 16px;
  border-radius: 999px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero-sub { color: rgba(255,255,255,0.86); font-size: 1.08rem; max-width: 520px; margin-bottom: 34px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--btn-green); color: #fff; }
.btn-primary:hover { background: var(--btn-green-dark); }
.btn-ghost { background: transparent; color: #fdf9f3; border: 1px solid rgba(253,249,243,0.5); }
.btn-ghost:hover { background: rgba(253,249,243,0.12); }
.btn-primary::before, .nav-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-120%);
  transition: transform 0.9s;
}
.btn-primary:hover::before, .nav-cta:hover::before { transform: translateX(120%); }
[data-magnetic] { position: relative; will-change: transform; }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scroll span {
  display: block; width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--paper); border-bottom: 1px solid var(--line); padding: 40px 0; }
.stats-row { display: flex; justify-content: center; gap: 72px; flex-wrap: wrap; text-align: center; }
.stat b { font-family: "Cormorant Garamond", serif; font-size: 2.2rem; color: var(--gold); display: block; font-weight: 500; }
.stat span { font-size: 0.82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Reveal / ambient / carousel (mecánica reutilizada y probada) ---------- */
.reveal { opacity: 1; }
section { padding: 100px 0; scroll-margin-top: 84px; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; }

.ambient { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; will-change: transform; }
.ambient::after { content: ""; position: absolute; inset: 0; border-radius: 50%; filter: blur(80px); animation: blobFloat 22s ease-in-out infinite; }
.ambient-2::after { animation-delay: -11s; animation-duration: 26s; }
.ambient-1 { width: 520px; height: 520px; }
.ambient-1::after { background: radial-gradient(circle, rgba(201,163,95,0.20), transparent 70%); }
.ambient-2 { width: 440px; height: 440px; }
.ambient-2::after { background: radial-gradient(circle, rgba(27,61,47,0.18), transparent 70%); }
.ambient-gold { width: 560px; height: 560px; }
.ambient-gold::after { background: radial-gradient(circle, rgba(201,163,95,0.24), transparent 70%); }
@keyframes blobFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-24px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .ambient::after { animation: none; } }

#servicios { position: relative; }
#servicios > .ambient-1 { top: -140px; left: -120px; }
#servicios > .ambient-2 { bottom: -160px; right: -100px; }
#testimonios { position: relative; }
#testimonios > .ambient-1 { top: -120px; right: -140px; }
#testimonios > .ambient-2 { bottom: -140px; left: -120px; }
#askin > .ambient-1 { top: -100px; left: 50%; transform: translateX(-50%); }
#productos > .ambient-2 { top: -140px; right: -120px; }
.academy > .ambient-gold { top: -180px; right: -160px; }
.location > .ambient-gold { top: -180px; left: 50%; transform: translateX(-50%); }

.wave-divider { display: block; width: 100%; height: 64px; margin-bottom: -1px; }
.wave-divider path { fill: currentColor; }

/* ---------- Placeholder de foto (sin stock falso: espacio marcado a la espera de foto real) ---------- */
.photo-slot {
  position: relative;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--paper), var(--paper) 10px, var(--cream-2) 10px, var(--cream-2) 20px);
  border: 1px dashed rgba(201,163,95,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  aspect-ratio: 4 / 3;
  gap: 4px;
}
.photo-slot span { font-family: "Jost", sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 500; }
.photo-slot small { font-size: 0.78rem; color: var(--ink-soft); }
.photo-slot-tall { aspect-ratio: 3 / 4; }
.photo-slot-square { aspect-ratio: 1 / 1; }
.photo-slot-wide { aspect-ratio: 16 / 10; }

/* Contenedores de foto REAL (ya no placeholder): mismo radio/recorte,
   sin el patrón rayado ni el borde punteado. */
.photo-slot-wide:not(.photo-slot),
.photo-slot-tall:not(.photo-slot),
.photo-slot-square:not(.photo-slot) {
  border-radius: var(--radius);
  overflow: hidden;
}
.photo-slot-wide:not(.photo-slot) img,
.photo-slot-tall:not(.photo-slot) img,
.photo-slot-square:not(.photo-slot) img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Sección "Conoce el espacio" */
.space-intro { padding: 40px 0 100px; }
.space-grid { display: grid; grid-template-columns: 0.9fr 1fr; gap: 56px; align-items: center; }
.space-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 24px 48px -24px rgba(43,38,32,0.3); }
.space-photo img { width: 100%; height: 100%; object-fit: cover; }
.space-text p { color: var(--ink-soft); margin-top: 16px; }

/* ---------- Servicios ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: rgba(43,38,32,0.14) 0px 18px 34px; }
.service-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.service-body { padding: 22px 20px; }
.service-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.service-top h3 { font-size: 1.08rem; }
.duration { font-size: 0.76rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.service-body p { font-size: 0.88rem; color: var(--ink-soft); }
.service-body > h3 { margin-bottom: 8px; }
.service-body .academy-price { margin-top: 14px; }
.card-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.service-card:hover .card-cta { transform: translateX(4px); }

/* ---------- Panel de detalle de tratamiento (modal tipo "pestaña") ---------- */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 16, 12, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.detail-overlay.active { opacity: 1; visibility: visible; }
.detail-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.5);
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
}
.detail-overlay.active .detail-panel { transform: translateY(0) scale(1); opacity: 1; }
.detail-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream-2);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.detail-close:hover { background: var(--gold); color: #fff; }
.detail-body { padding: 40px 36px 36px; }
.detail-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 6px 0 18px; }
.detail-top h3 { font-size: 1.6rem; }
#detail-desc { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 28px; }
.detail-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.detail-gallery .photo-slot { aspect-ratio: 4/3; }
body.modal-open { overflow: hidden; }
@media (max-width: 560px) {
  .detail-body { padding: 32px 22px 26px; }
  .detail-gallery { grid-template-columns: 1fr 1fr; }
  .detail-top { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---------- Academia ---------- */
.academy { position: relative; background: var(--cream-2); overflow: hidden; }
.academy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.academy-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s; }
.academy-card:hover { transform: translateY(-6px); box-shadow: rgba(43,38,32,0.14) 0px 18px 34px; }
.academy-body { padding: 26px 24px; }
.academy-body h3 { margin: 4px 0 12px; font-size: 1.4rem; }
.academy-body p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 18px; }
.academy-price { font-size: 0.92rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 14px; }
.academy-price b { color: var(--gold); font-family: "Cormorant Garamond", serif; font-size: 1.15rem; }
.academy-note { text-align: center; margin-top: 32px; font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Askin ---------- */
.askin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.askin-photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: end; }
.askin-text p { color: var(--ink-soft); margin: 16px 0 24px; }
.askin-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; }
.askin-list li { padding-left: 26px; position: relative; font-size: 0.94rem; }
.askin-list li::before { content: "◆"; position: absolute; left: 0; top: 1px; color: var(--gold); font-size: 0.7rem; }

/* ---------- Carrusel de testimonios (mecánica reutilizada) ---------- */
.carousel { position: relative; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; scrollbar-width: none; -ms-overflow-style: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 auto; scroll-snap-align: start; }
.carousel-testi .carousel-slide { width: 100%; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.3rem; color: var(--ink); z-index: 2;
  transition: background 0.2s;
}
.carousel-btn:hover { background: var(--gold); color: #fff; }
.carousel-btn.prev { left: -8px; }
.carousel-btn.next { right: -8px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0; }
.carousel-dots button.active { background: var(--gold); }

.testi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; max-width: 640px; margin: 0 auto; text-align: center; transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s; }
.testi:hover { transform: translateY(-6px); box-shadow: rgba(43,38,32,0.14) 0px 18px 34px; }
.testi .stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 3px; }
.testi p { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.2rem; color: var(--ink); margin-bottom: 18px; line-height: 1.5; }
.testi .who { font-size: 0.8rem; color: var(--ink-soft); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.google-badge { text-align: center; margin-top: 32px; font-size: 0.9rem; color: var(--ink-soft); }
.google-badge b { color: var(--ink); }

/* ---------- Ubicación ---------- */
.location { background: var(--green-deep); color: #f3ede3; position: relative; overflow: hidden; }
.location .eyebrow { color: #d9c39a; }
.location h2, .location h3 { color: #f3ede3; }
.loc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.loc-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.loc-row:last-of-type { border-bottom: none; }
.loc-label { flex: 0 0 160px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #b8ab93; }
.loc-row a { text-decoration: none; color: #f3ede3; border-bottom: 1px solid rgba(243,233,214,0.4); }
.location .photo-slot { background: repeating-linear-gradient(135deg, #143327, #143327 10px, #1b3d2f 10px, #1b3d2f 20px); border-color: rgba(217,195,154,0.35); color: #b8ab93; }
.location .photo-slot span { color: #d9c39a; }

/* ---------- Footer ---------- */
footer { background: radial-gradient(ellipse 900px 300px at 50% 0%, rgba(201,163,95,0.12), transparent 70%), #0a1f18; color: #a3a89d; padding: 48px 0 28px; font-size: 0.85rem; }
.foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
footer .brand { color: #f3ede3; font-size: 1.15rem; }
footer .brand-text span { color: var(--gold); }
.foot-links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.foot-links a { text-decoration: none; color: #a99d8c; }
.foot-links a:hover { color: #f3ede3; }
.foot-bottom { border-top: 1px solid #1e3d31; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  background: #25D366; color: #fff; width: 56px; height: 56px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: rgba(0,0,0,0.25) 0px 6px 18px; transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .academy-grid { grid-template-columns: 1fr; }
  .askin-grid { grid-template-columns: 1fr; gap: 40px; }
  .loc-grid { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .hero { padding: 120px 0 70px; min-height: 86vh; }
}
@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 36px; }
}
