/* ── RESET & TOKENS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #071629;
  --navy2:   #0d2340;
  --blue:    #1356a0;
  --accent:  #00b4d8;
  --accent2: #0096c7;
  --light:   #e0f4fb;
  --white:   #ffffff;
  --off:     #f6fafd;
  --text:    #0f1f30;
  --muted:   #4e6a80;
  --border:  #d6e8f4;
  --radius:  16px;
  --radius-sm: 10px;
  --shadow:  0 12px 48px rgba(7,22,41,.12);
  --shadow-lg: 0 24px 80px rgba(7,22,41,.18);
  --ease:    cubic-bezier(.25,.46,.45,.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  transition: background .3s, box-shadow .3s;
}
nav.scrolled {
  background: rgba(7,22,41,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo svg { width: 34px; height: 34px; fill: var(--accent); }
.nav-logo-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.nav-logo-text strong {
  color: var(--white); font-size: .92rem; font-weight: 700; letter-spacing: .2px;
}
.nav-logo-text span {
  color: var(--accent); font-size: .68rem; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center; gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.75); text-decoration: none;
  font-size: .86rem; font-weight: 500; letter-spacing: .2px;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--accent) !important;
  color: var(--navy) !important;
  padding: 9px 22px; border-radius: 50px;
  font-weight: 700 !important; font-size: .86rem !important;
  letter-spacing: .3px;
  transition: background .2s, transform .2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: #00caf0 !important;
  transform: translateY(-1px);
}

.nav-right {
  display: flex; align-items: center; gap: 1.2rem;
}

.lang-switch {
  display: flex; align-items: center; gap: .3rem;
}
.lang-sep { color: rgba(255,255,255,.2); font-size: .75rem; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.4); font-size: .78rem; font-weight: 700;
  font-family: inherit; padding: 4px 7px; border-radius: 6px;
  letter-spacing: .5px; transition: color .2s, background .2s;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active {
  color: var(--accent);
  background: rgba(0,180,216,.1);
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

/* ── HERO ── */
#inicio {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  animation: heroZoom 60s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    170deg,
    rgba(7,22,41,.88) 0%,
    rgba(13,35,64,.72) 60%,
    rgba(0,180,216,.12) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 820px; padding: 0 2rem;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(0,180,216,.15);
  border: 1px solid rgba(0,180,216,.3);
  color: var(--accent); font-size: .78rem; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 50px;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(6px);
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

.hero-content h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800; color: var(--white);
  line-height: 1.1; margin-bottom: 1.2rem;
  letter-spacing: -.5px;
}
.hero-content h1 em {
  font-style: normal; color: var(--accent);
  background: linear-gradient(90deg, #00b4d8, #48cae4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255,255,255,.75); margin-bottom: 2.4rem;
  max-width: 560px; margin-left: auto; margin-right: auto;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 14px 32px; border-radius: 50px;
  font-size: .97rem; font-weight: 700; text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .2s;
  letter-spacing: .2px;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: var(--accent); color: var(--navy);
  box-shadow: 0 0 0 0 rgba(0,180,216,.4);
}
.btn-primary:hover { background: #00caf0; box-shadow: 0 8px 32px rgba(0,180,216,.35); }
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.14); }

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.4); font-size: .72rem; letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: bounce 2.4s infinite;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(0,180,216,.6), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── SHARED ── */
section { scroll-margin-top: 72px; }

.section-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 6rem 5vw;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: .8rem;
}
.eyebrow::before {
  content: ''; width: 20px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.15;
  color: var(--navy); margin-bottom: 1.2rem;
  letter-spacing: -.3px;
}

.lead {
  font-size: 1.08rem; color: var(--muted);
  max-width: 640px; margin-bottom: 2rem; line-height: 1.75;
}

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .lead { margin: 0 auto 0; }

/* ── QUÉ ES ── */
#sistema { background: var(--off); }

.what-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}

.what-text p { color: var(--muted); margin-bottom: 1rem; }

.what-video {
  position: relative;
  top: .5rem;
}
.what-video::before {
  content: ''; position: absolute;
  inset: -14px -14px 14px 14px;
  border: 1.5px solid rgba(0,180,216,.2);
  border-radius: calc(var(--radius) + 8px);
  z-index: -1;
}
.yt-thumb {
  display: block; position: relative;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  background: #000;
}
.yt-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s var(--ease), opacity .3s;
}
.yt-thumb:hover img { transform: scale(1.04); opacity: .85; }

.yt-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.yt-play svg {
  width: 68px; height: 68px;
  background: rgba(0,0,0,.6);
  border-radius: 50%; padding: 18px;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(4px);
}
.yt-thumb:hover .yt-play svg {
  background: #FF0000;
  transform: scale(1.08);
}

.yt-label {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(0,0,0,.55);
  border-radius: 6px; padding: 5px 8px;
  backdrop-filter: blur(4px);
}

.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; margin-top: 2rem;
}
.stat {
  background: var(--white); padding: 1.2rem 1rem; text-align: center;
}
.stat strong {
  display: block; font-size: 1.8rem; font-weight: 800;
  color: var(--navy); line-height: 1; letter-spacing: -.5px;
}
.stat span { font-size: .78rem; color: var(--muted); font-weight: 500; }

/* ── CÓMO FUNCIONA ── */
#como-funciona { background: var(--white); }

.ferula-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  margin-bottom: 6rem;
}
.ferula-block:last-child { margin-bottom: 0; }
.ferula-block.reverse { direction: rtl; }
.ferula-block.reverse > * { direction: ltr; }

.ferula-media {
  position: relative; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.ferula-media::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  pointer-events: none;
}
.ferula-media video,
.ferula-media img {
  width: 100%; display: block;
  aspect-ratio: 16/10; object-fit: cover;
  transition: transform .6s var(--ease);
}
.ferula-media:hover video,
.ferula-media:hover img { transform: scale(1.03); }

