
:root{
  /* Paleta PADLA ejecutiva — naranjas + variedad de verdes */
  --bg:#001F21;                  /* verde petróleo casi negro (fondo global) */
  --panel:#002B2F;               /* panel oscuro */
  --panel-alt:#003A3F;           /* panel medio (secciones alternas) */
  --accent-orange:#FE7F48;       /* naranja principal */
  --accent-orange-soft:#FF985D;  /* naranja suave */
  --accent-green-soft:#6C9897;   /* verde suave / textos y detalles */
  --accent-green:#006B6E;        /* verde medio (líneas, botones outline) */
  --accent-green-deep:#003C43;   /* verde profundo (header, footer, acentos) */

  --text:#FFFFFF;
  --muted:#C7D9D7;
  --border:rgba(255,255,255,.10);
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.6;
}
img{max-width:100%;display:block}
a{color:var(--accent-orange-soft);text-decoration:none}
a:hover{opacity:.9}

.container{max-width:1080px;margin:0 auto;padding:0 16px}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:40;
  background:linear-gradient(90deg, var(--accent-green-deep), var(--accent-green));
  backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:64px;
}
.brand img{height:40px}
@media (min-width:900px){
  .brand img{height:54px}
}
.nav-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--accent-orange-soft);
}
.nav{
  display:none;
  position:absolute;
  left:16px;
  right:16px;
  top:64px;
  background:var(--panel);
  border-radius:16px;
  border:1px solid var(--border);
  padding:8px;
}
.nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
}
.nav a{
  padding:10px 12px;
  display:block;
  border-radius:10px;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.nav a:hover{background:rgba(255,255,255,.06)}

@media (min-width:900px){
  .nav{
    position:static;
    display:block !important;
    background:transparent;
    border:0;
    padding:0;
  }
  .nav ul{
    flex-direction:row;
    gap:10px;
  }
  .nav a{
    padding:10px 10px;
  }
  .nav-toggle{display:none}
}

/* Hero */
.hero{
  position:relative;
  min-height:60vh;
  display:flex;
  align-items:flex-start;
}
.hero img.bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 15%;
  filter:brightness(.4) saturate(.95);
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,60,67,.92) 70%);
}
.hero .content{
  position:relative;
  z-index:1;
  padding:12px 0 18px;
}
.badge{
  display:inline-block;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.45);
  padding:5px 12px;
  font-size:.85rem;
  color:var(--accent-orange-soft);
  background:rgba(0,0,0,.35);
}
h1,h2,h3{
  margin:0 0 8px;
  font-family:"Lora", Georgia, serif;
  color:#FDFBF7;
}
h1{
  font-size:clamp(28px,6vw,42px);
  letter-spacing:.2px;
}
h2{
  font-size:clamp(22px,4.2vw,30px);
}
h3{
  font-size:clamp(18px,3.4vw,22px);
}
.lead{
  font-size:1.02rem;
  max-width:62ch;
  color:#F3EFE5;
  margin:6px 0 8px;
}
.cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}
.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:12px;
  border:2px solid var(--accent-orange);
  background:var(--accent-orange);
  color:#111111;
  font-weight:700;
  box-shadow:0 7px 18px rgba(0,0,0,.5);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{
  background:var(--accent-orange-soft);
  border-color:var(--accent-orange-soft);
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(0,0,0,.65);
}
.btn--outline{
  background:transparent;
  border-color:var(--accent-green);
  color:var(--accent-orange-soft);
  box-shadow:none;
}
.btn--outline:hover{
  background:rgba(0,0,0,.35);
}

/* Sections */
.section{
  padding:32px 0;
  border-top:1px solid var(--border);
}
.kpis{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
}
.kpis .k{
  flex:1 1 120px;
  background:var(--panel-alt);
  border-radius:16px;
  border:1px solid var(--border);
  padding:14px;
}
.small{
  font-size:.92rem;
  color:var(--muted);
}

/* Grids, cards */
.grid{
  display:grid;
  gap:14px;
}
.grid-3{
  grid-template-columns:1fr;
}
@media (min-width:700px){
  .grid-3{grid-template-columns:repeat(3,1fr)}
}
.card{
  background:var(--panel);
  border-radius:16px;
  border:1px solid var(--border);
  padding:14px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:150px;
}
.card > p{color:var(--muted)}

/* Vida académica gallery */
.gallery.grid{gap:12px}
.gallery .sq{
  position:relative;
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--accent-green-deep);
}
.gallery .sq img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Mascota */
.mascot .mascot-wrap{
  display:grid;
  grid-template-columns:110px 1fr;
  gap:14px;
  align-items:center;
  background:var(--panel-alt);
  border-radius:16px;
  border:1px solid var(--border);
  padding:14px;
}
.mascot img{
  width:100%;
  height:auto;
}
@media (min-width:900px){
  .mascot .mascot-wrap{grid-template-columns:140px 1fr}
}

/* Footer */
footer{
  padding:26px 0 18px;
  border-top:1px solid var(--border);
  background:linear-gradient(180deg, var(--accent-green-deep), #001518);
}
footer .cols{
  display:grid;
  gap:14px;
}
@media (min-width:900px){
  footer .cols{grid-template-columns:2fr 1fr 1fr}
}
footer img{
  max-width:180px;
  height:auto;
  margin-bottom:8px;
}
footer p{margin:0 0 6px}
footer .small{color:var(--muted);}

@media (min-width:900px){
  .hero{min-height:74vh;align-items:flex-end;}
  .hero .content{padding:24px 0 30px;}
}


/* Hero bullet list */
.lead-list{
  margin:4px 0 0;
  padding-left:1.2rem;
  color:#F3EFE5;
  font-size:1.02rem;
}
.lead-list li{
  margin-bottom:2px;
}


/* Login button in top-right nav */
.nav-login a{
  border-radius:999px;
  border:1px solid var(--accent-orange-soft);
  padding-inline:14px;
  background:rgba(0,0,0,.25);
}
.nav-login a:hover{
  background:var(--accent-orange-soft);
  color:#111111;
}
@media (max-width:899px){
  .nav-login a{
    width:100%;
    text-align:center;
    margin-top:4px;
  }
}


/* --- Centered nav with logo in the middle --- */
@media (min-width:900px){
  .header-inner{
    justify-content:center;
    gap:16px;
  }
  .brand{
    display:none; /* usamos la marca dentro del menú en desktop */
  }
  .nav ul{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:center;
    gap:10px;
  }
  .nav-logo img{
    height:46px;
  }
  .nav-login{
    margin-left:auto;
  }
}

.nav-logo a{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:4px 8px;
}

@media (max-width:899px){
  .nav-logo{
    display:none; /* en móvil usamos el logo de la izquierda */
  }
  .brand img{
    height:34px;
  }
}

/* --- Overrides: larger central PADLA logo + sticky header --- */
.header{
  position:sticky;
  top:0;
  z-index:50;
}

@media (min-width:900px){
  .nav-logo img{
    height:90px; /* aproximadamente el doble del tamaño anterior */
  }
}


/* Secciones alternas con otro tono de verde */
.section-alt{
  background:var(--panel);
}


/* Top image carousel */
.top-carousel{
  padding:16px 0 8px;
  background:linear-gradient(180deg, rgba(0,31,33,.95), rgba(0,31,33,.8));
  border-bottom:1px solid var(--border);
}
.carousel{
  position:relative;
  border-radius:24px;
  overflow:hidden;
  background:var(--panel);
  box-shadow:0 20px 40px rgba(0,0,0,.60);
}
.carousel-track{
  position:relative;
  width:100%;
  height:0;
  padding-bottom:40%; /* aspect ratio ~ 5:2 */
}
.carousel-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .8s ease;
}
.carousel-slide.is-active{
  opacity:1;
}
.carousel-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  filter:brightness(.92);
}
.carousel-slide::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 20% 20%, rgba(254,127,72,.18), transparent 55%), linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45));
}
.carousel-caption{
  position:absolute;
  left:18px;
  bottom:16px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.35);
  font-size:.8rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.carousel-dots{
  position:absolute;
  right:18px;
  bottom:16px;
  display:flex;
  gap:6px;
}
.carousel-dots .dot{
  width:9px;
  height:9px;
  border-radius:999px;
  border:none;
  padding:0;
  background:rgba(255,255,255,.35);
  cursor:pointer;
}
.carousel-dots .dot.is-active{
  width:18px;
  background:var(--accent-orange);
}
@media (max-width:599px){
  .carousel-track{
    padding-bottom:52%; /* más alto en móvil */
  }
}

/* --- Spacing & polish between carousel and hero --- */
.top-carousel{
  padding-top:10px;
  padding-bottom:2px; /* menos espacio bajo el carrusel */
}
.hero{
  min-height:56vh; /* un poco más compacto para que no parezca demasiado largo tras el carrusel */
}
.hero .content{
  padding-top:6px;
  padding-bottom:14px;
}
.hero .badge{
  margin-top:2px;
}
@media (min-width:900px){
  .hero{
    min-height:68vh;
  }
  .hero .content{
    padding-top:10px;
    padding-bottom:22px;
  }
}

/* --- Tighter visual union between carousel and hero --- */
.top-carousel{
  padding-bottom:0; /* pega el hero al carrusel */
}
.hero{
  margin-top:-18px; /* ligero overlap para efecto premium */
  min-height:52vh;
}
.hero .content{
  padding-top:0;
  padding-bottom:16px;
}
@media (min-width:900px){
  .hero{
    margin-top:-24px;
    min-height:60vh;
  }
  .hero .content{
    padding-top:4px;
    padding-bottom:22px;
  }
}

/* --- Extra-tight spacing: carousel + hero practically unidos --- */
.top-carousel{
  padding-bottom:0;
}
.hero{
  margin-top:-40px;  /* subir aún más el hero debajo del carrusel */
  min-height:48vh;
}
.hero .content{
  padding-top:0;
  padding-bottom:14px;
}
.hero .badge{
  margin-top:0;
}
@media (min-width:900px){
  .hero{
    margin-top:-60px;
    min-height:56vh;
  }
  .hero .content{
    padding-top:0;
    padding-bottom:20px;
  }
}

/* --- Ultra-tight spacing: hero casi tocando el carrusel --- */
.top-carousel{
  padding-bottom:0;
}
.hero{
  margin-top:-70px;  /* todavía más arriba */
  min-height:44vh;
}
.hero .content{
  padding-top:0;
  padding-bottom:12px;
}
@media (min-width:900px){
  .hero{
    margin-top:-90px;
    min-height:50vh;
  }
  .hero .content{
    padding-top:0;
    padding-bottom:18px;
  }
}
