
/* Reset */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f9;
    overflow-x: hidden; /* Evita el desbordamiento horizontal */
}

/* Header and Navbar */
header {
    background-color: #06125c;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Contenedor del logo */
.logo-container {
    width: 300px;
    height: 100px;
    background-color: white;
    border-top-right-radius: 75px;
    border-bottom-right-radius: 75px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    margin-left: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.logo-container img {
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: left center;
    margin-left: 100px;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 10px 20px;
    margin-right: 200px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 50px;
}

.nav-list > li {
    position: relative;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 10px 20px;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-list a:hover {
    background-color: #fdd835;
    color: #06125c;
    border-radius: 5px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: #333;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 200px;
    z-index: 1000;
    text-align: center;
}

.dropdown-menu li {
    padding: 10px 0;
}

.dropdown-menu a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s, background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #fdd835;
    color: #06125c;
}

.dropdown:hover .dropdown-menu {
    display: block;
}
/* 🔽 RESPONSIVE: Menú Hamburguesa */
.menu-icon {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    margin: 10px;
}

#menu-toggle {
    display: none;
}

/* Estilos Responsive */
@media (max-width: 768px) {
    .logo-container {
        width: 180px;
        height: 60px;
    }

    .navbar {
        position: absolute;
        top: 100%; /* Coloca el navbar debajo del header */
        left: 0;
        width: 100%;
        background: #06125c;
        display: none; /* Oculta el navbar por defecto */
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        z-index: 1000; /* Asegura que el navbar esté por encima de otros elementos */
    }

    .menu-icon {
        display: block; /* Muestra el ícono del menú hamburguesa */
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    .dropdown-menu {
        position: static;
        display: none; /* Oculta el menú desplegable por defecto */
        background-color: #ffffff; /* Fondo blanco */
        border-radius: 8px; /* Bordes redondeados */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra suave */
        padding: 10px 0;
        margin-top: 10px;
        width: 90%; /* Ancho relativo al contenedor */
        max-width: 250px; /* Ancho máximo */
        transition: opacity 0.3s ease, transform 0.3s ease; /* Transición suave */
        opacity: 0; /* Inicialmente transparente */
        transform: translateY(-10px); /* Desplazamiento inicial */
    }

    .dropdown-menu li {
        padding: 8px 20px; /* Espaciado interno */
    }

    .dropdown-menu a {
        color: #333; /* Color de texto oscuro */
        text-decoration: none;
        font-size: 0.9rem;
        display: block; /* Hace que el enlace ocupe todo el ancho */
        transition: color 0.3s ease, background-color 0.3s ease; /* Transición suave */
    }

    .dropdown-menu a:hover {
        color: #06125c; /* Color de texto al hacer hover */
        background-color: #fdd835; /* Fondo amarillo al hacer hover */
        border-radius: 4px; /* Bordes redondeados al hacer hover */
    }

    /* Muestra el navbar cuando el menú hamburguesa está activado */
    #menu-toggle:checked ~ .navbar {
        display: flex;
    }

    /* Muestra el menú desplegable cuando el dropdown está activo */
    .dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1; /* Hace visible el menú */
        transform: translateY(0); /* Restablece la posición */
    }
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fdd835;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

.btn:hover {
    background-color: #f6da62;
}



.hero {
    position: relative;
    background: url('../img/banner.jpg') no-repeat center center/cover;
    color: rgb(255, 255, 255);
    display: flex; /* Habilita flexbox */
    flex-direction: column; /* Organiza los elementos en columna */
    justify-content: center; /* Centra verticalmente */
    align-items: flex-start; /* Alinea a la izquierda */
    text-align: left; /* Alinea el texto a la izquierda */
    padding: 200px 20px;
    font-family: Arial, sans-serif; /* Ejemplo de fuente que soporta bold */
    font-weight: bold; /* Negrilla */
}



.hero h1 {
    font-size: 3em;
    margin: 0;
    max-width: 500px;
}

.hero p {
    font-size: 1.5em;
    margin: 10px 0 20px;
    max-width: 300px;
}

.hero button {
    background-color: #fdd835;
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero button:hover {
    background-color: #e6c022;
}

.section-wrapper {
    border: 2px solid #ddd; /* Color y grosor del borde */
    border-radius: 15px; /* Esquinas redondeadas */
    background-color: #fff; /* Fondo blanco */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra opcional */
    margin: 0px auto; /* Espaciado externo y centrado */
    max-width: 100%; /* Ancho máximo */
    position: relative; /* Necesario para ajustar elementos internos */
}

.section-wrapper h2 {
    background-color: #06125c; /* Color azul para la barra */
    color: #fff; /* Texto blanco */
    padding: 15px; /* Espaciado interno */
    border-radius: 15px; /* Bordes completamente redondeados */
    text-align: center; /* Centra el texto horizontalmente */
    margin: 0 auto 20px auto; /* Centra el título y agrega margen inferior */
    font-size: 1.8rem; /* Tamaño del texto */
    font-weight: bold; /* Hace el texto más destacado */
    max-width: 100%; /* Evita que el título sobresalga del contenedor */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra para resaltar */
}


.section-novedades {
    border: 2px solid #ddd; /* Color y grosor del borde */
    border-radius: 15px; /* Esquinas redondeadas */
    background-color: #fff; /* Fondo blanco */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra opcional */
    margin: 0px auto; /* Espaciado externo y centrado */
    max-width: 100%; /* Ancho máximo */
}

.section-novedades h2 {
    background-color: #06125c; /* Color azul para la barra */
    color: #fff; /* Texto blanco */
    padding: 15px; /* Espaciado interno */
    border-radius: 15px; /* Bordes completamente redondeados */
    text-align: center; /* Centra el texto horizontalmente */
    margin: 0 auto 20px auto; /* Centra el título y agrega margen inferior */
    font-size: 1.8rem; /* Tamaño del texto */
    font-weight: bold; /* Hace el texto más destacado */
    max-width: 100%; /* Evita que el título sobresalga del contenedor */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra para resaltar */
}


.section {
    padding: 20px;
    text-align: center;
}


.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch; /* Asegura la misma altura */
    gap: 20px;
    margin: 40px 0; /* Mayor separación del contenido circundante */
    padding: 0 20px; /* Espaciado lateral para pantallas pequeñas */
}

.service {
    background: linear-gradient(145deg, #f9f9f9, #e9e9e9);
    border: none; /* Elimina el borde sólido */
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: calc(33.333% - 20px);
    max-width: 300px;
    height: 400px; /* Establece una altura fija para los recuadros */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Animación simple */
    padding: 20px;
    margin: 10px;
    cursor: pointer;
}

.service:hover {
    transform: translateY(-5px); /* Desplazamiento más pequeño */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Sombra más ligera */
}

/* Ajusta todas las imágenes al mismo tamaño */
.service img {
    width: 100%;
    height: 200px; /* Establece una altura fija para las imágenes */
    object-fit: cover; /* Asegura que las imágenes se escalen sin deformarse */
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra ligera */
    transition: transform 0.1s ease; /* Animación más rápida */
}

.service img:hover {
    transform: scale(1.02); /* Pequeño zoom */
}


.service h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
}

.service p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1; /* Asegura que el texto ocupe el espacio disponible */
}

