:root{
  --ays-blue:#234f86;
  --ays-blue-2:#1b3f6b;
  --ays-red:#e02020;
  --text:#0f172a;
  --muted:#475569;
  --bg:#f6f7fb;
  --card:#ffffff;
  --shadow: 0 10px 30px rgba(2, 6, 23, .12);
}

.container{ width:min(1120px, 92%); margin:0 auto; }

.ays-section{ padding: clamp(48px, 6vw, 90px) 0; position:relative; overflow:hidden; }
.section-title{ font-size: clamp(28px, 3.2vw, 44px); margin:0 0 12px; letter-spacing:.2px; }
.section-sub{ margin:0; color:var(--muted); font-size: 16px; line-height:1.6; }
.center-head{ text-align:center; margin-bottom: 26px; }

.light{ color:#fff; }
.section-sub.light{ color: rgba(255,255,255,.82); }

.kicker{
  display:inline-flex; gap:10px; align-items:center;
  color: rgba(255,255,255,.82);
  font-weight:600;
  margin:0 0 10px;
}
.kicker:before{
  content:""; width:10px; height:10px; border-radius:999px;
  background: var(--ays-red);
  box-shadow: 0 0 0 6px rgba(224,32,32,.15);
}

/* HERO */
.ays-hero{
  position:relative;

  overflow:hidden;
  color:#fff;
  padding: 30px 0 45px;  /* menos arriba */

  /* Fondo azul general */
  background: radial-gradient(1200px 600px at 20% 10%, rgba(255,255,255,.18), transparent 60%),
              radial-gradient(900px 500px at 80% 40%, rgba(224,32,32,.20), transparent 55%),
              linear-gradient(135deg, var(--ays-blue), #18365e);
}


/* Panel central con la imagen (PNG) */
.ays-hero::after{
  content:"";
  position:absolute;

  /* MISMO ANCHO QUE LOS SECTIONS ABAJO */
  width: min(1120px, 92%);
  height: 420px;

  /* alineado con el container */
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);

  /* TU PNG */
  background: url("../img/brochure/fondo-hero.png") center/contain no-repeat;

  /* TRANSPARENTE */
  background-color: transparent !important;
  opacity: 1;

  /* opcional: solo sombra ligera */
  filter: drop-shadow(0 18px 45px rgba(0,0,0,.25));

  z-index:0;
  pointer-events:none;
}


.hero-title{ font-size: clamp(38px, 4.4vw, 60px); line-height:1.05; margin:0 0 12px; }
.hero-subtitle{ max-width: 560px; color: rgba(255,255,255,.86); font-size: 16.5px; line-height:1.7; margin:0 0 22px; }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }

