/* Reset básico para una mejor consistencia entre navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos globales */
html {
    font-size: 16px; /* Base para rem (1rem = 16px) */
    line-height: 1.5;
    scroll-behavior: smooth;
}

body {
    font-family: "Be Vietnam Pro", serif;
    color: #323232; /* Texto primario */
    background-color: #fafafa; /* Fondo claro */
    margin: 0;
    padding: 0;
}

/* Encabezado */

header {
    position: fixed;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Fondo blanco con 80% de opacidad */
    backdrop-filter: blur(10px); /* Aplica el desenfoque al fondo */
    transition: background 0.3s ease, color 0.3s ease;
    z-index: 1000; /* Para que quede encima del contenido */
    height: 100px;
    border: solid 1px white;
}

header.scrolled {
    background: #333 0.9;
    backdrop-filter: blur(10px);
}

header.scrolled #contact {
    color: initial !important; /* Esto mantiene el color original del botón */
}

header.scrolled #contact:hover {
    color: white !important; /* Esto mantiene el color original del botón */
}

/* Ajuste para evitar que el contenido quede oculto debajo del header */
body {
    padding-top: 0px; /* Ajusta esto según la altura del header */
}
.navbar-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#nav {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    max-width: 1200px;
    height: 100px;
    padding: 0px 20px;
}

#nav img {
    height: 70px;
}

/* Estilo base para el menú */
.menu ul {
    list-style: none;
}

.menu ul li {
    display: inline-block;
}

.menu ul li a {
    text-decoration: none;
    font-size: 16px;
    padding: 10px 30px;
}

.menu ul li:hover {
    color: #fff !important;

}

.menu ul li a:hover {
    color: #fff;
    background-color: #282828; 
    padding: 10px 30px;
    border-radius: 20px;
}

/* Estilo para el ícono de hamburguesa */
#menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 20px;
    padding: 15px 0px;
}

#contact {
    text-decoration: none;
    font-size: 16px;
    width: 200px;
    padding: 10px 60px;
    background-color: #d8d8d8;
    color: #323232;  
    border-radius: 20px;
    cursor: pointer;
    margin-left: 20px;
}

#contact:hover {
    color: white;
    background-color: #6ec72a;
    border: solid 0px #fff;
    box-shadow: 0px 0px 20px #fff; /* Sombra suave */
}


@media (max-width: 768px) {
    .logo {
        width: 170px;
        height: auto;
    }
    .menu {
        display: none;
        width: 100%;
        top: 50px;
        background-color: rgb(255, 255, 255);
        left: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .menu ul {
        display: block;
        text-align: center;
        flex-direction: column;
    }

    .menu ul li {
        display: block;
        padding: 15px 0;
    }

    /* Mostrar el ícono de hamburguesa */
    #menu-toggle {
        display: block;
    }

    .menu.show {
        display: block;
    }

    .menu.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 20px;
        padding-top: 30px;
    }

    #nav {
        flex-direction: column;
        align-items: center;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 220px;
    }

    #nav img {
        margin-bottom: 10px;
    }

    header {
        height: 150px;
        margin-top: -20px;
    }

    #menu {
        margin-top: 100px;
    }
    .slide img {
        margin-top: 80px;
    }

}

/* Slideshow container */
.slideshow-container {
    position: relative;
    max-width: 100%;
    height: 700px;
    overflow: hidden;
    padding-top: 100px;
}

/* Slides */
.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide a {
    position: absolute;
    width: 250px;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    font-size: 16px;
    color: black;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    z-index: 10;
  }
/* Botón en el centro de cada slide */
.button-container {
    margin: 40px auto;
    text-align: center;
    width: 300px;
    border-radius: 10px;
}

.slide-btn {
    border-radius: 20px;
    color: #2f3640;
    width: 350px;
    height: 50px;
    font-size: 16px;
    margin-right: 50px;
    border: solid 1px #2f3640;
    background-color: white; /* Color inicial */
    transition: background-color 1s ease-in-out, opacity 1s ease-in-out, color 1s ease-in-out;
    display: flex;
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
}

.slide-btn:hover {
    color: white;
    background-color: #2f3640; /* Color final */
    opacity: 1; /* Cambia suavemente a un nivel de opacidad menor */
}

/* Navigation buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 30px;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    border-radius: 100%;
    transition: background-color 0.3s ease;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Fade animation */
.fade {
    animation: fade 1.5s ease-in-out;
}

@keyframes fade {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

#contenedor-titulo {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-top: 200px;
    padding-left: 20px;
    padding-right: 20px;
}


#contenedor-titulo2 {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
}


#titulos {
    text-align: center;
    max-width: 1200px;
    padding-bottom: 20px;
}

/* Contenedor de los recuadros */
.info-cards {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 1.5rem; /* Espacio entre recuadros */
    justify-content: center; /* Centrar horizontalmente */
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* Recuadro individual */
.card {
    border-radius: 20px;
    background-color: #fff;
    padding: 1.5rem;
    width: 350px; /* Ancho fijo */
    height: 400px;
    text-align: center; /* Centrar texto */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-wrap: wrap;
    justify-content:space-around;
    align-items: center;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px); /* Efecto de elevación */
}

/* Títulos */
.card h2 {
    font-size: 24px;
    margin-bottom: 1rem;
    color: #4a4a4a;
}

