/* ==========================================================================
   Base & Tokens
   ========================================================================== */

:root{
  --bg:#071c42;
  --primary:#00bfff;
  --card:#ffffff;
  --ink:#0b1b35;
  --muted:#44566c;

  --nav-h:clamp(72px, 8vw, 88px);
  --radius:10px;
  --space:clamp(16px, 2vw, 24px);
  --max:1200px;

  --h1:clamp(2.2rem, 4.5vw, 3rem);
  --h2:clamp(1.4rem, 3vw, 2rem);
  --p:clamp(0.98rem, 1.6vw, 1.06rem);
}

*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--bg); color:#fff;
  font-family:Poppins, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height:1.5;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:var(--max);margin:0 auto;padding:0 var(--space)}
.section{padding:60px var(--space)}
.eyebrow{display:inline-block;font-weight:800;letter-spacing:.15em;color:var(--primary);font-size:12px;text-transform:uppercase}

/* ==========================================================================
   Nav
   ========================================================================== */
.site-nav{
  position:sticky; top:0; z-index:99;
  background:var(--bg);
  border-bottom:1px solid rgba(255,255,255,.06);
  box-shadow:0 2px 10px rgba(0,0,0,.08);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-nav .bar{height:var(--nav-h);display:flex;align-items:center;justify-content:space-between; gap:12px;}
.site-nav .brand{display:flex;align-items:center;gap:12px}
.site-nav .brand img{height:clamp(52px, 7vw, 74px);width:auto;}
.site-nav .links{display:flex;align-items:center;gap:28px}
.site-nav .links a{color:#fff;font-weight:600;transition: color .15s ease;}
.site-nav .links a:not(.cta):hover{color: var(--primary);}
.site-nav .links .cta{
  background:var(--primary);color:#0f1b2b;
  padding:12px 18px; border-radius:8px; font-weight:800;
  box-shadow:0 6px 14px rgba(0,191,255,.25);
}

/* Para páginas con hero (index/about): añadir clase .transparent al header en el HTML */
.site-nav.transparent{
  position:fixed;top:0;left:0;right:0;
  background:transparent;border-bottom-color:transparent;box-shadow:none;
}
.site-nav.transparent .links a{color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.35);}
.site-nav.transparent .brand img{filter:drop-shadow(0 2px 10px rgba(0,0,0,.45));}
.site-nav.scrolled{background:var(--bg);}

.nav-toggle{display:inline-flex;flex-direction:column;gap:4px;background:transparent;border:0;cursor:pointer}
.nav-toggle .line{width:22px;height:2px;background:#fff;display:block;border-radius:2px}

/* ==========================================================================
   HERO (Home & About)
   ========================================================================== */
.intro{position:relative;overflow:hidden;}
.intro .media{position:relative;height:clamp(620px, 84vh, 960px);}
.intro .media > video.hero-video,
.intro .media > img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:50% 8%;
}
.intro::after{
  content:"";
  position:absolute; inset:auto 0 0 0; height:52%;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.28) 45%,
    rgba(0,0,0,.58) 100%
  );
  pointer-events:none;
}