.service a {
    text-decoration: none;
    font-size: 1rem;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

/* Responsividad para pantallas más pequeñas */
@media (max-width: 768px) {
    .service {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .service {
        width: 100%;
        max-width: none;
    }
}

.service h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #00327a;
    margin: 10px 0;
}

.service p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    padding: 0 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.service button {
    background-color: #fdd835;
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.service button:hover {
    background-color: #e6c022;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .service {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .service {
        width: 100%;
    }
}

/*Seccion 2 */

/* Estilo general para los botones */
.btn-novedad {
    display: inline-block;
    background-color: #fdd835; 
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}
/* Botón con efecto hover y active */
.btn-novedad {
    background-color: #fdd835;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    will-change: transform, background-color;
}

.btn-novedad:hover, .btn-novedad:focus {
    background-color: #f6da62; 
    transform: scale(1.05);
    outline: none; /* Elimina outline por defecto */
    box-shadow: 0 0 4px #f6da62; 
}

.btn-novedad:active {
    background-color: #f6da62;
    transform: scale(0.98);
}

/* Contenedor para botones en dispositivos móviles */
.novedad-content {
    text-align: center; /* Centrar el contenido */
    margin-top: 10px;
}

/* Contenedor de novedades */
.novedades-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adaptable a distintos tamaños */
    gap: 20px;
    padding: 20px;
}

/* Estilo de cada tarjeta de novedad */
.novedad {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform, box-shadow;
}

.novedad:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


.novedad img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
    display: block;
    border-radius: 8px 8px 0 0;
}


.section.novedades {
    background: #f7f9fc;
    padding: 40px 20px;
    text-align: center;
}

.novedades h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
}

.novedades-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.novedad {
    flex: 1 1 calc(33.333% - 40px); /* Cada caja ocupa un tercio del ancho */
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.novedad:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.novedad img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.novedad-content {
    padding: 20px;
    text-align: left;
}

.novedad-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #06125c;
    margin-bottom: 10px;
}

.novedad-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.social-media p {
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease, opacity 0.3s ease;

}

.social-icons a img:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

/* Footer */
footer {
    background-color: #06125c; /* Fondo azul oscuro */
    color: white;
    padding: 40px 20px; /* Espaciado general */
    text-align: center; /* Centrar el texto */
}

.footer-content {
    display: flex;
    justify-content: center; /* Centrar horizontalmente */
    flex-wrap: wrap; /* Ajustar en pantallas pequeñas */
    gap: 30px; /* Espacio entre secciones */
    margin-bottom: 20px; /* Espaciado inferior */
}

.footer-section {
    flex: 1;
    min-width: 250px; /* Ancho mínimo para mantener la estructura */
    text-align: center;
}

.footer-section h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin: 8px 0;
    font-size: 1em;
    display: flex;
    align-items: center; /* Centrar verticalmente los íconos y el texto */
    justify-content: center; /* Centrar horizontalmente */
}

.footer-section ul li img {
    margin-right: 8px; /* Espaciado entre el ícono y el texto */
}

.social-media {
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espaciado entre los íconos */
}

.social-icons img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1); /* Zoom al pasar el mouse */
}

/* Footer para derechos reservados */
.footer-copyright {
    color: white;
    font-size: 0.9em;
    padding: 10px;
    text-align: center;
}

