:root{
  --verde:#1bbf6b;
  --azul:#0b3c5d;
  --rojo:#e63946;
  --oscuro:#0a1a2a;
  --claro:#f5f7fa;

  --header-height: 200px; /* ALTURA HEADER DESKTOP */
}

*{box-sizing:border-box;}

html{
  scroll-behavior: smooth;
}

body{
  margin:0;
  font-family:'Montserrat',sans-serif;
  background:var(--claro);
  color:#222;
}

/* ================= HEADER ================= */
header{
  background:var(--oscuro);
  position:sticky;
  top:0;
  z-index:1000;
}

nav{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:20px 8%;
  gap:15px;
}

.logo{
  display:flex;
  justify-content:center;
}

.logo img{
  height:120px;
  max-width:100%;
}

.menu{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:22px;
  margin:0;
  padding:14px 0;
  justify-content:center;
  border-top:1px solid rgba(255,255,255,.12);
  border-bottom:1px solid rgba(255,255,255,.12);
}

.menu li{white-space:nowrap;}

.menu a{
  color:white;
  text-decoration:none;
  font-weight:500;
}

.menu a:hover{color:var(--verde);}

.btn-panamericanos{
  background: rgba(230, 57, 70, 0.18);
  color: white !important;
  padding: 10px 18px;
  border-radius: 4%;
  font-weight: 600;
  border: 1px solid rgba(230, 57, 70, 0.35);
  transition: all .3s ease;
}

.btn-panamericanos:hover{
  background: rgba(230, 57, 70, 0.35);
  transform: translateY(-1px);
}

/* ================= HERO ================= */
.hero{
  position:relative;
  height:85vh;
}

.hero-carousel{overflow:hidden;}

.slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity 1s ease;
}

.slide.active{
  opacity:1;
  z-index:1;
}

.hero img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(10,26,42,.65);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  color:white;
  padding:40px;
}

.hero-overlay h1{
  font-size:3rem;
  margin-bottom:20px;
}

.hero-overlay span{color:var(--rojo);}

/* CTA */
.hero-cta{
  margin-top:30px;
  padding:14px 30px;
  background:var(--verde);
  color:white;
  text-decoration:none;
  border-radius:30px;
  font-weight:600;
  transition:.3s;
}

.hero-cta:hover{
  background:#14a85c;
  transform:translateY(-2px);
}

/* ANIMACIÓN TEXTO */
.hero-overlay h1,
.hero-overlay p,
.hero-cta{
  opacity:0;
  transform:translateY(20px);
  animation:fadeUp .8s ease forwards;
}

.hero-overlay p{animation-delay:.2s;}
.hero-cta{animation-delay:.4s;}

@keyframes fadeUp{
  to{opacity:1;transform:translateY(0);}
}

/* DOTS */
.hero-dots{
  position:absolute;
  bottom:30px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:12px;
  z-index:5;
}

.dot{
  width:12px;
  height:12px;
  background:rgba(255,255,255,.4);
  border-radius:50%;
  cursor:pointer;
}

.dot.active{background:var(--verde);}

/* FLECHAS */
.hero-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,.35);
  color:white;
  border:none;
  font-size:2rem;
  padding:10px 14px;
  cursor:pointer;
  z-index:5;
}

.hero-arrow.left{left:20px;}
.hero-arrow.right{right:20px;}

/* ================= SECCIONES ================= */
section{
  scroll-margin-top: var(--header-height);
}

.section-img{padding:0;}

.section-image img{
  width:100%;
  height:420px;
  object-fit:cover;
  display:block;
}

.section-content{
  max-width:1100px;
  margin:auto;
  padding:90px 8%;
  text-align:center;
}

.section-title{
  font-size:2.4rem;
  font-weight:800;
  color:var(--azul);
  margin-bottom:30px;
}

.section-content p{
  max-width:800px;
  margin:auto;
  font-size:1.1rem;
  line-height:1.7;
}

/* PANAMERICANOS */
.panamericanos{
  background:linear-gradient(135deg,var(--verde),var(--azul));
  color:white;
}

.panamericanos .section-title{color:white;}

/* ================= FOOTER ================= */
.footer{
  background:var(--oscuro);
  color:white;
  padding:60px 8%;
}

.footer-container{
  display:flex;
  flex-wrap:wrap;
  gap:60px;
  justify-content:space-between;
}

.footer-col{max-width:260px;}

.footer-col img{margin-bottom:10px;}

.footer-col h4{
  color:var(--verde);
  margin-bottom:15px;
}

.footer-col ul{
  list-style:none;
  padding:0;
}

.footer-col a{
  color:white;
  text-decoration:none;
  line-height:1.8;
}

.social{
  display:flex;
  gap:15px;
  font-size:1.6rem;
}

.footer-bottom{
  border-top:1px solid #444;
  margin-top:40px;
  padding-top:20px;
  text-align:center;
  color:#aaa;
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px){

  :root{
    --header-height: 260px; /* ALTURA HEADER MOBILE */
  }

  .hero-overlay h1{font-size:2.2rem;}
  .section-image img{height:300px;}
}
