/* Reset básico */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}


/* HEADER */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 50px; /* Más espacio */
    gap: 30px; /* Espacio entre logo y menú */
    flex-wrap: wrap;
}

/* Logo */
.logo {
    flex: 1;
    text-align: left;
}

.logo img {
    max-height: 150px; /* Tamaño adecuado del logo */
}

/* Menú */
.menu {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Espacio uniforme entre botones */
}

/* Botones */
.menu .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    text-align: center;
    color: #ffffff;
    font-size: 14px; /* Tamaño de fuente más grande */
    font-weight: bold;
    padding: 12px 20px; /* Tamaño más grande */
    background-color: #5BBBE8;
    border: 1px solid transparent;
    border-radius: 6px;
    width: 150px; /* Todos los botones del mismo ancho */
    height: 40px; /* Altura uniforme */
    transition: all 0.3s ease;
}

.menu .btn:hover {
    background-color: #00B2FF;
}

/* Asegurar que el texto se mantenga centrado */
.menu .btn br {
    display: none; /* Evitar saltos de línea dentro de botones */
}


/* HOME */
/*SECTION 1*/
.section-1 {
    position: relative;
    width: 100%;
    height: 90vh; /* Ocupa el 90% de la pantalla */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    object-fit: cover;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.content {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: absolute;
    top: 15%; /* Ajustamos la posición vertical */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.section-logo {
    max-width: 550px;
    height: auto;
}

h1 {
    font-size: 2rem;
    line-height: 1.5;
    margin: 0;
    /* text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); */
}

.btn-highlight {
    text-decoration: none;
    color: #4D4D4D;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 20px 30px;
    background-color: #FFD300;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-highlight:hover {
    background-color: #FFC700;
    transform: translateY(-2px);
}

.highlight-banner {
    position: absolute;
    bottom: 10%; /* Se ajusta mejor al final del overlay */
    left: 0;
    width: 100%;
    background: rgba(91, 187, 232, 0.8);
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1;
}

.highlight-banner p {
    margin: 0;
    line-height: 1.5;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}
/*SECTION 2*/
/* Titulos */
.section-2 {
    padding: 0px 20px; /* Reducir padding superior e inferior */
    margin-top: -70px; /* Ajuste fino para acercar a la sección 1 */
    background-color: #ffffff;
    text-align: center;
}
.section-header {
    max-width: 800px;
    margin: 0 auto 20px; /* Reducir margen inferior */
}

.section-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
    text-align: center;
    margin: 5 auto 20px;
}

.section-subtitle {
    font-size: 2.1rem;
    color: #666666;
    font-weight: bold;
    line-height: 1.2;
    margin: 0 0 10px;
}
.section-description {
    font-size: 1.8rem;
    color: #888888;
    margin: 0;
}
/* Sección Genérica de Tres Columnas */
.section-3-columns {
    padding: 40px 20px;
    background-color: #fff;
    text-align: center;
}

.columns-container {
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.column-item {
    flex: 1 1 calc(33.333% - 20px); 
    background-color: #E0F2FC; 
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; 
}

.column-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin: 0; 
    display: block; 
}

/* Título con Fondo Amarillo */
.column-title {
    background-color: #FFD300;
    color: #4D4D4D;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 15px;
    text-align: center;
    margin: 0; 
    line-height: 1.2; 
}

/* Párrafo con Fondo Celeste */
.column-text {
    background-color: #E0F2FC; 
    color: #666666;
    font-size: 1rem;
    padding: 15px;
    text-align: left;
    flex-grow: 1; 
}

.column-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
/* Sección 3 - Ajustes específicos */
.section-3 {
    padding: 40px 20px;
    background-color: #4D4D4D;
    text-align: center;
}

.section-3 .section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
}
.section-3 .column-title {
    text-align: left;
    font-weight: 600;
    padding: 10px;
    background-color: #FFD400;
}

