/* ESTILOS GENERALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    color: white;
    overflow-x: hidden;
    height: 100%;
    margin: 0;
}
html{
    height: 100%;
    margin: 0;
}
.layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* FONDO DINÁMICO */
.hero {
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* LOGO Y TEXTO PRINCIPAL */
.logo-container {
    margin-bottom: 3rem;
}

.logo {
    width: 300px;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
}


.tagline {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 400;
}
/*LIDERES EN */
 h2 > span {
        position: relative;
        display: inline-block;
        color: #7484b4;
        vertical-align: bottom;
        overflow: hidden;
        height: 1.25em;
    }

    h2 > span > span {
        display: block;
        animation: anim 5s infinite ease;
    }
    
    @keyframes anim {
      0%   { 
        transform: translateY(0%); 
            }
      25%  { 
        transform: translateY(-100%); 
            }
      50%  { 
        transform: translateY(-200%); 
            }
      75%  { 
        transform: translateY(-300%); 
            }
      100% {
        transform: translateY(-400%); 
       }
    }
/*FIN DE "LIDERES EN:" */    

/* PAÍSES - ESTILO MODERNO */
.paises-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px; /* Ajusta según necesidad */
    margin: 30px auto;
}

.pais-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pais-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: #00a2ff;
}

/* -----PARTNER BADGE -----*/
.partners-container {
    position: absolute;
    bottom: 30px;
    left: 30px; /* Cambiamos a izquierda */
    display: flex;
    gap: 20px; /* Espacio entre badges */
    z-index: 100;
    justify-content: center; /* centrado en el contenedor */
}

.partner-badge {
    /* Eliminamos position:fixed y right de aqui */
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #00a2ff;
    /* Añadimos sombra para mejor contraste */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* El resto se mantiene igual */
.partner-logo {
    height: 40px;
}

.partner-text {
    font-size: 0.9rem;
    display: flex;
    flex-direction: column; /* Organiza texto verticalmente */
}

.partner-text strong {
    color: #00a2ff;
    font-weight: 600;
}


/* Estilos para las tarjetas de país */
.pais-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    width: 150px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.pais-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pais-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,162,255,0.3) 0%, rgba(0,0,0,0) 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.pais-card:hover::before {
    opacity: 1;
}

/* Estilos para las banderas */
.bandera {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.95rem;
}

/*Responsive*/
/* --- RESPONSIVE DESIGN --- */

/* Tablets (≤ 900px) */
@media (max-width: 900px) {
  .logo {
    width: 200px;
  }
  h1 {
    font-size: 2.2rem;
  }
  .tagline {
    font-size: 1.1rem;
  }
  .paises-container {
    max-width: 98vw;
    gap: 10px;
  }
  .pais-card {
    width: 120px;
    padding: 15px;
  }
  .bandera {
    width: 60px;
    height: 38px;
  }
  .partners-container {
    left: 10px;
    bottom: 10px;
    gap: 10px;
  }
  .partner-badge {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
}

/* Celulares (≤ 600px) */
@media (max-width: 600px) {
  .logo-container {
    margin-bottom: 1.5rem;
  }
  .logo {
    width: 130px;
    margin-bottom: 1rem;
  }
  h1 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
  }
  .tagline {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .paises-container {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 15px auto;
  }
  .pais-card {
    width: 90vw;
    max-width: 250px;
    padding: 10px;
    font-size: 0.95rem;
  }
  .bandera {
    width: 45px;
    height: 28px;
    margin-bottom: 7px;
  }
  .partners-container {
    flex-direction: column;
    left: 0;
    right: 0;
    bottom: 0;
    gap: 8px;
    align-items: center;
    width: 100vw;
    padding-bottom: 10px;
  }
  .partner-badge {
    width: 90vw;
    max-width: 300px;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  .footer {
    font-size: 0.8rem;
    padding: 12px 0;
  }
  .hero {
    padding: 10px;
  }
}