/* ============================================================
   ONCO ORAL · Dirección 2 — "DARK PREMIUM GLASS"
   Modo oscuro medtech. Vidrio + glow sobre azul nocturno.
   Stack: HTML estático + Tailwind CDN + GSAP. CSS propio.
   ============================================================ */

:root {
  --base900: #0C1322;
  --base800: #0E1A2E;
  --base700: #12233B;
  --marino:  #25335C;
  --abeto:   #2E4055;
  --jeans:   #28618B;
  --jeansup: #5AA0D6;   /* azul más claro: accesible como link/acento sobre oscuro */
  --pastel:  #FFF4C9;
  --acero:   #8892AA;
  --ink:     #EAF0F8;

  --glass-bg:    linear-gradient(155deg, rgba(255,255,255,.075), rgba(255,255,255,.02));
  --glass-brd:   rgba(136,146,170,.22);
  --glass-shadow:0 24px 60px -34px rgba(0,0,0,.85);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; background: var(--base900); position: relative; }
::selection { background: var(--jeans); color: #fff; }

h1, h2, h3 { font-family: "Bricolage Grotesque", system-ui, sans-serif; }

/* ============================================================
   FONDO · campo de glow + capas
   ============================================================ */
.bg-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-field::before {            /* degradado base vertical (profundidad) */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(40,97,139,.18), transparent 60%),
    linear-gradient(180deg, var(--base800) 0%, var(--base900) 45%, #0a1020 100%);
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5;
  will-change: transform;
}
.blob--1 { width: 46vw; height: 46vw; left: -10vw; top: 2vh;
  background: radial-gradient(circle, rgba(40,97,139,.55), transparent 70%);
  animation: drift1 22s ease-in-out infinite; }
.blob--2 { width: 40vw; height: 40vw; right: -8vw; top: 30vh;
  background: radial-gradient(circle, rgba(37,51,92,.6), transparent 70%);
  animation: drift2 28s ease-in-out infinite; }
.blob--3 { width: 30vw; height: 30vw; left: 30vw; bottom: -6vh;
  background: radial-gradient(circle, rgba(40,97,139,.4), transparent 70%);
  animation: drift1 26s ease-in-out infinite reverse; }
.grid-veil {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(136,146,170,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136,146,170,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
}
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw,3vh) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-3vw,-3vh) scale(1.1); } }

/* todo el contenido por encima del campo de glow */
body > header, body > section, body > footer, body > .wa-float { position: relative; z-index: 2; }

/* ============================================================
   VIDRIO (glass)
   ============================================================ */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,.07);
  border-radius: 1.25rem;
}
/* filo luminoso superior (jeans -> acero) */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(90,160,214,.5), rgba(136,146,170,.06) 40%, rgba(90,160,214,.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: .8;
}

/* ============================================================
   TIPOGRAFÍA / utilidades
   ============================================================ */
.eyebrow, .kicker {
  display: inline-block; font-weight: 600; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--jeansup);
}
.kicker { font-family: "JetBrains Mono", monospace; letter-spacing: .12em; font-weight: 500; }
.eyebrow { padding-left: 2.2rem; position: relative; }
.eyebrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 1.6rem; height: 2px;
  transform: translateY(-50%); background: var(--jeansup); opacity: .8; }
.kicker--center { display: block; text-align: center; }

