/* Ajustes generales */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
}

body {
    
    display: flex;
    flex-direction: column;
}

header {
    position: relative;
    padding: 0 2rem;
    background-color: #161515;
    background: linear-gradient(45deg, #161515, #2c2c2c);
    color: #d4af37;
    border-bottom: 3px solid #d4af37;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Ajustamos la altura */
}

/* Contenedor de la imagen */
.header-left {
    display: flex;
    align-items: center;
}

.header-logo {
    width: 240px; /* Ajusta el tamaño de la imagen */
    height: 70px;
    margin-right: 15px; /* Espacio entre la imagen y el título */
    margin-bottom: 10px;
}

.h2-container {
    position: relative;
    top: 60px;  
    text-align: center;
    font-size: 1.6rem; /* Ajusta el tamaño del texto */
    font-weight: bold; /* Asegúrate de que destaque */
    line-height: 1.2; /* Espaciado entre líneas */
    text-align: center; /* Centrado opcional */
    margin-bottom: 0.5rem;
}

.h2-container-sobre{
    position: relative;
    top: 10px;  
    text-align: center;
    font-size: 1.6rem; /* Ajusta el tamaño del texto */
    font-weight: bold; /* Asegúrate de que destaque */
    line-height: 1.2; /* Espaciado entre líneas */
    text-align: center; /* Centrado opcional */
    margin-bottom: 0.5rem;
}

.p-container{
    position: relative;
    top: 40px;  
    text-align: center;
    font-size: 1.1rem; /* Ajusta el tamaño del texto */
    line-height: 1.2; /* Espaciado entre líneas */
    text-align: center; /* Centrado opcional */
}

.title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: left;
    letter-spacing: 1px;
    color: #d4af37;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Sombra para el texto */
    padding-left: 10px; /* Alinea el título a 10px del borde izquierdo del header */
}

nav ul {
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: transparent;
}

nav button {
    background-color: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
    cursor: pointer;
    border-radius: 50px; /* Bordes más redondeados */
    padding: 0.8rem 1.6rem;
    transition: all 0.3s ease;
    align-items: center;
}
@media screen and (max-width: 768px) {
    nav button {
        margin-bottom: 10px; /* Margen inferior para móviles */
    }
}

nav button:hover {
    background-color: #d4af37;
    color: #111314;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

nav button:focus {
    outline: none; /* Elimina el borde al hacer clic */
}

/* Contenido Principal */
main {
    flex-grow: 1;
    padding: 3rem 2rem;
    text-align: center;
}

.content-section {
    display: none;
    max-width: 900px;
    margin: 0 auto;
    transition: opacity 0.3s;
}

.content-section.active {
    display: block;
}

/* Galería */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 100px;
}

.gallery img {
    border: 2px solid #d4af37;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    height: auto;
    width: cal(50% - 0.5rem);
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada */
}

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.gallery-btn {
    background-color: #d4af37;
    color: #161515;
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.gallery-btn:hover {
    background-color: #c89d29;
    transform: scale(1.05);
}

.page-buttons {
    display: flex;
    gap: 0.5rem;
}

.page-buttons button {
    background-color: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    border-radius: 50%;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-buttons button:hover,
.page-buttons button.active {
    background-color: #d4af37;
    color: #161515;
}

/* Redes Sociales */
.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
}
@media screen and (max-width: 768px) {
    .social-links {
        align-items: center; /* Margen inferior para móviles */
    }
}
.social-links li {
    margin: 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px; /* Ajusta el ancho */
    height: 50px; /* Ajusta la altura */
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    background-color: #d4af37; /* Cambia el color según la red social */
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background-color: #005582; /* Color más oscuro al pasar el cursor */
    transform: scale(1.05);
}

.social-links a i {
    margin-right: 10px;
    font-size: 24px; /* Tamaño del icono */
}


/* Footer */
footer {
    background-color: #161515;
    color: #d4af37;
    text-align: center;
    padding: 1.5rem 0;
    border-top: 3px solid #d4af37;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1); /* Sombra superior */
}

/* Responsive */
/* Estilos para móviles (pantallas de hasta 600px) */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: auto; /* Ajustar altura */
    }
    .header-logo {
        width: 240px; /* Ajusta el tamaño de la imagen */
        height: 70px;
        margin-right: 15px; /* Espacio entre la imagen y el título */
        margin-bottom: 15px;
        margin-left: 15px;
    }

    .title {
        font-size: 1.8rem; /* Reducir el tamaño del texto del título */
        padding: 0.5rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav button {
        width: 100%; /* Ocupa todo el ancho disponible */
        padding: 0.8rem;
        font-size: 1rem;
    }

    .h2-container, .p-container {
        font-size: 1rem; /* Texto más pequeño para pantallas móviles */
        padding: 0 1rem;
    }

    .gallery img {
        width: calc(20%-0.5rem); /* Asegúrate de que las imágenes sean fluidas */
    }

    .sobre-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .image-gallery img {
        width: 100%;
        max-width: 300px; /* Límites de tamaño */
    }

    .key-points {
        flex-direction: column;
        align-items: center;
    }

    .key-points .card {
        width: 90%; /* Reducir el tamaño de las tarjetas */
        margin-bottom: 1rem;
    }

    footer {
        font-size: 0.9rem;
    }
}

/* Pantallas medianas (601px a 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
    header {
        padding: 0 1rem;
    }

    .gallery img {
        width: calc(33.33% - 1rem); /* Tres imágenes por fila */
    }

    .sobre-container {
        gap: 2rem;
    }

    .key-points .card {
        width: calc(50% - 2rem); /* Dos tarjetas por fila */
    }
}
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .gallery img {
        width: 100%;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .gallery img {
        width: calc(33.33% - 1rem);
    }
}

@media (min-width: 1025px) {
    .gallery img {
        width: calc(25% - 1rem);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 1s ease-out;
}


nav button.active {
    background-color: #d4af37;
    color: #111314;
    transform: scale(1.05); /* Efecto de escala cuando está activo */
}

/* Slider */
.slider-container {
    display: flex;
    justify-content: center; /* Centrar horizontalmente */
    align-items: center;    /* Centrar verticalmente */
    height: 60vh;          /* Altura completa de la ventana */
    width: 100%;
    height: auto; /* Ajustar altura en móviles */
    padding: 1rem 0;
}

/* Slider */
.slider {
    display: flex;
    width: 1400px;
    height: 530px;
    max-width: none;
    margin-top: 50px;
}

.slider img {
    width: 0px;
    flex-grow: 1;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.5s ease;
    border: 3px solid transparent; /* Borde inicial invisible */
    border-radius: 8px;           /* Bordes redondeados */
    
}

.slider img:hover {
    cursor: crosshair;
    width: 350px; /* Aumenta el ancho al hacer hover */
    opacity: 1;
    filter: contrast(120%);
    border: 3px solid rgba(0, 0, 0, 0.5); /* Borde con leve color */
}

.sobre-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap; /* Para hacerlo responsive */
}

.sobre-container .text {
    flex: 1;
    max-width: 600px;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.sobre-container .image-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
}

.sobre-container .image-gallery img {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    object-fit: cover;
}

.sobre-parrafo{
    margin-top:45px;
    line-height: 1.6;
}

.key-points {
    margin-top: 3rem;
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    flex-wrap: wrap;
    margin-right: 20px;
}

.key-points .card {
    background-color: #f9f9f9;
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.key-points .card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.key-points .card i {
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.key-points .card h3 {
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 0.5rem;
}

.key-points .card p {
    font-size: 1rem;
    color: #555;
}

