
/* Añadir marca de agua como fondo */
body {
    position: relative;
    background-color: white;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../images/logo-icon/fuap.png'); /* Reemplazar con la URL de tu logo */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 40%;
    opacity: 0.2; /* Ajusta la opacidad según necesites */
    pointer-events: none; /* Permite hacer clic en elementos debajo */
}


.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 30%;
    opacity: 0.9; /* Ajusta la opacidad según necesites */
    pointer-events: none;
}

.container {
    width: 100%;
    margin: 0 auto;
    background-color: white;
    position: relative; /* Agregado para posicionamiento relativo */
}
header {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}
.logo img {
    height: 160px;
    transition: transform 0.3s ease;
}
.logo img:hover {
    transform: scale(1.05);
}
.search-bar {
    width: 40%;
    position: relative;
}
.search-bar input {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    border: 2px solid #006cb2;
    outline: none;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.search-bar input:focus {
    box-shadow: 0 0 8px rgba(0, 102, 164, 0.4);
    border-color: #004c7a;
}
.nav-container {
    width: 60%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 100; /* Asegura que el menú esté por encima del slider */
}
nav {
    background-color: #0066a4;
    border-radius: 10px;
    padding: 0 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative; /* Agregado para posicionamiento */
    margin-bottom: 20px; /* Hace que el menú se superponga al slider */
}
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}
nav ul li {
    margin: 0 20px;
    position: relative;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 15px 0;
    display: block;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}
nav ul li a:hover {
    color: #cce5ff;
    transform: translateY(-2px);
}
.dropdown-toggle::after {
    content: '▼';
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}
nav ul li:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}
.dropdown-menu {
    display: block;
    position: absolute;
    background-color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    z-index: 100;
    left: 50%;
    top: 100%;
    padding: 10px 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 15px);
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    border-top: 3px solid #0066a4;
}
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent #0066a4 transparent;
}
.dropdown-menu li {
    margin: 0;
    width: 100%;
    padding: 0 5px;
}
.dropdown-menu li a {
    color: #333;
    padding: 12px 15px;
    font-weight: 500;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    display: block;
    margin: 2px 0;
}
.dropdown-menu li a:hover {
    background-color: #f0f7ff;
    color: #0066a4;
    padding-left: 20px;
}
nav ul li:hover .dropdown-menu {
    opacity: 1;
    transform: translate(-50%, 5px);
    visibility: visible;
}
.main-content {
    position: relative;
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    transition: margin-top 0.5s ease-in-out;
}

/* Estilos modificados para el slider para superponer con el menú */
.slider-container {
    width: 94%;
    max-width: 1200px;
    margin: 0 auto; /* Cambiado para eliminar margen superior */
    border: 3px solid #b0c4ca;
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
    position: relative;
    z-index: 50; /* Reducido para estar siempre por debajo del menú */
    transition: margin-top 0.5s ease-in-out;
}
.slider {
    position: relative; 
    height: 100%;
    width: 100%;
    overflow: hidden;
}
.slider-content {
    display: flex;
    height: 100%;
    width: 300%; /* Ancho total basado en número de slides (100% * 3) */
    transition: transform 0.5s ease;
    position: relative;
}
.slide {
    width: 33.333%; /* 100% dividido por el número de slides */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}
/* Estilo específico para la primera imagen */
.slide:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Estilo para la segunda y tercera imagen */
.slide:nth-child(2) img, .slide:nth-child(3) img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Para adaptarse al contenedor */
    padding: 10px; /* Espacio para no tocar los bordes */
}
.slide-button {
    position: absolute;
    bottom: 30px;
    background-color: #0066a4;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
.slide-button:hover {
    background-color: #004c7a;
    transform: scale(1.05);
}
/* Flechas triangulares mejoradas */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    cursor: pointer;
    z-index: 60; /* Por encima del slider pero por debajo del menú */
    transition: opacity 0.3s ease;
}
.arrow:hover {
    opacity: 0.8;
}
.arrow-left {
    left: 15px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 20px solid rgba(0, 102, 164, 0.8);
}
.arrow-right {
    right: 15px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid rgba(0, 102, 164, 0.8);
}