/* Subtítulo dentro de columnas */
.column-subtitle {
    font-size: 1.8rem;
    color: #ffffff;
    text-align: left;
    padding: 10px;
    font-weight: bold;
    background-color: #5BBBE8;
}
.section-3 .column-text {
    color: #4D4D4D;
    font-size: 1.5rem;
    background-color: #BAE2E8;
    text-align: left;
    padding: 10px;
    font-weight: bold;
}
/* Enlaces en las tarjetas */
.section-3 .columns-container a.column-item {
    text-decoration: none;
    color: inherit; /* Hereda los colores de los hijos */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-3 .columns-container a.column-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
/* SECCIÓN 4: VIDEO EN MODAL */
.section-4 {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

/* Espacio entre el título y el video */
.section-4-header {
    margin-bottom: 40px; 
}

/* Contenedor de Video */
.section-4-video-placeholder {
    position: relative; /* Importante para z-index */
    max-width: 800px;
    margin: 0 auto;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Imagen de Portada del Video */
.section-4-video-placeholder img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Botón Play Personalizado */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; /* Tamaño del botón */
    height: 56px; /* Mantiene la proporción clásica */
    background: url('../images/play-button-red.png') no-repeat center center;
    background-size: cover;
    cursor: pointer;
    z-index: 2; /* Garantiza que esté por encima de la portada */
    transition: transform 0.2s ease-in-out;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1); /* Efecto hover */
}

/* ESTILOS MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background-color: #000;
    overflow: hidden;
    border-radius: 8px;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

.close-modal:hover {
    color: #ff0000;
}

/* FIN HOME */
/* FOOTER */

footer {
    background-color: #000;
    padding: 0 0 0 0;
    margin-top: 0px;
  }
  
  footer .wrapper div {
    display: inline-block;
  }
  
  footer .wrapper div p {
    color: #999898;
    margin-top: 10px
  }
  
  footer .wrapper div ul {
    list-style: none;
  }
  
  footer .wrapper div li {
    display: inline-block;
  }
  
  footer .wrapper div li a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 2em
  }
  
  footer .wrapper div li a:hover {
    color: #fff;
  }
  
  footer .wrapper>ul {
    float: right;
    list-style: none;
    font-size: 0.9em;
    color: #e0e0e0;
    display: inline-block;
  }
  
  footer .wrapper>ul>li {
    display: inline-block;
    vertical-align: top;
    margin: 0 1em
  }
  
  footer .wrapper>ul a {
    color: #e0e0e0
  }
  
  footer .wrapper>ul a:hover {
    color: #ffffff
  }
  
  footer .wrapper>ul>li a {
    text-decoration: none;
    color: #e0e0e0
  }
  
  footer .wrapper>ul>li>ul {
    list-style: none;
  }
  
  footer .wrapper>ul>li>ul span {
    color: #999898
  }
  
  footer .wrapper>ul>li>ul>li {
    margin-bottom: 1em
  }
  
  footer #focus-footer {
    background-color: #141414;
    padding: 2em 0 2em 0;
    display: block;
    margin-top: 1em
  }
  
  footer #focus-footer>a {
    display: block;
  }
  
  footer #focus-footer img {
    display: block;
    margin: 0 auto 1em
  }
  
  footer #focus-footer p {
    color: #dfdfdf;
    text-align: center;
    font-size: 12px
  }
  
  footer #focus-footer p a {
    text-decoration: none;
    color: #dfdfdf;
  }
  
  #alert {
    position: fixed;
    top: 0;
    background-color: #CB0303;
    padding: 10px;
    font-size: 1em;
    color: #fff;
    display: none;
    width: 100%;
    text-align: center;
  }
  
  #alert a {
    color: #fff
  }
  
  #alert a:hover {
    color: #fff
  }  
  /*REDES SOCIALES*/
  .btn-ig {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 100px;
    right: 30px;
    line-height: 55px;
    z-index: 999999;
  }
  
  .btn-ig img {
    width: 55px;
    height: 55px;
  }
  
  .btn-ig img:hover {
    width: 58px;
    height: 58px;
  }
  .btn-whatsapp {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 30px;
    right: 30px;
    line-height: 55px;
    z-index: 999999;
  }
  
  .btn-whatsapp img {
    width: 55px;
    height: 55px;
  }
  
  .btn-whatsapp img:hover {
    width: 58px;
    height: 58px;
  }