.ferula-number {
  font-size: 5rem; font-weight: 900; line-height: 1;
  color: rgba(0,180,216,.1); letter-spacing: -2px;
  margin-bottom: -.5rem;
}

.ferula-text h3 {
  font-size: 1.5rem; font-weight: 800; color: var(--navy);
  line-height: 1.2; margin-bottom: 1rem; letter-spacing: -.2px;
}
.ferula-text p { color: var(--muted); margin-bottom: 1rem; }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--light); color: var(--blue);
  font-size: .8rem; font-weight: 600;
  padding: 5px 14px; border-radius: 50px;
  border: 1px solid rgba(0,180,216,.15);
}
.pill svg { width: 12px; height: 12px; stroke: var(--accent); fill: none; stroke-width: 2.5; }

.divider {
  border: none; border-top: 1px solid var(--border);
  margin: 4rem 0;
}

/* ── VENTAJAS ── */
#ventajas {
  background: var(--navy);
  position: relative; overflow: hidden;
}
#ventajas::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,.12) 0%, transparent 70%);
  top: -200px; right: -100px; pointer-events: none;
}
#ventajas::after {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,150,199,.1) 0%, transparent 70%);
  bottom: -100px; left: -80px; pointer-events: none;
}

#ventajas .eyebrow { color: var(--accent); }
#ventajas h2 { color: var(--white); }
#ventajas .lead { color: rgba(255,255,255,.55); }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem; margin-top: 1rem;
}

.benefit-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: background .25s, transform .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.benefit-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .3s;
}
.benefit-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(0,180,216,.25);
  transform: translateY(-6px);
}
.benefit-card:hover::before { opacity: 1; }

.benefit-icon {
  width: 48px; height: 48px;
  background: rgba(0,180,216,.1);
  border: 1px solid rgba(0,180,216,.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
  transition: background .25s;
}
.benefit-card:hover .benefit-icon {
  background: rgba(0,180,216,.18);
}
.benefit-icon svg {
  width: 22px; height: 22px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.benefit-card h4 {
  font-size: 1rem; font-weight: 700;
  color: var(--white); margin-bottom: .5rem; line-height: 1.3;
}
.benefit-card p { color: rgba(255,255,255,.5); font-size: .9rem; line-height: 1.65; }

/* ── PARA QUIÉN ── */
#indicado { background: var(--off); }

.indicated-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.indicated-img {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.indicated-img img {
  width: 100%; display: block;
  aspect-ratio: 4/5; object-fit: cover;
}
.indicated-img-badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  background: rgba(7,22,41,.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,180,216,.25);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  color: var(--white); font-size: .88rem; font-weight: 500;
}
.indicated-img-badge strong {
  display: block; color: var(--accent); font-size: .75rem;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: .25rem;
}

.indicated-text p { color: var(--muted); margin-bottom: 1rem; }

.indicated-list { list-style: none; margin-top: 1rem; }
.indicated-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
  color: var(--text); font-size: .97rem;
}
.indicated-list li:last-child { border-bottom: none; }
.indicated-list-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: var(--light); display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: .85rem; margin-top: 1px;
}

/* ── CONTACTO ── */
#contactanos { background: var(--white); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 5rem; align-items: start;
}
.contact-info p { color: var(--muted); margin-bottom: 1.2rem; }
.contact-info a { color: var(--accent); text-decoration: none; font-weight: 600; }
.contact-info a:hover { text-decoration: underline; }

.contact-detail {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.2rem;
  background: var(--off); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-top: 2rem;
  font-size: .9rem; color: var(--blue); font-weight: 600;
}
.contact-detail-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: var(--light); display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.contact-form {
  background: var(--off); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.4rem; display: flex; flex-direction: column; gap: 1.1rem;
}

.form-group { display: flex; flex-direction: column; gap: .4rem; }
label {
  font-size: .8rem; font-weight: 700; color: var(--navy);
  letter-spacing: .3px; text-transform: uppercase;
}

input, select, textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .97rem; color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit; width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,180,216,.12);
}
textarea { resize: vertical; min-height: 130px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn-submit {
  background: var(--accent); color: var(--navy);
  border: none; padding: 15px 28px; border-radius: 50px;
  font-size: .97rem; font-weight: 800; cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  font-family: inherit; letter-spacing: .2px;
}
.btn-submit:hover {
  background: #00caf0;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,180,216,.3);
}

.form-note {
  font-size: .78rem; color: var(--muted); text-align: center; margin-top: .2rem;
}

/* ── FOOTER ── */
footer {
  background: #040d18;
  padding: 3rem 5vw;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.footer-logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.footer-logo svg { width: 28px; height: 28px; fill: var(--accent); }
.footer-logo-text strong {
  display: block; color: var(--white); font-size: .9rem; font-weight: 700;
}
.footer-logo-text span {
  font-size: .7rem; color: rgba(255,255,255,.35); letter-spacing: .3px;
}
.footer-copy {
  color: rgba(255,255,255,.3); font-size: .82rem; text-align: right;
}
.footer-copy a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.footer-copy a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(4,13,24,.97);
    padding: 2.5rem 5vw; gap: 1.4rem;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .hamburger { display: flex; }
  .lang-switch { order: -1; }

  .what-grid,
  .ferula-block,
  .ferula-block.reverse,
  .indicated-grid,
  .contact-grid {
    grid-template-columns: 1fr; direction: ltr; gap: 2.5rem;
  }

  .ferula-block { margin-bottom: 3rem; }
  .stat-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn-ghost { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }
  .what-img::before { display: none; }
}