.btn-primary, .btn-ghost{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 18px; border-radius: 14px;
  text-decoration:none; font-weight:700; font-size: 14.5px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary{
  background: linear-gradient(135deg, var(--ays-red), #ff3b3b);
  color:#fff;
  box-shadow: 0 14px 30px rgba(224,32,32,.28);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 18px 36px rgba(224,32,32,.34); }

.btn-ghost{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  color:#fff;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover{ transform: translateY(-2px); border-color: rgba(255,255,255,.38); }

.hero-card{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(2,6,23,.26);
  backdrop-filter: blur(12px);
  position:relative;
}
.mini-badge{
  position:absolute; top:14px; right:14px;
  background: rgba(224,32,32,.18);
  border: 1px solid rgba(224,32,32,.35);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight:800;
}
.hero-card h3{ margin: 8px 0 6px; font-size: 18px; }
.hero-card p{ margin:0 0 14px; color: rgba(255,255,255,.82); line-height:1.65; }

.hero-stats{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.mini-stat{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 12px 10px;
  text-align:center;
}
.mini-stat .num{ display:block; font-weight:900; font-size: 22px; }
.mini-stat .label{ display:block; color: rgba(255,255,255,.82); font-size: 12px; margin-top:2px; }

.hero-wave{
  height: 70px;
  background: linear-gradient(180deg, transparent, rgba(246,247,251,1));
  margin-top: clamp(38px, 4vw, 60px);
  display:none;
}

/* BLOBS */
.hero-bg .blob{
  position:absolute; border-radius: 999px; filter: blur(0px);
  opacity:.55;
  animation: floaty 10s ease-in-out infinite;
}
.blob-1{ width: 420px; height: 420px; left:-120px; top:-120px; background: rgba(255,255,255,.14); }
.blob-2{ width: 280px; height: 280px; right:-90px; top: 120px; background: rgba(224,32,32,.24); animation-duration: 12s; }
.blob-3{ width: 360px; height: 360px; right: 20%; bottom:-180px; background: rgba(255,255,255,.10); animation-duration: 14s; }

@keyframes floaty{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(18px,-14px) scale(1.03); }
}

/* SPLIT */
.split{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items:center; }
.lead{ color: var(--muted); line-height:1.8; margin: 0 0 18px; font-size: 16px; }

.pill-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 18px; }
.pill{
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight:700; font-size: 13px;
  box-shadow: 0 10px 20px rgba(2,6,23,.06);
}
.cta-row{ display:flex; gap:12px; flex-wrap:wrap; }

.image-frame{
  height: 360px;
  border-radius: 26px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,.10);
}
.image-frame:before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(600px 240px at 30% 20%, rgba(224,32,32,.22), transparent 55%),
              linear-gradient(180deg, rgba(2,6,23,.15), rgba(2,6,23,.35));
}
.image-overlay{
  position:absolute; left:16px; bottom:16px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 12px 14px;
  color:#fff;
  backdrop-filter: blur(10px);
}
.image-overlay span{ display:block; font-weight:900; letter-spacing:.8px; }
.image-overlay small{ opacity:.85; }

/* TEXTURED + RIBBON (tipo brochure) */
.textured{
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(35,79,134,.10), transparent 60%),
    radial-gradient(800px 500px at 0% 60%, rgba(224,32,32,.08), transparent 55%),
    linear-gradient(0deg, #f7f7fb, #f4f6fb);
}
.textured:before{
  content:"";
  position:absolute; inset:0;
  background:
    repeating-linear-gradient(135deg, rgba(2,6,23,.04) 0px, rgba(2,6,23,.04) 1px, transparent 1px, transparent 8px);
  opacity:.35;
  pointer-events:none;
}
.textured.alt{
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(35,79,134,.12), transparent 60%),
    radial-gradient(800px 500px at 100% 70%, rgba(224,32,32,.08), transparent 55%),
    linear-gradient(0deg, #f7f7fb, #f4f6fb);
}