/* MEDIA QUERIES */
/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    .nav {
        flex-direction: column;
        align-items: center;
        padding: 20px 10px;
    }

    .logo {
        text-align: center;
        margin-bottom: 15px;
    }

    .menu {
        display: flex;
        flex-direction: column; /* Botones en columna */
        align-items: center;
        gap: 10px;
        background-color: #F0F0F0; /* Fondo gris */
        width: 100%; /* Asegura que ocupe todo el ancho */
        padding: 15px 0; /* Espaciado interno */
        border-radius: 0; /* Elimina bordes redondeados en el contenedor */
    }

    .menu .btn {
        font-size: 16px;
        padding: 12px 18px;
        width: 80%; /* Botones ocupan más espacio horizontal */
        background-color: #5BBBE8; /* Fondo azul en cada botón */
        border-radius: 6px;
    }
    .section-logo {
        max-width: 250px;
        height: auto;
    }
    h1 {
        font-size: 1rem;
        line-height: 1.2;
    }
    .btn-highlight {
        font-size: 1rem;
        padding: 10px 15px;
    }
    .highlight-banner {
        bottom: 80px; 
        padding: 15px 0;
        font-size: 0.9rem; 
    }
    .highlight-banner p {
        margin: 0;
        line-height: 1.2; 
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 1.3rem;
        color: #666666;
        font-weight: bold;
        line-height: 1;
        margin: 0 0 10px;
    }
    .section-description {
        font-size: 1rem;
        color: #888888;
        margin: 0;
    }
    .columns-container {
        flex-direction: column;
    }

    .column-item {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: center;
        padding: 25px 20px;
    }

    .logo {
        text-align: center;
        margin-bottom: 20px;
    }

    .menu {
        flex-direction: row; /* Botones en fila */
        justify-content: center;
        gap: 15px;
    }

    .menu {
        display: flex;
        flex-direction: row; /* Botones en fila */
        justify-content: center;
        gap: 15px;
        background-color: #F0F0F0; /* Fondo gris */
        width: 100%; /* Asegura que ocupe todo el ancho */
        padding: 15px 0; /* Espaciado interno */
        border-radius: 0; /* Elimina bordes redondeados en el contenedor */
    }
    .content {
        gap: 20px;
        top: 10%; 
    }
    .section-logo {
        max-width: 250px;
        height: auto;
    }
    h1 {
        font-size: 1.4rem;
        line-height: 1.5;
    }
    .btn-highlight {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .highlight-banner {
        bottom: 58px; 
        padding: 15px 0;
        font-size: 1rem; 
    }
    .columns-container {
        flex-direction: column;
    }

    .column-item {
        flex: 1 1 100%;
    }
    .columns-container {
        gap: 15px;
    }

    .column-item {
        flex: 1 1 calc(50% - 15px); /* Dos columnas en tablets */
    }
    .modal-content {
        width: 95%;
    }
    .play-button {
        font-size: 2rem;
    }
}

/* Laptops pequeñas y tablets horizontales (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav {
        justify-content: space-around;
    }
    .menu {
        flex-direction: row;
        justify-content: space-between;
    }
    .content {
        gap: 20px;
        top: 10%; 
    }
    .section-logo {
        max-width: 350px;
        height: auto;
    }
    h1 {
        font-size: 1.8rem;
        line-height: 1.5;
    }
    .btn-highlight {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .highlight-banner {
        bottom: 54px; 
        padding: 15px 0;
        font-size: 1.2rem; 
    }
    .columns-container {
        gap: 20px;
    }

    .column-item {
        flex: 1 1 calc(33.333% - 20px); /* Tres columnas ajustadas */
    }
}

/* Laptops estándar (1025px - 1440px) */
@media (min-width: 1025px) {
    .nav {
        justify-content: space-between;
    }
    .menu {
        justify-content: center;
    }
}