.hero-title { color: var(--ink); }
.glow-word { position: relative; color: #fff; }
.glow-word::after {       /* único toque Pastel: subrayado-luz cálido */
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .5em;
  background: radial-gradient(60% 100% at 50% 50%, rgba(255,244,201,.28), transparent 70%);
  z-index: -1; filter: blur(2px);
}

.h2 { color: var(--ink); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.14; }
.h2--center { text-align: center; }

/* ============================================================
   BOTONES / LINKS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: .55rem;
  background: linear-gradient(135deg, var(--jeans), #1d4e74);
  color: #fff; font-weight: 600; font-size: .95rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1px solid rgba(90,160,214,.5);
  box-shadow: 0 10px 30px -10px rgba(40,97,139,.8), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .3s var(--spring), box-shadow .3s ease, filter .3s ease;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); filter: brightness(1.12);
  box-shadow: 0 18px 40px -12px rgba(90,160,214,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary--lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }

.link-quiet { display: inline-flex; align-items: center; gap: .4rem; color: var(--jeansup);
  font-weight: 600; font-size: .95rem; transition: gap .25s var(--spring), color .25s ease; }
.link-quiet:hover { gap: .75rem; color: #fff; }

.nav-link { position: relative; transition: color .25s ease; }
.nav-link:hover { color: var(--ink); }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--jeansup); transition: width .3s var(--spring); }
.nav-link:hover::after { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
#site-header.scrolled {
  background: rgba(12,19,34,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(136,146,170,.16);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-photo { overflow: hidden; border-radius: 1.6rem; max-width: 480px; margin-inline: auto; }
.hero-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block;
  filter: brightness(.95) contrast(1) saturate(.96); }
.hero-photo__scrim { position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(200deg, rgba(12,19,34,.08), rgba(12,19,34,.52));
  pointer-events: none; }
.hero-chip {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem; font-size: .85rem; color: var(--ink); font-weight: 500;
  border-radius: .9rem;
}
.hero-chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--jeansup);
  box-shadow: 0 0 0 4px rgba(90,160,214,.22); animation: pulse 2.6s ease-in-out infinite; }
.photo-ref {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  font-family: "JetBrains Mono", monospace; font-size: .62rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink);
  background: rgba(12,19,34,.55); border: 1px solid rgba(136,146,170,.25);
  padding: .25rem .55rem; border-radius: .5rem; backdrop-filter: blur(4px);
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.25); opacity: 1; } }

.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(136,146,170,.4); border-radius: 999px; z-index: 5; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px;
  background: var(--jeansup); transform: translateX(-50%); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ============================================================
   SECCIONES
   ============================================================ */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 1.25rem; }

.info-card { padding: 1.5rem 1.6rem; color: var(--ink); opacity: .94; line-height: 1.6;
  transition: transform .35s var(--spring), box-shadow .35s ease; }
.info-card:hover { transform: translateY(-4px);
  box-shadow: 0 28px 60px -30px rgba(40,97,139,.6), inset 0 1px 0 rgba(255,255,255,.1); }
.info-card--accent { border-color: rgba(90,160,214,.45); }
.info-card--accent::before { opacity: 1;
  background: linear-gradient(135deg, rgba(90,160,214,.7), rgba(40,97,139,.1) 45%, rgba(90,160,214,.35)); }

/* remate sección 2 */
.remate-tile { padding: 1.2rem 1.4rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: baseline; gap: .5rem; }
.remate-tile__big { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700;
  font-size: 1.6rem; color: var(--jeansup); }

/* marcos de foto */
.media-frame { overflow: hidden; border-radius: 1.4rem; }
.media-frame img { width: 100%; aspect-ratio: 16/11; object-fit: cover; display: block;
  filter: brightness(.86) saturate(.95); transition: transform .6s var(--spring); }
.media-frame:hover img { transform: scale(1.04); }

/* tilt suave en hover (potenciado por JS spring) */
.tilt { transition: transform .4s var(--spring); }

/* ============================================================
   SECCIÓN 5 · BENTO
   ============================================================ */
.bento { display: grid; gap: 1.1rem; grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: 1fr; }
.bento-lead { grid-row: span 1; grid-column: 1; padding: clamp(1.8rem, 3vw, 2.6rem);
  display: flex; flex-direction: column; justify-content: center; }
.bento-stage { padding: 1.7rem 1.6rem; display: flex; flex-direction: column; gap: .5rem;
  transition: transform .35s var(--spring), box-shadow .35s ease; }
.bento-stage:hover { transform: translateY(-6px);
  box-shadow: 0 30px 64px -28px rgba(40,97,139,.7), inset 0 1px 0 rgba(255,255,255,.12); }