.ribbon{
  position:absolute; top:0; right:0;
  width: 74px; height: 100%;
  background: linear-gradient(180deg, var(--ays-red), #ff4a4a);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 86%);
  opacity:.95;
}
.ribbon:after{
  content:"";
  position:absolute; right: 14px; top: 52%;
  width: 10px; height: 160px;
  background: rgba(255,255,255,.85);
  transform: skewY(-18deg);
  border-radius: 10px;
  opacity:.30;
}

/* GRADIENT BLUE SECTION */
.gradient-blue{
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(255,255,255,.16), transparent 60%),
    radial-gradient(800px 500px at 100% 70%, rgba(224,32,32,.22), transparent 55%),
    linear-gradient(135deg, var(--ays-blue), var(--ays-blue-2));
  color:#fff;
}
.cards-2{
  display:grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-top: 18px;
}
.glass-card{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(2,6,23,.22);
  backdrop-filter: blur(12px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.glass-card:hover{ transform: translateY(-4px); box-shadow: 0 26px 60px rgba(2,6,23,.28); }
.card-icon{ font-size: 26px; margin-bottom: 6px; }
.glass-card h3{ margin: 0 0 8px; }
.glass-card p{ margin:0; opacity:.9; line-height:1.7; }

/* VALUES */
.light-surface{ background: #ffffff; }
.values-grid{
  display:grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 20px;
}
.value-card{
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(2,6,23,.08);
  position:relative;
  overflow:hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.value-card:before{
  content:"";
  position:absolute; inset:-60px -60px auto auto;
  width: 160px; height: 160px;
  background: radial-gradient(circle at 30% 30%, rgba(224,32,32,.22), transparent 65%);
  transform: rotate(18deg);
}
.value-card h3{
  color: var(--ays-red);
  margin:0 0 10px;
  font-weight:900;
  letter-spacing:.3px;
}
.value-card p{ margin:0; color: var(--muted); line-height:1.7; }
.value-card:hover{ transform: translateY(-4px); box-shadow: 0 22px 50px rgba(2,6,23,.12); }

/* STATS */
.stats-3{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 22px;
}
.stat-card{
  background:#fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 26px;
  padding: 22px 18px;
  text-align:center;
  box-shadow: 0 18px 40px rgba(2,6,23,.08);
  transition: transform .2s ease;
}
.stat-card:hover{ transform: translateY(-4px); }
.stat-icon{
  width: 70px; height: 70px; margin:0 auto 10px;
  display:grid; place-items:center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ays-blue), #163a66);
  color:#fff;
  font-size: 30px;
}
.stat-num{
  font-size: 56px;
  font-weight: 950;
  color: var(--ays-red);
  line-height:1;
  margin: 6px 0 8px;
}
.stat-label{ color: var(--muted); font-weight: 700; }

/* BRANDS + MARQUEE */
.brands{
  background:
    radial-gradient(1000px 400px at 50% 0%, rgba(35,79,134,.10), transparent 60%),
    linear-gradient(0deg, #ffffff, #f7f8fc);
}
.marquee{
  overflow:hidden;
  border-top: 1px solid rgba(15,23,42,.08);
  border-bottom: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
}
.marquee-track{
  display:flex;
  gap: 14px;
  padding: 14px 12px;
  width: max-content;
  animation: scroll 22s linear infinite;
}
.brand-pill{
  min-width: 160px;
  height: 56px;
  display:grid;
  place-items:center;
  border-radius: 16px;
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 20px rgba(2,6,23,.06);
  font-weight: 900;
  letter-spacing:.6px;
}
@keyframes scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.brand-cta{ display:flex; justify-content:center; gap:12px; margin-top: 18px; flex-wrap:wrap; }

/* ANIMACIONES ENTRADA */
/* Por defecto (si no hay JS) => se ve todo */
[data-animate]{ opacity:1; transform:none; }

/* Solo si el body tiene .js => recién ocultamos y animamos */
body.js [data-animate]{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
body.js .in-view{
  opacity:1 !important;
  transform:none !important;
}

body.js [data-animate="fade-right"]{ transform: translateX(-18px); }
body.js [data-animate="fade-left"]{ transform: translateX(18px); }
body.js [data-animate="zoom-in"]{ transform: scale(.96); }


.in-view{
  opacity:1 !important;
  transform: none !important;
}
[data-animate="fade-right"]{ transform: translateX(-18px); }
[data-animate="fade-left"]{ transform: translateX(18px); }
[data-animate="zoom-in"]{ transform: scale(.96); }

/* RESPONSIVE */
@media(max-width: 900px){

  .ays-hero::after{
    width: 420px;
    height: 240px;
    left: 50%;
    opacity: 0.22;
    filter: blur(0px);
    mix-blend-mode: screen;
  }


  .hero-actions{
    justify-content:center;
  }
}


.hero-content{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:flex-start;
  text-align:center;
   min-height: 420px;     /* más compacto */
  align-items: center;
}
.hero-actions{
  display:flex;
  gap:12px;
  justify-content:center;   /* ✅ centra */
  align-items:center;
  flex-wrap:wrap;
  margin-top: 18px;
}
.hero-gallery{
  transform-origin: center;
  animation: floatGallery 6s ease-in-out infinite;
}

@keyframes floatGallery{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}
body.js [data-animate]{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
body.js .in-view{
  opacity:1 !important;
  transform:none !important;
}
body.js [data-animate="zoom-in"]{ transform: scale(.96); }
.g-img{
  transition: transform .25s ease, box-shadow .25s ease;
}
.g-img:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible{
  opacity: 1;
  transform: none;
}
/* ANIMACIÓN REVEAL */
.reveal{ opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }