/* ======================================
   LAYOUT DEL SITIO
   Estructura principal de la página
====================================== */
/* =====================================================
LAYOUT.CSS — ESTRUCTURA DEL SITIO
-------------------------------------------------------


===================================================== */

.site-header {
    display: flex;
    align-items: flex-end;     /* todos los hijos ahora se alinean al borde inferior */
    justify-content: space-between;
    padding: var(--space-4) var(--space-5) 0 var(--space-5);
}



.site-header{
padding-top: 24px;   /* equivale a var(--space-4) */
/* 2. Padding derecho */
padding-right: 35px; /* equivale a var(--space-5) */
/* 3. Padding inferior */
padding-bottom: 0px; /* literal 0, no depende de variable */
/* 4. Padding izquierdo */
padding-left: 50px;  /* equivale a var(--space-5) */
background: var(--color-surface);
display: flex;
align-items: center;
justify-content: space-between;

}



.site-nav {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start; /* Empuja el contenido al techo */

    padding-top: 0px;
    padding-bottom: 5px;
    padding-left: 15px;
    padding-right: 15px;

    background: #0a0c0e; 
    gap: 20px; 

    line-height: 1; /* Mantiene el tamaño de la letra sin aire extra */
}




.site-nav a{

text-decoration:none;
color:var(--color-text);
transition: color 0.25s ease;
text-transform: uppercase;
letter-spacing: 0.07em;
font-weight:600;
font-size:0.9rem;
}




/* Estilo para los Puestos Base del Menú */
.site-nav a{
    display: flex;
    list-style: none;
    gap: 20px; /* Ajusta según tu diseño */
}

.menu-item-base {
    position: relative; /* Necesario para posicionar el sub-menu */
}

/* El Sub-menú (Invisible por defecto) */
.sub-menu {
    position: absolute;
    top: 100%; /* Lo pega justo debajo del texto principal */
    left: 0;
    background: rgba(0, 0, 0, 0.9); /* Fondo sólido/elegante */
    padding: 10px;
    list-style: none;
    min-width: 150px;
    display: none; /* OCULTO */
    z-index: 1000;
}

/* Mostrar al pasar el mouse */
.menu-item-base:hover .sub-menu {
    display: block; /* APARECE */
}

/* Estilo de los enlaces dentro del sub-menu */
.sub-menu li a {
    display: block;
    padding: 5px 0;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}












/* 3. Tu CSS del logo actual (Se mantiene igual) */
.logo img {
    height: 25px;
    display: block;
    align-items: end;
}



.hero-rectangular {
  width: 100%;
  height: 450px; /* puedes ajustar luego */
  position: relative;
  overflow: hidden;
}


.hero-rectangular {
  margin-bottom: 80px;
}


.hero-slide {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* 🔥 CLAVE */

  padding: 60px;
  box-sizing: border-box;

  text-align: left; /* 🔥 IMPORTANTE */

  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0) 80%
  );
}


.content-grid{

display:grid;

grid-template-columns: repeat(3, minmax(0, 1fr));
gap:var(--space-4);

padding:var(--space-4);

}

.hero-title {
  text-align: left;
  margin-bottom: 10px;
  font-size: 2.7rem;
  margin-bottom: 10px;
  color: white;
}


.hero-text {
  font-size: 1rem;
  max-width: 400px;
  margin-bottom: 20px;
  color: white;
}


.hero-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 22px;

  background: rgba(255, 255, 255, 0.15);
  color: #fff;

  border: 1px solid rgba(255,255,255,0.4);
  text-decoration: none;

  backdrop-filter: blur(4px);

  transition: all 0.3s ease;
}


.hero-btn:hover {
  background: #fff;
  color: #000;
}


.hero-title {
  margin-bottom: 12px;
}

.hero-text {
  max-width: 420px;
  line-height: 1.5;
  font-size: 1.3rem; /* 🔥 ajuste */
  margin-bottom: 18px;
}




.site-footer{

background-color: var(--footer-bg);
padding:var(--space-3);
text-align:center;
height: auto;
color:var(--color-muted);
min-height: 150px;


}


  .site-footer {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-top p {
        margin: 0;
        font-family: sans-serif;
        font-size: 14px;
        color: #333;
    }




.sponsor-box {
    width: 100px;
    height: auto;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    flex-shrink: 1;          /* CAMBIO: Ahora permite encogerse si es necesario */
}

.sponsor-box img {

    height: 35px;      /* Altura fija para que todos se vean alineados */
    width: auto;        /* El ancho se ajusta solo para no deformar */
    object-fit: contain;
}

.sponsor-box {
    flex-shrink: 0;      /* Evita que se aplasten para intentar caber */
}


    .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center; /* Mantiene el centro perfecto */
    flex-wrap: wrap;         /* Permite que bajen de fila si no hay espacio */
    gap: 15px;
    width: 100%;             /* No deja que el contenedor sea más ancho que la pantalla */
}






.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}



.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 40px;
  box-sizing: border-box;

  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0) 80%
  );
}


.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}



.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;

  width: 40px;
  height: 40px;

  cursor: pointer;
  z-index: 3;

  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.hero-prev:hover,
.hero-next:hover {
  opacity: 1;
}

.hero-prev {
  left: 15px;
}

.hero-next {
  right: 15px;
}

.content-grid {
  position: relative;
  padding-top: 80px; /* espacio desde el HERO */
  

}

.content-grid::before {
  content: "";
  position: absolute;
  top: 0px; /* 🔥 justo debajo del HERO */
  left: 50%;
  transform: translateX(-50%);

  width: 95%;
  height: 1px;

  background: rgba(0, 0, 0, 0.25);
}



.site-nav a:nth-child(1):hover{
color:var(--color-verde);

}

.site-nav a:nth-child(2):hover{
color:var(--color-lima);

}

.site-nav a:nth-child(3):hover{
color:var(--color-magenta);

}

.site-nav a:nth-child(4):hover{
color:var(--color-azul);

}

.site-nav a:nth-child(5):hover{
color:var(--color-naranja);

}

.site-nav a:nth-child(6):hover{
color:var(--color-ambar);

}


ul {
    list-style-type: none; /* Elimina viñetas */
    padding: 0;
    margin: 0;
}

li {
    list-style-type: none; /* Elimina viñetas */
    padding: 0;
    margin: 0;
}