.stage-num { color: var(--acero); font-size: .9rem; letter-spacing: .12em; }
.stage-title { font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.bento-stage p { color: var(--ink); opacity: .82; line-height: 1.55; }
/* "Durante" destacada con el toque Pastel cálido */
.bento-stage--feature { border-color: rgba(255,244,201,.35); }
.bento-stage--feature::before { opacity: 1;
  background: linear-gradient(135deg, rgba(255,244,201,.55), rgba(90,160,214,.12) 50%, rgba(255,244,201,.2)); }
.bento-stage--feature .stage-num,
.bento-stage--feature .stage-title { color: var(--pastel); }

/* ============================================================
   SECCIÓN 7 · CICLOS
   ============================================================ */
.ciclos { padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; overflow: hidden; }
.ciclos__halo { position: absolute; left: 50%; top: -30%; transform: translateX(-50%);
  width: 70%; height: 80%; border-radius: 50%;
  background: radial-gradient(circle, rgba(40,97,139,.4), transparent 70%); filter: blur(40px);
  pointer-events: none; }
.ciclos__logo { margin-top: 2.4rem; display: flex; justify-content: center; }
.ciclos__logo img { height: 60px; width: auto; }

/* ============================================================
   FORMULARIO
   ============================================================ */
.section--form { padding-bottom: clamp(5rem, 9vw, 8rem); }
.form-card { margin: 2.6rem auto 0; max-width: 640px; padding: clamp(1.6rem, 4vw, 2.6rem); text-align: left; }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.form-field { display: flex; flex-direction: column; gap: .45rem; }
.form-field__label { font-weight: 600; font-size: .85rem; color: var(--ink); }
.form-field input {
  width: 100%; padding: .85rem 1rem; border-radius: .8rem;
  border: 1px solid rgba(136,146,170,.3); background: rgba(12,19,34,.5);
  font-family: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-field input::placeholder { color: rgba(136,146,170,.8); }
.form-field input:focus { outline: none; border-color: var(--jeansup); background: rgba(12,19,34,.75);
  box-shadow: 0 0 0 4px rgba(90,160,214,.2); }
.form-error { color: #ff8f87; font-size: .85rem; margin-top: .9rem; font-weight: 500; }
.form-card button { margin-top: 1.4rem; justify-content: center; }
.form-hint { margin-top: 1rem; font-size: .82rem; color: var(--acero); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: rgba(8,13,24,.85); border-top: 1px solid rgba(136,146,170,.14);
  backdrop-filter: blur(6px); }
.footer-h { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: .95rem;
  margin-bottom: 1.1rem; color: var(--ink); }
.footer-list { display: flex; flex-direction: column; gap: .8rem; font-size: .92rem; color: var(--acero); }
.footer-list a { color: var(--acero); transition: color .2s ease; }
.footer-list a:hover { color: var(--jeansup); }
.footer-base { border-top: 1px solid rgba(136,146,170,.12); }

.wa-float { position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--jeans), #1d4e74); color: #fff;
  display: grid; place-items: center; border: 1px solid rgba(90,160,214,.5);
  box-shadow: 0 14px 34px -10px rgba(40,97,139,.85);
  transition: transform .3s var(--spring), filter .3s ease; }
.wa-float:hover { transform: translateY(-4px) scale(1.06); filter: brightness(1.12); }

/* ============================================================
   REVEAL (gateado en .js → sin JS, todo visible)
   ============================================================ */
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.is-visible { opacity: 1; transform: none;
  transition: opacity .7s ease, transform .7s var(--spring); transition-delay: var(--d, 0s); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento-lead { grid-column: 1; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-photo { max-width: 100%; }
}

/* ============================================================
   ACCESIBILIDAD · reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .hero-chip__dot, .scroll-cue span { animation: none !important; }
  .media-frame:hover img, .info-card:hover, .bento-stage:hover, .btn-primary:hover { transform: none; }
  html { scroll-behavior: auto; }
}