/* Texto */
.card p {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
}

.card img {
    height: 100px;
}

/* Enlaces */
a {
    color: #4a4a4a;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


.container {
    width: 100%;
    max-width: 1280px;
    margin: 60px auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 50px;
}

.video {
    width: 70%; /* Cada uno ocupa la mitad en escritorio */
}

.text {
    width: 50%;
    position: relative;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Asegura que el contenido se alinee hacia abajo */
    height: 100%;
}

.video iframe {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9; /* Mantiene una relación de aspecto 16:9, puedes ajustarlo según el video */
}

.text {
    padding: 20px;
    text-align: justify;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinea el texto en la parte superior */
}

h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

p {
    font-size: 18px;
    line-height: 1.5;
}

#titular {
    font-size: 30px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {

    .container {
        flex-direction: column;
        text-align: center;
        padding: 0px;
    }

    .video, .text {
        width: 100%; /* En mobile, ocupan todo el ancho */
    }

    .text {
        text-align: center;
        align-items: center;
        justify-content: center; /* En mobile, mantiene el centrado */
    }

}

/* Estilos del fondo del modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor del video */
#videos {
    width: 90%;
    margin: 0 auto;
}

#video {
    padding: 20px;
}

#video img {
    border-radius: 10px 10px 0px 0px;
}

#listado-videos {
    margin: 0 auto;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

#listado-videos button {
    font-size: 16px;
    border-radius: 0px 0px 10px 10px;
    width: 350px;
    height: 50px;
    background-color: #2f3640;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#listado-videos button:hover {
    color: white;
    transition: 0.5ms;
    background-color: #2f3640;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#listado-videos button:not(:hover) {
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

#listado-videos img {
    height: 350px;
    width: 350px;
    background-color: #8bc540;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
}


#link-videos {
    padding: 20px;
    color: #2f3640;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#boton-link a:hover {
    color: #fff;
    background-color: #2f3640;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#boton-link a {
    border-radius: 10px;
    color: #2f3640;
    text-decoration: none;
    padding: 15px 50px;
    background-color: #ffffff;
}

/* Botón de cierre */
.close {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 30px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transform: translateY(-40px);
}

iframe {
    width: 100%;
    height: 450px;
}

iframe {
    width: 100%;
    height: 450px;
}


/*Box informativo de redes*/

#contenedor-import {
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;
}

#import {
    background-color: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    height: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

#title-import {
    font-size: 20px;
    font-weight: 500;
}

#social {
    margin: 0 0px;
    width: 80px;
    border: none;
    outline: none;
    background-color: white;
    border: white;
}

#social:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease
}

#social img {
    border-radius: 10px;
}

/* Pie de página */
footer {
    background-color: #282828; /* Fondo oscuro */
    color: #fff; /* Texto blanco */
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Listas */
ul {
    list-style: none;
    padding: 0;
}


/* Clases de utilidad */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* Ajuste del tamaño del video */
iframe {
    width: 100%;
    height: 600px; /* Aumenté la altura del video */
    max-width: 1200px; /* Tamaño máximo del video */
    display: block;
    margin: auto;
    border-radius: 10px; /* Opcional: bordes redondeados */
}

/* Ajuste del contenedor del modal para videos */
.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px; /* Aumenté el tamaño máximo del modal */
    margin: auto;
}

/* Ajuste responsivo para el video */
@media (max-width: 1024px) {
    iframe {
        height: 500px; /* Reduce el tamaño del video en pantallas medianas */
    }

    .container {
        display: flex;
        flex-wrap: wrap;
    }

    .video {
        width: 100%;
    }

    .text {
        width: 100%;
    }
}

@media (max-width: 768px) {
    iframe {
        height: 400px; /* Reduce aún más el video en pantallas pequeñas */
    }
}

@media (max-width: 480px) {
    iframe {
        height: 300px; /* Video más pequeño en móviles */
    }
}


@media (max-width: 700px) {
    .slideshow-container {
        padding-top: 100px;
        height: 600px;
    }
}

/* FORMULARIO CONTACTO */

form {
    max-width: 800px;
    margin: auto;
    padding: 40px;
    border-radius: 10px;
    background: #ffffff;
  }
  label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
  }
  input, textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }

  #message {
    width: 100%;
    height: 200px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  button {
    width: 100%;
    padding: 10px 10px;
    background: #2f3640;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
  }
  button:hover {
    transition: background-color 0.3s ease;
    background: #505c6c;
    color: white;
  }

  .button {
    --color: #2f3640;
    padding: 13px 40px;
    background-color: transparent;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: .5s;
    font-weight: 400;
    font-size: 14px;
    border: 1px solid;
    font-family: "Be Vietnam Pro", serif;
    text-transform: uppercase;
    color: var(--color);
    z-index: 1;
    width: 250px;
   }

/*HISTORIAS*/

#separador {
    padding: 40px;
}

hr {
    max-width: 1000px;
    margin: 60px auto;
    border: solid 1px #d8d8d8;
}

.container2 {
    margin: 60px auto;
    max-width: 1280px;
    width: 100%;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 0px 20px;
}
.gallery img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery img {
        border-radius: 20px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
    }
    .gallery img {
        border-radius: 20px;
        height: 400px;
    }

    .slide a {
        top: 85%;
    }
}
