/* =============================================
   HERO — Slideshow con Ken Burns · Marea Roja
   ============================================= */
#hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---- SLIDES ---- */
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-color: var(--azul-profundo);
  opacity: 0;
  transition: opacity 1.6s ease;
}
/* background-color sirve de respaldo si la foto no carga */
.hero-slide.active {
  opacity: 1;
  animation: kenBurns 8s ease-out both;
}
@keyframes kenBurns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.0);  }
}

/* ---- OVERLAY ---- */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(6,58,90,0.80) 60%,
    rgba(10,92,138,0.50) 80%,
    rgba(0,180,204,0.18) 100%
  );
}

/* ---- BURBUJAS ---- */
.hero-bubbles { position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:1; }
.bubble {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  animation: bubbleRise linear infinite;
}
.bubble:nth-child(1){width:12px;height:12px;left:10%;animation-duration:8s;animation-delay:0s;}
.bubble:nth-child(2){width:20px;height:20px;left:25%;animation-duration:11s;animation-delay:2s;}
.bubble:nth-child(3){width:8px;height:8px;left:40%;animation-duration:7s;animation-delay:4s;}
.bubble:nth-child(4){width:16px;height:16px;left:60%;animation-duration:9s;animation-delay:1s;}
.bubble:nth-child(5){width:10px;height:10px;left:75%;animation-duration:12s;animation-delay:3s;}
.bubble:nth-child(6){width:24px;height:24px;left:88%;animation-duration:10s;animation-delay:6s;}
@keyframes bubbleRise {
  from { transform:translateY(110vh) scale(0.8); opacity:0.3; }
  to   { transform:translateY(-10vh)  scale(1.2); opacity:0; }
}

/* ---- CONTENIDO ---- */
.hero-content {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; align-items: center;
  padding-top: var(--header-h);
}
.hero-content .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap-lg);
  align-items: center;
  padding-top: var(--gap-lg);
  padding-bottom: 5rem;
}

.hero-text { display:flex; flex-direction:column; gap:1.1rem; }

.hero-badge-top {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: rgba(0,180,204,0.14);
  border: 1px solid rgba(0,180,204,0.35);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--turquesa-light);
  width: fit-content;
  animation: fadeInDown 0.8s ease both;
}
.hero-badge-top i { font-size: 0.85rem; }

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 900; line-height: 1.07;
  color: var(--blanco);
  animation: fadeInUp 0.9s 0.15s ease both;
}
.hero-heading .line-rojo { color:var(--rojo-light); font-style:italic; }
.hero-heading .line-aqua { color:var(--turquesa-light); }

.hero-sub {
  font-size: 1.08rem; color: rgba(255,255,255,0.75);
  max-width: 460px; line-height: 1.7;
  animation: fadeInUp 0.9s 0.3s ease both;
}

.hero-actions {
  display: flex; gap: 0.85rem; flex-wrap: wrap;
  animation: fadeInUp 0.9s 0.45s ease both;
}

.hero-stats {
  display: flex; gap: var(--gap-md);
  padding-top: var(--gap-sm);
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: var(--gap-xs);
  animation: fadeInUp 0.9s 0.6s ease both;
}
.hero-stat { display:flex; flex-direction:column; gap:0.1rem; }
.hero-stat .num {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 900; color: var(--turquesa-light); line-height: 1;
}
.hero-stat .label {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.hero-stat + .hero-stat { border-left:1px solid rgba(255,255,255,0.15); padding-left:1.5rem; }

.hero-logo-side {
  display: flex; justify-content: center; align-items: center;
  animation: fadeInRight 1s 0.25s ease both;
}
.hero-logo-side img {
  width: min(380px, 100%);
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4)) drop-shadow(0 0 50px rgba(0,180,204,0.2));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ---- DOTS ---- */
.hero-dots {
  position: absolute; bottom: 5.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 3;
}
.hero-dot {
  width: 28px; height: 4px; border-radius: 999px;
  border: none; cursor: pointer; padding: 0;
  background: rgba(255,255,255,0.3);
  transition: background 0.3s ease, width 0.3s ease;
}
.hero-dot.active  { background: var(--turquesa-light); width: 48px; }
.hero-dot:hover:not(.active) { background: rgba(255,255,255,0.55); }

/* ---- OLA INFERIOR ---- */
.hero-wave { position:relative; z-index:2; margin-top:-1px; }
.hero-wave svg { display:block; width:100%; }

/* ---- Keyframes ---- */
@keyframes fadeInDown  { from{opacity:0;transform:translateY(-18px)} to{opacity:1;transform:none} }
@keyframes fadeInUp    { from{opacity:0;transform:translateY(22px)}  to{opacity:1;transform:none} }
@keyframes fadeInRight { from{opacity:0;transform:translateY(12px)}  to{opacity:1;transform:none} }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .hero-content .container { grid-template-columns:1fr; text-align:center; padding-bottom:4rem; }
  .hero-badge-top { margin: 0 auto; }
  .hero-sub       { margin: 0 auto; }
  .hero-actions   { justify-content: center; }
  .hero-stats     { justify-content: center; }
  .hero-logo-side img { width: min(260px,65%); }
  .hero-logo-side { order: -1; }
}
@media (max-width: 480px) {
  .hero-heading { font-size: 2.4rem; }
  .hero-stats   { gap: var(--gap-sm); flex-wrap: wrap; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-dots    { bottom: 4.5rem; }
}
