:root {
  --bg: #07131f;
  --bg-2: #0a1628;
  --panel: rgba(7, 27, 41, .82);
  --line: rgba(130, 217, 230, .16);
  --cyan: #00d4aa;
  --cyan-2: #16c7e8;
  --green: #2ecc71;
  --blue: #169cf2;
  --text: #f6fbff;
  --muted: #a7bdc7;
  --shadow: 0 22px 60px rgba(0, 0, 0, .28);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: .28s ease;
}
.site-header.scrolled {
  background: rgba(5, 19, 31, .9);
  border-color: rgba(126, 216, 228, .13);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
}
.navbar { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 255px; }
.brand img { width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.24)); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.06; }
.brand-copy strong { font-size: 1.55rem; letter-spacing: -.045em; }
.brand-copy small { margin-top: 7px; color: #c5d7df; font-size: .73rem; }
.nav-links { display: flex; align-items: center; gap: 5px; }
.nav-link { padding: 11px 10px; color: #c9d9e1; font-size: .88rem; font-weight: 600; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 20px; background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); transform: scaleX(0); transition: .22s ease; }
.nav-link:hover, .nav-link.active { color: white; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-login { display: inline-flex; gap: 9px; align-items: center; padding: 12px 16px; margin-left: 7px; border: 1px solid rgba(94, 231, 215, .32); border-radius: 13px; color: white; font-weight: 700; background: rgba(0, 212, 170, .1); transition: .25s ease; }
.nav-login:hover { background: linear-gradient(135deg, rgba(17,174,244,.95), rgba(0,212,170,.95)); transform: translateY(-2px); border-color: transparent; }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: white; margin: 5px 0; border-radius: 4px; transition: .25s ease; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -3; background: url("../img/index-hero.webp") center calc(50% + var(--hero-parallax, 0px)) / cover no-repeat; transform: scale(1.045); animation: heroBreath 15s ease-in-out infinite alternate; will-change: background-position, transform; }
.hero-overlay { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(circle at 77% 37%, rgba(0, 212, 170, .08), transparent 34%),
  linear-gradient(90deg, rgba(4,17,29,.95) 0%, rgba(4,19,30,.82) 38%, rgba(4,18,30,.4) 68%, rgba(4,18,30,.7) 100%),
  linear-gradient(180deg, rgba(4,14,24,.15), rgba(4,14,24,.62) 86%, var(--bg) 100%); }
.hero::before { content: ""; position: absolute; inset: auto 0 0; height: 160px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
.hero-grid { padding-top: 122px; padding-bottom: 88px; display: grid; grid-template-columns: 1.06fr .94fr; gap: 62px; align-items: center; }
.eyebrow, .section-kicker, .story-kicker { font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #77e9dd; font-size: .75rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow span { width: 36px; height: 2px; background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); border-radius: 99px; }
.hero h1 { margin: 22px 0 15px; font-size: clamp(3rem, 5.7vw, 5.55rem); line-height: .96; letter-spacing: -.06em; max-width: 790px; }
.hero h1 span { background: linear-gradient(100deg, #effcff 0%, #76e9ff 38%, #47e7b2 92%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin: 0 0 13px; font-weight: 700; color: #e9f7fb; font-size: clamp(1.14rem, 2vw, 1.5rem); }
.hero-text { max-width: 690px; margin: 0; color: #c1d3dc; font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; border-radius: 14px; padding: 0 20px; font-weight: 800; transition: .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #06121c; background: linear-gradient(110deg, #19b8f0, #26ead2); box-shadow: 0 14px 34px rgba(6,207,198,.2); }
.btn-primary:hover { box-shadow: 0 17px 38px rgba(6,207,198,.31); }
.btn-ghost { border: 1px solid rgba(198,233,240,.24); color: #eaf8fb; background: rgba(9,29,43,.42); backdrop-filter: blur(8px); }
.btn-large { min-width: 190px; min-height: 56px; }
.live-status { display: inline-flex; align-items: center; gap: 12px; max-width: 620px; margin-top: 28px; padding: 12px 15px; border: 1px solid rgba(77,219,177,.2); border-radius: 14px; background: rgba(7,28,38,.5); backdrop-filter: blur(10px); }
.live-status > div { display: flex; flex-direction: column; line-height: 1.25; }
.live-status strong { font-size: .86rem; color: #e8fff7; }
.live-status small { margin-top: 3px; color: #9eb8c3; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; background: #38e784; box-shadow: 0 0 0 0 rgba(56,231,132,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(56,231,132,.5);} 70% { box-shadow: 0 0 0 10px rgba(56,231,132,0);} 100% { box-shadow: 0 0 0 0 rgba(56,231,132,0);} }

.hero-story { padding: 26px; border-radius: 26px; border: 1px solid rgba(113,228,229,.2); background: linear-gradient(145deg, rgba(7,29,42,.9), rgba(5,24,36,.72)); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.story-brand { display: flex; align-items: center; gap: 15px; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 1px solid rgba(151,219,228,.12); }
.story-brand img { width: 82px; height: 82px; object-fit: contain; }
.story-brand div { display: flex; flex-direction: column; line-height: 1.08; }
.story-brand strong { font-size: 1.65rem; letter-spacing: -.05em; }
.story-brand span { margin-top: 6px; color: #a8bec8; font-size: .78rem; }
.story-kicker { color: #76e5db; }
.story-flow { display: grid; margin-top: 19px; }
.story-item { display: grid; grid-template-columns: 48px 1fr; gap: 13px; align-items: center; padding: 12px 13px; border-radius: 15px; border: 1px solid rgba(146,220,229,.09); background: rgba(12,41,54,.58); }
.story-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #81f2df; background: linear-gradient(145deg, rgba(0,212,170,.13), rgba(22,156,242,.13)); }
.story-item div { display: flex; flex-direction: column; }
.story-item strong { font-size: .93rem; }
.story-item small { margin-top: 2px; color: #96b1bd; line-height: 1.35; }
.story-arrow { height: 20px; display: grid; place-items: center; color: rgba(101,223,211,.55); font-size: .72rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 34px; height: 48px; border: 1px solid rgba(255,255,255,.28); border-radius: 99px; display: flex; justify-content: center; }
.scroll-cue span { margin-top: 9px; width: 5px; height: 9px; border-radius: 99px; background: #91f5e7; animation: scrollCue 1.6s ease-in-out infinite; }
@keyframes scrollCue { 0%,100% { transform: translateY(0); opacity:.45;} 50% { transform: translateY(15px); opacity:1;} }

.section { padding: 104px 0; position: relative; }
.section-heading { max-width: 800px; margin-bottom: 44px; }
.section-heading.centered { text-align: center; margin-inline: auto; }
.section-heading h2, .purpose-copy h2, .visual-break-content h2, .cta-card h2 { margin: 10px 0 13px; font-size: clamp(2.05rem, 4vw, 3.35rem); line-height: 1.06; letter-spacing: -.052em; }
.section-heading p, .purpose-copy p, .visual-break-content p, .cta-card p { color: var(--muted); font-size: 1rem; }

.platform-section { background: linear-gradient(180deg, var(--bg), #081a26 58%, var(--bg-2)); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.feature-card { position: relative; min-height: 320px; overflow: hidden; padding: 26px; border-radius: 24px; border: 1px solid rgba(116,214,226,.14); background: linear-gradient(155deg, rgba(10,35,49,.94), rgba(6,24,37,.74)); transition: .28s ease; }
.feature-card::before { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; right: -85px; top: -90px; background: radial-gradient(circle, rgba(0,212,170,.15), transparent 68%); }
.feature-card:hover { transform: translateY(-7px); border-color: rgba(65,230,205,.34); box-shadow: 0 24px 55px rgba(0,0,0,.22); }
.feature-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feature-top > span { color: rgba(174,230,235,.56); font-size: .68rem; letter-spacing: .16em; font-weight: 800; }
.feature-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; font-size: 1.35rem; color: #85f5e6; background: linear-gradient(145deg, rgba(0,212,170,.14), rgba(21,159,244,.14)); border: 1px solid rgba(110,236,222,.15); }
.feature-card h3 { margin: 28px 0 10px; font-size: 1.36rem; }
.feature-card p { margin: 0; color: #9eb7c2; }
.feature-accent { position: absolute; left: 26px; right: 26px; bottom: 22px; display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(105,218,216,.12); color: #74e7d8; font-size: .78rem; font-weight: 700; }

.visual-break { min-height: 520px; display: grid; align-items: center; isolation: isolate; overflow: hidden; }
.visual-break-bg { position: absolute; inset: 0; z-index: -3; background: url("../img/index-field-detail.webp") center calc(54% + var(--visual-parallax, 0px)) / cover no-repeat; transform: scale(1.055); will-change: background-position; }
.visual-break-overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(4,17,28,.94) 0%, rgba(4,18,29,.78) 45%, rgba(4,18,29,.38) 100%), linear-gradient(180deg, rgba(6,20,31,.25), rgba(6,20,31,.75)); }
.visual-break-content { max-width: 780px; }
.visual-break-content h2 { max-width: 760px; }
.visual-break-content p { max-width: 680px; color: #c3d5dc; font-size: 1.05rem; }

.flow-section { overflow: hidden; background: radial-gradient(circle at 50% 30%, rgba(0,212,170,.07), transparent 36%), #071522; }
.flow-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; position: relative; }
.flow-grid::before { content: ""; position: absolute; top: 82px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, rgba(53,228,207,.38), transparent); }
.flow-card { position: relative; min-height: 290px; padding: 25px 21px; border-radius: 20px; background: rgba(9,30,43,.7); border: 1px solid rgba(112,217,228,.12); backdrop-filter: blur(8px); }
.flow-step { display: block; color: #62e9d9; font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.flow-icon { position: relative; z-index: 1; width: 58px; height: 58px; margin: 18px 0 24px; display: grid; place-items: center; border-radius: 50%; color: white; font-size: 1.25rem; background: linear-gradient(145deg, #1189cf, #09cda9); box-shadow: 0 0 0 9px rgba(7,21,34,.95), 0 0 0 10px rgba(78,220,214,.18); }
.flow-card h3 { margin: 0 0 9px; font-size: 1.12rem; }
.flow-card p { margin: 0; color: #96b0bc; font-size: .92rem; }

.purpose-section { background: #081825; }
.purpose-grid { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: 62px; }
.purpose-media { position: relative; }
.purpose-media::before { content: ""; position: absolute; inset: -16px 18% 16px -16px; border: 1px solid rgba(64,223,203,.22); border-radius: 26px; }
.purpose-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1.24 / 1; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); filter: saturate(.96) contrast(1.03); }
.media-badge { position: absolute; z-index: 2; right: -18px; bottom: 25px; display: flex; gap: 10px; align-items: center; padding: 13px 16px; border-radius: 15px; background: rgba(7,26,39,.94); border: 1px solid rgba(65,229,210,.22); box-shadow: 0 16px 38px rgba(0,0,0,.24); }
.media-badge i { color: #54e7d1; }
.media-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.media-badge small { margin-top: 4px; color: #8fadb8; }
.purpose-copy p + p { margin-top: 16px; }
.purpose-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.purpose-tags span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid rgba(93,222,211,.15); border-radius: 99px; background: rgba(10,40,50,.72); color: #c4dbe2; font-size: .82rem; }
.purpose-tags i { color: #54e3d2; }

.benefits-section { background: linear-gradient(180deg, #071723, #06121d); }
.benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.benefit-card { min-height: 230px; padding: 25px; border-radius: 21px; background: linear-gradient(145deg, rgba(8,34,48,.92), rgba(6,24,36,.74)); border: 1px solid rgba(102,217,223,.13); transition: .25s ease; }
.benefit-card:hover { transform: translateY(-5px); border-color: rgba(65,230,205,.3); }
.benefit-card > i { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; color: #55e9d4; background: rgba(0,212,170,.1); font-size: 1.25rem; }
.benefit-card h3 { margin: 25px 0 8px; font-size: 1.08rem; }
.benefit-card p { margin: 0; color: #91aab5; font-size: .91rem; }

.cta-section { padding: 72px 0 88px; background: #06121d; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 42px; border-radius: 26px; overflow: hidden; position: relative; background: linear-gradient(115deg, rgba(11,48,61,.96), rgba(5,32,45,.94)); border: 1px solid rgba(92,231,216,.2); box-shadow: var(--shadow); }
.cta-card::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -120px; top: -180px; background: radial-gradient(circle, rgba(0,212,170,.18), transparent 67%); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { max-width: 720px; }
.cta-card p { max-width: 740px; margin-bottom: 0; }

.site-footer { background: #04101a; border-top: 1px solid rgba(117,211,222,.1); }
.footer-grid { padding: 44px 0 30px; display: grid; grid-template-columns: auto 1fr; gap: 30px 54px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 72px; height: 72px; object-fit: contain; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.15; }
.footer-brand strong { font-size: 1.35rem; }
.footer-brand span { margin-top: 5px; color: #91aab5; font-size: .76rem; }
.footer-copy { color: #91aab5; margin: 0; justify-self: end; max-width: 560px; text-align: right; }
.footer-meta { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(119,205,218,.09); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: #77939f; font-size: .78rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .72s ease, transform .72s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay, .reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .18s; }
.reveal-delay-3 { transition-delay: .26s; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { max-width: 820px; }
  .hero-story { max-width: 800px; }
  .flow-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .flow-grid::before { display: none; }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .purpose-grid { grid-template-columns: 1fr; }
  .purpose-media { max-width: 720px; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; position: relative; z-index: 1002; }
  .nav-links { position: fixed; top: 0; right: 0; height: 100svh; width: min(340px, 88vw); padding: 110px 24px 32px; flex-direction: column; align-items: stretch; background: rgba(5,21,33,.98); backdrop-filter: blur(18px); border-left: 1px solid rgba(114,222,228,.14); transform: translateX(110%); transition: .3s ease; box-shadow: -22px 0 50px rgba(0,0,0,.25); }
  .nav-links.open { transform: translateX(0); }
  .nav-link, .nav-login { padding: 14px 12px; margin: 0; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 270px; }
  .cta-card { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-copy { justify-self: start; text-align: left; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .navbar { min-height: 78px; }
  .brand { min-width: 0; }
  .brand img { width: 58px; height: 58px; }
  .brand-copy strong { font-size: 1.3rem; }
  .brand-copy small { display: none; }
  .hero-grid { padding-top: 105px; padding-bottom: 74px; }
  .hero h1 { font-size: clamp(2.65rem, 12.5vw, 4.15rem); }
  .hero-text { font-size: .95rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .live-status { width: 100%; align-items: flex-start; }
  .story-brand img { width: 62px; height: 62px; }
  .story-brand strong { font-size: 1.45rem; }
  .section { padding: 78px 0; }
  .flow-grid, .benefit-grid { grid-template-columns: 1fr; }
  .purpose-grid { gap: 36px; }
  .media-badge { right: 10px; bottom: 10px; }
  .cta-card { padding: 28px 22px; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ===== Mejora visual y dinámica de la página de bienvenida ===== */
@keyframes heroBreath {
  from { transform: scale(1.045); }
  to { transform: scale(1.085); }
}

.hero-ambient { position:absolute; inset:0; z-index:-1; pointer-events:none; overflow:hidden; }
.ambient-dot { position:absolute; border-radius:50%; filter: blur(1px); background:radial-gradient(circle, rgba(105,255,223,.75) 0 12%, rgba(54,206,217,.16) 38%, transparent 70%); opacity:.55; animation: drift 11s ease-in-out infinite alternate; }
.ambient-dot-1 { width:110px; height:110px; right:11%; top:24%; }
.ambient-dot-2 { width:74px; height:74px; right:38%; top:72%; animation-duration:14s; animation-delay:-4s; }
.ambient-dot-3 { width:56px; height:56px; left:6%; top:61%; animation-duration:9s; animation-delay:-2s; }
@keyframes drift { from { transform:translate3d(0,0,0) scale(.9); opacity:.25; } to { transform:translate3d(18px,-24px,0) scale(1.12); opacity:.62; } }

.field-gallery {
  margin-top: 34px;
  display:grid;
  grid-template-columns: 1.35fr .825fr .825fr;
  gap:16px;
}
.field-shot {
  position:relative;
  min-height:315px;
  margin:0;
  overflow:hidden;
  border-radius:23px;
  border:1px solid rgba(115,221,226,.16);
  background:#071722;
  box-shadow:0 20px 50px rgba(0,0,0,.2);
  isolation:isolate;
}
.field-shot-wide { min-height:350px; }
.field-shot img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .8s cubic-bezier(.2,.72,.2,1), filter .45s ease;
  filter:saturate(.92) contrast(1.03) brightness(.9);
}
.field-shot::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(180deg, transparent 32%, rgba(3,18,29,.88) 100%);
}
.field-shot figcaption {
  position:absolute;
  z-index:2;
  left:22px;
  right:22px;
  bottom:20px;
  display:flex;
  flex-direction:column;
  gap:4px;
  transform:translateY(3px);
  transition:transform .35s ease;
}
.field-shot figcaption strong { font-size:1.08rem; color:#fff; }
.field-shot figcaption span { color:#c4d8df; font-size:.84rem; line-height:1.45; max-width:430px; }
.field-shot:hover img { transform:scale(1.065); filter:saturate(1.05) contrast(1.05) brightness(.94); }
.field-shot:hover figcaption { transform:translateY(-3px); }
.image-reveal { clip-path:inset(0 0 16% 0 round 23px); }
.image-reveal.is-visible { animation:imageReveal .85s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes imageReveal { to { clip-path:inset(0 0 0 0 round 23px); } }

.feature-card:hover .feature-icon { transform:translateY(-4px) rotate(-2deg); box-shadow:0 13px 28px rgba(0,212,170,.11); }
.feature-icon { transition:transform .28s ease, box-shadow .28s ease; }
.flow-icon::after { content:""; position:absolute; inset:-1px; border-radius:50%; border:1px solid rgba(81,238,217,.3); animation:flowPulse 2.7s ease-out infinite; }
@keyframes flowPulse { 0%{ transform:scale(1); opacity:.5;} 80%,100%{ transform:scale(1.45); opacity:0;} }
.btn-primary { position:relative; overflow:hidden; }
.btn-primary::after { content:""; position:absolute; inset:-50% auto -50% -35%; width:28%; transform:skewX(-18deg); background:linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation:btnShine 4.8s ease-in-out infinite; }
@keyframes btnShine { 0%,65%{ left:-35%; } 88%,100%{ left:125%; } }

/* Textura fotográfica sutil en la sección de funcionamiento sin perder legibilidad. */
.flow-section::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:linear-gradient(90deg, rgba(7,21,34,.96), rgba(7,21,34,.82)), url("../img/index-corn-close.webp") center/cover no-repeat;
  opacity:.23;
  pointer-events:none;
}
.flow-section > .container { position:relative; z-index:1; }

@media (max-width: 1080px) {
  .field-gallery { grid-template-columns:1fr 1fr; }
  .field-shot-wide { grid-column:1 / -1; min-height:360px; }
}
@media (max-width: 700px) {
  .field-gallery { grid-template-columns:1fr; }
  .field-shot-wide { grid-column:auto; }
  .field-shot, .field-shot-wide { min-height:285px; }
  .ambient-dot { display:none; }
}

/* ===== Optimización responsive 2026-10-06 =====
   Objetivo: conservar la composición original de escritorio en tablet/móvil,
   sin agregar nuevas animaciones ni alterar el contenido de la portada. */

/* Tablet: mantener una composición lo más cercana posible a escritorio. */
@media (min-width: 760px) and (max-width: 1080px) {
  .container { width: min(calc(100% - 44px), var(--container)); }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 28px;
    padding-top: 118px;
    padding-bottom: 76px;
  }
  .hero h1 { font-size: clamp(3rem, 6vw, 4.6rem); }
  .hero-text { font-size: .98rem; }
  .hero-story { max-width: none; padding: 22px; }
  .story-brand img { width: 68px; height: 68px; }
  .story-brand strong { font-size: 1.45rem; }

  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .feature-card { min-height: 290px; padding: 22px; }

  .flow-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .flow-card { min-height: 280px; padding: 22px 17px; }

  .benefit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .benefit-card { padding: 20px; min-height: 225px; }

  .purpose-grid { grid-template-columns: .92fr 1.08fr; gap: 38px; }
  .purpose-media { max-width: none; }
}

/* Teléfono: conservar jerarquía, proporciones, collage y tarjetas de la versión de laptop. */
@media (max-width: 759px) {
  html { scroll-padding-top: 76px; }
  .container { width: min(calc(100% - 30px), var(--container)); }

  .navbar { min-height: 74px; gap: 12px; }
  .brand img { width: 50px; height: 50px; }
  .brand-copy strong { font-size: 1.22rem; }
  .brand-copy small { display: none; }
  .menu-toggle { width: 42px; height: 42px; }
  .nav-links { width: min(330px, 86vw); padding: 94px 22px 28px; }

  .hero {
    min-height: auto;
    align-items: start;
  }
  .hero-bg {
    background-position: 58% center;
    transform: scale(1.045);
    animation: none;
  }
  .hero-overlay {
    background:
      radial-gradient(circle at 78% 30%, rgba(0, 212, 170, .07), transparent 32%),
      linear-gradient(90deg, rgba(4,17,29,.96) 0%, rgba(4,19,30,.83) 56%, rgba(4,18,30,.55) 100%),
      linear-gradient(180deg, rgba(4,14,24,.16), rgba(4,14,24,.72) 88%, var(--bg) 100%);
  }
  .hero-grid {
    padding-top: 96px;
    padding-bottom: 54px;
    gap: 24px;
  }
  .hero-copy { max-width: 100%; }
  .eyebrow { font-size: .68rem; letter-spacing: .14em; }
  .eyebrow span { width: 27px; }
  .hero h1 {
    margin: 16px 0 12px;
    max-width: 94%;
    font-size: clamp(2.2rem, 10.5vw, 3.05rem);
    line-height: .98;
    letter-spacing: -.052em;
  }
  .hero-lead { font-size: 1.02rem; margin-bottom: 10px; }
  .hero-text { max-width: 96%; font-size: .91rem; line-height: 1.55; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
  }
  .btn { width: 100%; min-height: 48px; padding: 0 12px; font-size: .86rem; }
  .live-status {
    width: 100%;
    margin-top: 18px;
    padding: 11px 12px;
    align-items: flex-start;
  }
  .live-status strong { font-size: .82rem; }
  .live-status small { font-size: .74rem; line-height: 1.35; }

  .hero-story {
    max-width: none;
    padding: 17px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
  }
  .story-brand { gap: 10px; padding-bottom: 13px; margin-bottom: 13px; }
  .story-brand img { width: 52px; height: 52px; }
  .story-brand strong { font-size: 1.26rem; }
  .story-brand span { font-size: .68rem; margin-top: 4px; }
  .story-kicker { font-size: .62rem; letter-spacing: .12em; }
  .story-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 13px;
  }
  .story-arrow { display: none; }
  .story-item {
    min-width: 0;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
    align-items: start;
  }
  .story-icon { width: 38px; height: 38px; border-radius: 11px; }
  .story-item strong { font-size: .8rem; }
  .story-item small { font-size: .68rem; line-height: 1.3; }
  .scroll-cue { display: none; }

  .section { padding: 66px 0; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2,
  .purpose-copy h2,
  .visual-break-content h2,
  .cta-card h2 {
    font-size: clamp(1.8rem, 8.2vw, 2.45rem);
    line-height: 1.08;
  }
  .section-heading p,
  .purpose-copy p,
  .visual-break-content p,
  .cta-card p { font-size: .91rem; }

  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { min-height: 0; padding: 20px; border-radius: 19px; }
  .feature-card h3 { margin-top: 20px; font-size: 1.2rem; }
  .feature-card p { font-size: .88rem; }
  .feature-icon { width: 50px; height: 50px; border-radius: 15px; }

  /* Mantener el collage fotográfico: una imagen principal + dos secundarias. */
  .field-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
  }
  .field-shot-wide { grid-column: 1 / -1; min-height: 255px; }
  .field-shot:not(.field-shot-wide) { min-height: 205px; }
  .field-shot { border-radius: 18px; }
  .field-shot figcaption { left: 14px; right: 14px; bottom: 13px; }
  .field-shot figcaption strong { font-size: .88rem; }
  .field-shot figcaption span { font-size: .71rem; line-height: 1.35; }

  .visual-break { min-height: 410px; }
  .visual-break-bg { background-position: 58% center; transform: scale(1.035); }
  .visual-break-overlay {
    background: linear-gradient(90deg, rgba(4,17,28,.94), rgba(4,18,29,.70) 64%, rgba(4,18,29,.52)),
                linear-gradient(180deg, rgba(6,20,31,.25), rgba(6,20,31,.78));
  }
  .visual-break-content { max-width: 92%; }

  /* En lugar de una tarjeta por fila, conservar el aspecto 2x2 del escritorio. */
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .flow-grid::before { display: none; }
  .flow-card { min-height: 220px; padding: 17px 14px; border-radius: 17px; }
  .flow-step { font-size: .67rem; }
  .flow-icon { width: 47px; height: 47px; margin: 14px 0 18px; font-size: 1rem; box-shadow: 0 0 0 6px rgba(7,21,34,.95), 0 0 0 7px rgba(78,220,214,.18); }
  .flow-card h3 { font-size: .96rem; }
  .flow-card p { font-size: .78rem; line-height: 1.45; }

  .purpose-grid { gap: 30px; }
  .purpose-media::before { inset: -10px 13% 10px -10px; border-radius: 20px; }
  .purpose-media img { border-radius: 19px; aspect-ratio: 1.32 / 1; }
  .media-badge { right: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 9px 11px; font-size: .76rem; }
  .purpose-tags { gap: 7px; margin-top: 19px; }
  .purpose-tags span { padding: 8px 10px; font-size: .74rem; }

  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .benefit-card { min-height: 215px; padding: 17px 14px; border-radius: 17px; }
  .benefit-card > i { width: 45px; height: 45px; border-radius: 14px; font-size: 1.05rem; }
  .benefit-card h3 { margin: 18px 0 7px; font-size: .95rem; line-height: 1.25; }
  .benefit-card p { font-size: .77rem; line-height: 1.45; }

  .cta-section { padding: 58px 0 68px; }
  .cta-card { padding: 25px 20px; gap: 22px; border-radius: 21px; }
  .cta-card .btn-large { width: auto; min-width: 170px; }

  .footer-grid { padding: 34px 0 24px; gap: 22px; }
  .footer-brand img { width: 58px; height: 58px; }
  .footer-brand strong { font-size: 1.22rem; }
  .footer-copy { font-size: .84rem; line-height: 1.55; }
  .footer-meta { gap: 6px 14px; font-size: .7rem; }

  /* Optimización de rendimiento móvil: sin movimientos decorativos. */
  .hero-ambient,
  .flow-icon::after,
  .btn-primary::after { display: none; }
  .reveal,
  .image-reveal,
  .reveal.is-visible,
  .image-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
    clip-path: none;
  }
}

/* Teléfonos especialmente angostos: priorizar legibilidad sin romper la estética. */
@media (max-width: 379px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .hero-actions { grid-template-columns: 1fr; }
  .story-flow { grid-template-columns: 1fr; }
  .field-gallery { grid-template-columns: 1fr; }
  .field-shot-wide { grid-column: auto; }
  .field-shot,
  .field-shot-wide { min-height: 240px; }
  .flow-grid,
  .benefit-grid { grid-template-columns: 1fr; }
  .flow-card,
  .benefit-card { min-height: 0; }
}

/* Landscape móvil: recuperar dos columnas del hero como en laptop. */
@media (max-height: 520px) and (min-width: 680px) and (max-width: 959px) and (orientation: landscape) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
    align-items: center;
    gap: 22px;
    padding-top: 88px;
    padding-bottom: 42px;
  }
  .hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.4rem); }
  .hero-story { padding: 15px; }
  .story-flow { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