/* Estilos para el menú hamburguesa en móvil */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 210; /* Aumentado para asegurar que esté por encima */
}
.hamburger span {
    height: 3px;
    width: 100%;
    background-color: #0066a4;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Animación del botón hamburguesa cuando está activo */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mejoras para el menú móvil */
.mobile-nav {
    display: none;
}

/* Estilos responsivos */
@media (min-width: 769px) {
    .logo img {
        height: 120px !important; /* Using !important to override any conflicting styles */
    max-height: none !important; /* Remove any max-height constraints */
    width: auto; /* Maintain aspect ratio */
    transition: transform 0.3s ease;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-container {
        width: 100%;
        position: relative;
        z-index: 250;
        margin-bottom: 0; /* Eliminar margen negativo */
    }
    
    nav {
        border-radius: 0;
        padding: 0;
        margin-bottom: 0; /* Eliminamos el margin negativo para que no se superponga */
    }
    
    nav ul {
        flex-direction: column;
        opacity: 1; /* Cambiado de 0 a 1 para asegurar visibilidad */
        padding: 0;
        margin: 0;
    }
    
    nav ul.active {
        max-height: 1000px; /* Aumentado para asegurar que quepa todo el contenido */
        opacity: 1;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
        opacity: 1; /* Mantener visible siempre */
    }
    
    nav ul.active li {
        transform: translateY(0);
        opacity: 1;
        transition-delay: 0.1s;
    }
    
    nav ul.active li:nth-child(2) {
        transition-delay: 0.15s;
    }
    
    nav ul.active li:nth-child(3) {
        transition-delay: 0.2s;
    }
    
    nav ul.active li:nth-child(4) {
        transition-delay: 0.25s;
    }
    
    nav ul.active li:nth-child(5) {
        transition-delay: 0.3s;
    }
    
    nav ul li a {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
    }
    
    /* Correcciones para el menú desplegable de categorías en móvil */
    .dropdown-menu {
        position: static;
        transform: none !important; /* Forzar sin transformación */
        box-shadow: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        display: block;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease-in-out;
        border-top: none;
        padding: 0;
        margin: 0;
        border-radius: 0;
        background-color: #00558a;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown-menu.active {
        max-height: 500px; /* Altura suficiente para mostrar todo el contenido */
        padding: 5px 0;
    }
    
    .dropdown-menu li {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .dropdown-menu li a {
        color: white;
        padding: 12px 30px;
        text-align: left;
        background-color: rgba(0, 0, 0, 0.1);
    }
    
    .dropdown-menu li a:hover {
        background-color: rgba(0, 0, 0, 0.2);
        color: #cce5ff;
    }
    
    .dropdown-toggle.active::after {
        content: '-' !important;
    }

    /* Indicador visual para submenús */
    nav ul li .dropdown-toggle::after {
        content: '+';
        font-size: 18px;
        margin-left: 5px;
        transition: transform 0.3s ease;
    }
    
    nav ul li .dropdown-toggle.active::after {
        content: '-';
        transform: none;
    }
    
    /* Cuando el menú está activo, empujamos el contenido hacia abajo */
    #main-menu.active ~ .main-content,
    #main-menu.active ~ .slider-container {
        margin-top: 15px;
    }
    
    .main-content, .slider-container {
        transition: margin-top 0.5s ease-in-out;
    }

    #main-menu {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        background-color: #0066a4;
        z-index: 300;
    }

    .search-bar {
        width: 60%;
    }
    
    .slider-container {
        width: 92%;
        height: 300px;
        z-index: 40;
    }
    
    .slide-button {
        bottom: 15px;
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .arrow-left {
        left: 10px;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        border-right: 16px solid rgba(0, 102, 164, 0.8);
    }
    
    .arrow-right {
        right: 10px;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        border-left: 16px solid rgba(0, 102, 164, 0.8);
    }
    
    /* Nuevo estilo para cuando está desplegado el menú */
    #main-menu.active {
        max-height: 2000px; /* Valor alto para asegurar que el menú se expanda completamente */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 480px) {
    .slider-container {
        width: 90%;
        height: 200px;
    }
    
    header {
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
        width: 70%;
    }
    
    .hamburger {
        order: 2;
        width: 20%;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    /* Ajustes del slider y contenido en pantallas pequeñas */
    #main-menu.active ~ .main-content,
    #main-menu.active ~ .slider-container {
        margin-top: 20px;
    }
}

.bloque-category{
    background-color: #ffffff;
    padding-top: 60px;
}

.categories {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 30px;
    gap: 15px;
}

.category-box {
    width: calc(53% - 70px);
    background-color: #ffffff;
    border: 3px solid #b0c4ca;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 102, 164, 0.2);
}

.category-title {
    color: #0066a4;
    font-weight: bold;
    text-align: left;
    margin-bottom: 10px;
    font-size: 18px;
    word-wrap: break-word;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.category-box:hover .category-title {
    color: #004c7a;
}

.category-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-box:hover .category-image {
    transform: scale(1.05);
}

.category-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-left: 20px;
    min-width: 0;
}

.view-more {
    color: #0066a4;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-top: 10px;
    font-size: 16px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.view-more::after {
    content: ">";
    margin-left: 5px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.view-more:hover {
    color: #004c7a;
    transform: translateX(5px);
}

.view-more:hover::after {
    transform: translateX(3px);
}

@media (max-width:1500px) {
    .bloque-category{
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Responsive design */
@media (max-width: 1200px) {
    .bloque-category{
        padding-left: 15px;
        padding-right: 15px;
    }

    .category-box {
        width: calc(50% - 10px);
        margin-bottom: 15px;
    }
    
    .categories {
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .bloque-category{
        padding-left: 5px;
        padding-right: 5px;
    }

    .category-box {
        width: 100%;
    }
    
    .category-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .bloque-category{
        padding-left: 5px;
        padding-right: 5px;
    }

    .category-box {
        flex-direction: column;
        text-align: center;
    }
    
    .category-image {
        margin-bottom: 15px;
        width: 150px;
        height: 150px;
    }
    
    .category-content {
        padding-left: 0;
        align-items: center;
    }
    
    .category-title {
        text-align: center;
    }
}

.nosotros {
    padding: 60px 10%;
    background-color: white;
    text-align: center;
}

.nosotros h2 {
    color: #116cb2;
    margin-bottom: 30px;
    font-size: 68px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    transition: transform 0.3s ease;
}

.nosotros h2:hover {
    transform: scale(1.03);
}

.nosotros h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.nosotros h2:hover:after {
    width: 100px;
}

.nosotros p {
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 20px;
    color: #b0c4ca;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    transition: color 0.3s ease;
}

.nosotros p:hover {
    
    color: #116cb2;
}

.vision-mision {
    display: flex;
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    font-size: 20px;
}

.accordion {
    flex: 1;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.accordion:hover {
    box-shadow: 0 5px 15px rgba(0, 102, 164, 0.15);
}

.accordion-header {
    padding: 20px;
    background-color: #116cb2;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #45b0e2;
}

.accordion-header h3 {
    margin: 0;
    font-size: 28px;
    transition: transform 0.3s ease;
}

.accordion-header:hover h3 {
    transform: translateX(5px);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease; /* Aumentado el tiempo para una transición más suave */
}

.accordion-content p {
    padding: 20px;
    margin: 0;
    text-align: left;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transition-delay: 0.1s;
}

.active .accordion-icon {
    transform: rotate(180deg);
}

.active + .accordion-content {
    max-height: 300px; /* Aumentado para asegurar que cabe todo el contenido */
}

.active + .accordion-content p {
    transform: translateY(0);
    opacity: 1;
}

/* Estilos base para el footer */
.footer-wrapper {
    background-color: #f0f0f0;
    width: 100%;
    padding: 20px 0;
}

footer {
    display: flex;
    justify-content: space-between;
    background-color: #f0f0f0;
    padding: 20px 5%;
    width: 90%;
    margin: 0 auto;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
}

.footer-column {
    width: 30%;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px; /* Añade espacio entre columnas cuando se apilan */
}

.footer-logo {
    width: 100%;
    max-width: 280px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-section {
    border-left: 2px solid #0066a4;
    padding-left: 20px;
}

.footer-title {
    color: #0066a4;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #0066a4;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #004c7a;
    transform: translateX(5px);
}

.contact-info {
    margin-bottom: 8px;
    transition: transform 0.3s ease;
    color: #004c7a;
}

.contact-info:hover {
    transform: translateX(5px);
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.whatsapp-button img {
    width: 35px;
    height: 35px;
}

/* Media queries para responsive */

/* Tablets */
@media screen and (max-width: 992px) {
    footer {
        padding: 15px 4%;
        width: 92%;
    }
    
    .footer-column {
        width: 48%; /* Cambia a 2 columnas en tablets */
    }
    
    /* La tercera columna ocupa todo el ancho en la siguiente fila */
    .footer-column:last-child {
        width: 100%;
        margin-top: 20px;
    }
}

/* Móviles */
@media screen and (max-width: 768px) {
    footer {
        flex-direction: column;
        padding: 15px 5%;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 25px;
        align-items: center;
    }
    
    .footer-section {
        border-left: none;
        border-top: 2px solid #0066a4;
        padding-left: 0;
        padding-top: 15px;
        width: 100%;
        text-align: center;
    }
    
    .footer-logo {
        max-width: 220px;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-button img {
        width: 30px;
        height: 30px;
    }
}

/* Móviles pequeños */
@media screen and (max-width: 480px) {
    .footer-logo {
        max-width: 180px;
    }
    
    .footer-title {
        font-size: 14px;
    }
    
    .footer-links li,
    .contact-info {
        font-size: 13px;
        margin-bottom: 6px;
    }
}