/* Frase hero (animación compartida) */
.hero-copy{
  position:absolute;
  inset:auto 0 14% 0;
  display:flex; align-items:flex-start; gap:14px;
  padding:0 var(--space);
  max-width:min(1100px, 92vw);
  margin:0 auto;
}
.hero-copy .bar{
  flex:0 0 6px; height:72px; background:linear-gradient(180deg,#00bfff,#58d9ff);
  border-radius:3px; align-self:center; opacity:.85; transform-origin:left center;
}
.hero-copy .lines{display:flex; flex-direction:column; gap:6px; text-shadow:0 4px 18px rgba(0,0,0,.35);}
.hero-copy .line1,.hero-copy .line2{
  font-weight:900; letter-spacing:.02em; font-size:clamp(22px, 4.6vw, 44px);
  line-height:1.14; color:#ffffff;
}

/* Animaciones hero */
@keyframes rise { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform:none; } }
@keyframes grow { from { transform:scaleX(0); opacity:0; } to { transform:scaleX(1); opacity:1; } }
.reveal{ opacity:0; }
.reveal.in{ animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.reveal.in .bar{ animation: grow .6s ease .1s both; }
.reveal.in .line1{ animation: rise .7s ease .12s both; }
.reveal.in .line2{ animation: rise .7s ease .25s both; }

/* Home hero full */
.home .intro .media{ height:100vh; }
@media (max-width:1024px){ .home .intro .media{ height:84vh; } }
@media (max-width:640px){  .home .intro .media{ height:80vh; } }

/* About hero */
.about-hero .media{ height: clamp(680px, 74vh, 880px); }
.about-hero .media > img{ object-position: 50% 30%; }

/* ==========================================================================
   INDEX: Why RIF + Feature Cards + Closing
   ========================================================================== */
.section-rule{ border:0; height:2px; width:min(680px,60%); margin:12px auto 28px; background:linear-gradient(90deg,transparent,rgba(255,255,255,.25),transparent); }
.section-rule.slim{ width:min(560px,56%); margin:8px auto 14px; }
.section-rule.wide{ width:min(980px, 92%); margin: clamp(18px, 3vw, 28px) auto; }
.section-rule.left{ width:120px; margin:8px 0 14px 0; }

@keyframes fadeIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.appear{animation:fadeIn .6s ease both}
.appear-delay{animation:fadeIn .8s ease .08s both}
@keyframes slideInLeft { from{opacity:0; transform:translateX(-18px)} to{opacity:1; transform:none} }
@keyframes slideInRight{ from{opacity:0; transform:translateX( 18px)} to{opacity:1; transform:none} }
.reveal-left{ opacity:0; transform:translateX(-18px) }
.reveal-right{ opacity:0; transform:translateX(18px) }
.reveal-left.in{ animation:slideInLeft .6s ease both }
.reveal-right.in{ animation:slideInRight .6s ease both }

.why-band{ margin: clamp(24px, 6vw, 60px) 0; }
.why-row{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap: clamp(40px, 10vw, 160px);
  padding: clamp(12px, 2.5vw, 18px) 0;
}
.why-tag{ border:none; box-shadow:none; background:transparent; padding:0; line-height:1; }
.why-tag span{ display:block; color:#fff; font-weight:900; letter-spacing:.02em; font-size:clamp(2.2rem, 6vw, 4rem); }
.why-text{ max-width:62ch; margin-left:auto; text-align:left; }
.why-text p{ position:relative; padding-left:36px; color:#d8e6f8; line-height:1.8; margin:0 0 10px 0; }
.why-text p::before{ content:"➤"; position:absolute; left:8px; top:.25em; font-weight:900; color:var(--primary); }
@keyframes slideFromRight { from { opacity:0; transform:translateX(22px);} to { opacity:1; transform:none;} }
.why-text.in p{ animation:slideFromRight .6s ease both; }
.why-text.in p:nth-child(1){ animation-delay:.08s; }
.why-text.in p:nth-child(2){ animation-delay:.24s; }

.support-title{ text-align:center; margin: clamp(10px, 3vw, 26px) 0 0 0; font-weight:900; font-size: clamp(1.3rem, 3.2vw, 2rem); }
.support-title span{ color:var(--primary); }

.cards{ display:grid; grid-template-columns:repeat(3, minmax(260px,1fr)); gap:28px; align-items:stretch; }
.card{
  background:linear-gradient(145deg,#1f364d,#253d58); color:#fff; border-radius:var(--radius);
  padding:34px 24px; box-shadow:0 4px 20px rgba(0,0,0,.25);
  transition:transform .35s ease, box-shadow .35s ease;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:10px;
}
.card:hover{ transform:translateY(-10px); box-shadow:0 10px 30px rgba(0,191,255,.30); }
.card i{ font-size:32px; margin-bottom:2px; font-style:normal; }
.card h3, .card p{ max-width:32ch; width:100%; margin:0 auto; text-align:center; }
.card p { opacity:.95; line-height:1.6; }

.feature-band{ position:relative; border-radius:16px; overflow:visible; }
.feature-band .backdrop{ position:relative; border-radius:18px; overflow:hidden; box-shadow:0 12px 40px rgba(0,0,0,.35) inset; background:linear-gradient(180deg,#102640,#0b1c33); }
.feature-band .backdrop img{ width:100%; height:280px; object-fit:cover; display:block; border-radius:18px; filter:contrast(1.02) saturate(1.05); }
.feature-band .cards.over{ margin-top:-90px; }

.closing{
  padding:48px var(--space) 64px;
  background:#142637;
  border-top:1px solid rgba(255,255,255,.06);
}
.closing .tagline{
  text-align:center;
  font-weight:800;
  letter-spacing:.14em;
  color:#cfe3f5;
  font-size:clamp(.9rem, 1.6vw, 1rem);
  margin:0 0 24px 0;
}
.closing-logos{
  display:grid;
  grid-template-columns:repeat(5, minmax(120px,1fr));
  gap:clamp(18px, 3vw, 36px);
  align-items:center;
  justify-items:center;
  max-width:1100px;
  margin:0 auto;
}
.closing-logos img{
  max-height:60px;
  width:auto; height:auto; object-fit:contain; display:block;
  opacity:.9; filter:grayscale(100%) contrast(1.05);
  transition:opacity .2s ease, filter .2s ease, transform .2s ease;
  border-radius:14px;
}
.closing-logos img:hover{ opacity:1; filter:grayscale(0%); transform:translateY(-2px); }

/* ==========================================================================
   ABOUT: Panel + Partners + Team
   ========================================================================== */
.about-panel{ background:#0e2642; border:1px solid rgba(255,255,255,.08); border-radius:16px; padding:clamp(24px,4vw,40px); box-shadow:0 10px 28px rgba(0,0,0,.25); }
.about-head{ text-align:center; margin:0 0 10px 0; }
.about-head--left{ text-align:left; }
.about-grid{ display:grid; grid-template-columns:1fr 1.3fr; gap: clamp(28px, 5vw, 64px); align-items:center; }
.brand-logo{ display:flex; align-items:center; justify-content:center; }
.brand-logo img{ width:clamp(220px,38vw,340px); filter:drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.about-card{ background:transparent; color:#cfe3f5; box-shadow:none; border-radius:0; padding:0; margin:0 0 18px 0; }
.about-card h2{ margin:0 0 8px; color:#fff; font-size:var(--h2) }
.about-card p{ margin:0 0 16px; line-height:1.75; color:#cfe3f5 }
/* Frase bajo "ABOUT US" */
.about-strap{
  margin: 6px 0 26px;
  color:#cfe3f5;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.02em;
  line-height:1.55;
  font-size: clamp(.92rem, 1.35vw, 1.05rem);
  max-width: 1100px;
}
.about-strap strong{ color:#ffffff; font-weight:900; }

/* Partners */
.partner { background: transparent; }
.partner-title{ text-align:center; font-size:clamp(1.6rem,3vw,2.2rem); margin:0; letter-spacing:.02em; }
.partner-light { background:#ffffff; color:#0b1b35; border-radius:12px; box-shadow:0 8px 28px rgba(0,0,0,.15); padding:clamp(40px, 6vw, 60px) var(--space); text-align:center; }
.partner-light .partner-underline{ height:3px; background:#0b1b35; border:0; width:min(980px, 92%); margin:12px auto 26px; }
.partner-box{
  background:#0f1b2b;
  border-radius:18px;
  padding:clamp(30px, 4vw, 40px);
  flex:1;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sp-card{
  margin:24px auto;
  padding:clamp(20px,3vw,28px);
  border-radius:16px;
  text-align:left;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
  border:1px solid rgba(0,0,0,.06);
}
.same-size{ min-height:420px; }

.sp-white{ background:#ffffff; color:#0b1b35; }
.sp-blue{  background:#0e2642; color:#ffffff; border-color:rgba(255,255,255,.10); }

/* Subtítulo corto al lado del logo */
.partner-subtitle{
  margin:0 0 10px;
  font-size:clamp(1rem, 1.6vw, 1.25rem);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.02em;
  color:currentColor;
}

.ps-intro{ display:grid; grid-template-columns:auto 1fr; gap:clamp(16px, 3vw, 32px); align-items:center; margin:6px 0 18px; }
.ps-logo{ width:clamp(180px, 30vw, 280px); height:auto; }

.ps-band{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:clamp(12px, 2vw, 18px);
  background:#0f1b2b;
  border:1px solid rgba(255,255,255,.06);
  border-radius:12px;
  padding:clamp(16px, 2.5vw, 22px);
  box-shadow:0 10px 28px rgba(0,0,0,.25) inset;
}
.sp-white .ps-band{
  background:#ffffff;
  border:1px solid #e5edf4;
  box-shadow:none;
}
.sp-white .ps-sub{ color:#2b3f54; }
.sp-white .ps-num{ color:#0b1b35; }

.ps-item{ text-align:center; padding:8px; display:flex; flex-direction:column; justify-content:center; }
.ps-sub{ display:block; font-weight:800; letter-spacing:.08em; color:#9ab9d4; font-size:.8rem; line-height:1.4; }
.ps-num{ display:block; font-weight:900; font-size:clamp(1.4rem, 4.6vw, 2.2rem); margin-top:10px; }

/* KPIs en línea (Gaesco) */
.kpis-plain{ display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(12px, 2vw, 18px); align-items:center; text-align:center; margin-top: clamp(10px, 2.2vw, 18px); }
.kpis-plain .n{ display:block; font-weight:900; font-size:clamp(1.6rem, 4.8vw, 2.4rem); line-height:1.1; }
.kpis-plain .s{ display:block; font-weight:800; letter-spacing:.08em; font-size:.9rem; margin-top:6px; }

/* >>> FLECHAS MÁS GRANDES  <<< */


/* Pie de tarjeta Gaesco más visible en versión blanca */
.ps-bottom{ display:grid; grid-template-columns:auto 1fr; gap:clamp(16px, 3vw, 28px); align-items:center; }
.ps-logo2{ width:clamp(220px, 34vw, 360px); height:auto; }
.sp-blue .ps-bottom p{ color:#cfe3f5; }

/* Hacer que el recuadro de Gaesco se note (borde visible para sp-white) */
.partner-light .sp-card.sp-white.same-size{
  border:2px solid var(--primary);
  border-radius:12px;
}

/* Team */
.team h2{ text-align:center; font-size:clamp(1.8rem,3vw,2.4rem); margin:0 }
.team .section-rule{ margin:12px auto 30px }
.team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap: clamp(18px, 3vw, 36px); justify-items:center; max-width:1100px; margin:0 auto; }
@media(max-width:1024px){ .team-grid{ grid-template-columns:repeat(3,1fr) } }
@media(max-width:768px){  .team-grid{ grid-template-columns:repeat(2,1fr) } }
@media(max-width:480px){  .team-grid{ grid-template-columns:1fr } }
.member{ position:relative; overflow:hidden; border-radius:var(--radius); width:100%; max-width:360px }
.member p{ margin:0 0 8px 4px; color:#cfd6de; font-size:.95rem; text-align:left }
.member img{ width:100%; aspect-ratio:4/5; object-fit:cover; border-radius:var(--radius); transition:transform .25s }
.member:hover img{ transform:scale(1.03) }
.member .overlay{ position:absolute; inset:0; background:rgba(0,0,0,.55); opacity:0; display:flex; flex-direction:column; align-items:center; justify-content:center; border-radius:var(--radius); transition:opacity .25s }
.member:hover .overlay{ opacity:1 }
.member .overlay p{ margin:0 0 10px; font-weight:800 }
.member .overlay a{ background:var(--primary); color:#0b1b35; padding:8px 18px; border-radius:999px; font-weight:800 }

/* ==========================================================================
   INVESTMENTS
   ========================================================================== */
.inv-head{text-align:center}
.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(16px,3vw,28px) }
@media(max-width:1024px){ .grid{ grid-template-columns:repeat(2,1fr) } }
@media(max-width:640px){  .grid{ grid-template-columns:1fr } }

.inv-card{
  background:var(--card); color:var(--ink); border-radius:var(--radius);
  box-shadow:0 10px 40px rgba(0,0,0,.25);
  padding:clamp(18px,2.5vw,26px);
  transition:transform .25s, box-shadow .25s;
  display:flex; flex-direction:column; gap:10px; align-items:flex-start;
  text-align:left;
}
.inv-card:hover{ transform:translateY(-6px); box-shadow:0 16px 40px rgba(0,0,0,.3) }
.inv-image{ width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:8px; }
.badge{ display:inline-block; background:rgba(0,191,255,.12); color:#0bd; border:1px solid rgba(0,191,255,.35); padding:6px 10px; border-radius:999px; font-weight:700; font-size:.85rem }
.inv-card h3{ margin:2px 0 0 0; min-height:3.2em; display:flex; align-items:flex-start; }
.inv-card .cta{ display:inline-block; margin-top:auto; color:var(--primary); font-weight:800 }

/* >>> Disclaimer más pequeño + cursiva  <<< */
.disclaimer{
  font-size:.85rem;   /* antes .9rem */
  font-style:italic;
  text-align:center;
  color:#cfd6df;
  margin: 12px 0 0;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-wrap{ min-height: calc(100vh - var(--nav-h) - 140px); display:flex; align-items:center; justify-content:center; padding: 24px 0 40px; }
.contact-card{ width:100%; max-width:760px; margin:0 auto; background:#1c2c3c; color:#fff; padding:32px clamp(20px, 4vw, 44px); border-radius:18px; box-shadow:0 18px 40px rgba(0,0,0,.45); border:1px solid rgba(255,255,255,.06); }
.contact-title{ text-align:center; margin:0 0 18px; font-weight:800; letter-spacing:.01em; }
.cg{ margin-bottom:16px; }
.cg label{ display:block; margin:0 0 6px; font-weight:700; color:#eaf2fb; }
.cg input, .cg select, .cg textarea{ display:block;width:100%;background:#ffffff;color:#0b1b35; border:1px solid #e4e9f1;border-radius:0;padding:12px 14px;font-size:1rem;outline:none; transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease; }
.cg input::placeholder,.cg textarea::placeholder{ color:#8aa0b7; }
.cg input:focus,.cg select:focus,.cg textarea:focus{ border-color:#bfeeff; box-shadow:0 0 0 3px rgba(0,191,255,.25); transform:translateY(-1px); }
.cg.select{ position:relative; }
.cg.select::after{ content:""; position:absolute; right:14px; top:50%; width:10px; height:10px; border-right:2px solid #2b3f54; border-bottom:2px solid #2b3f54; transform:translateY(-50%) rotate(45deg); pointer-events:none; }
.cg.select select{ appearance:none; -webkit-appearance:none; -moz-appearance:none; padding-right:42px; background:#fff; }
.cg textarea{ min-height:120px; resize:vertical; }
.contact-btn{ width:100%; display:inline-flex; align-items:center; justify-content:center; background:linear-gradient(180deg, var(--primary), #1cc9ff); color:#0b1b35; font-weight:900; font-size:1.06rem; padding:14px 20px; border:none; border-radius:0; cursor:pointer; box-shadow:0 12px 28px rgba(0,191,255,.35); transition:filter .15s ease, transform .15s ease, box-shadow .15s ease; }
.contact-btn:hover{ filter:brightness(1.05); transform:translateY(-1px); box-shadow:0 16px 34px rgba(0,191,255,.45) }
.hp{ position:absolute; left:-9999px; opacity:0; height:0; width:0 }

footer{ color:#c9d3de; text-align:center; padding:28px var(--space) 40px }

/* ==========================================================================
   Responsive / Mobile
   ========================================================================== */
@media (max-width:1024px){
  .nav-toggle{ display:flex; }
  .site-nav .links{ position:fixed; top:var(--nav-h); right:var(--space); width:min(260px, 86vw); background:rgba(15,27,43,.98); border:1px solid rgba(255,255,255,.08); box-shadow:0 18px 40px rgba(0,0,0,.45); border-radius:12px; padding:14px; gap:8px; display:flex; flex-direction:column; transform:translateY(-8px); opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease; }
  .site-nav .links a{ padding:10px 12px; width:100%; border-radius:8px }
  .site-nav .links.open{ opacity:1; transform:none; pointer-events:auto }

  .intro{ margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .intro .media{ height:56vh; }
  .hero-video{ object-position:50% 12%; }

  .hero-copy{  inset: auto 0 7% 0; }
  .hero-copy .bar{ height:56px; }
  .hero-copy .line1, .hero-copy .line2{ font-size:clamp(18px, 5.6vw, 28px); }
  .about-hero .hero-copy .line1,
.about-hero .hero-copy .line2{
  font-size: clamp(20px, 4.2vw, 40px);
  line-height: 1.18;
}

  .section{ padding:40px var(--space); }
  .cards{ grid-template-columns:1fr; gap:20px; }
  .card{ padding:20px; }

  .why-row{ grid-template-columns:1fr; gap:18px; }
  .why-tag{ justify-self:start; }

  .feature-band .cards.over{ margin-top:-70px; }
  .feature-band .backdrop img{ height:220px; }

  .kpis-plain{ grid-template-columns:repeat(2,1fr); }
  .ps-logo{ width:clamp(160px, 44vw, 240px); }
  .ps-logo2{ width:clamp(200px, 60vw, 320px); }

  .closing-logos{ grid-template-columns:repeat(2, minmax(120px,1fr)); }
}

/* Oculta hamburguesa en escritorio */
@media (min-width:1025px){
  .nav-toggle,
  .nav-toggle .line{ display:none !important; }
}
.site-nav.transparent .nav-toggle{ display:none !important; }
