.footer {
    background: var(--verde);
    color: rgb(0, 0, 0);
    padding: 2rem 0 1rem;
    border-top: 4px solid var(--verde);
    font-family: var(--font-principal);
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

/* Logo imagen */
.footer-logo img {
    height: 60px;
    width: 200px;
    display: block;
    max-width: 300px;
    object-fit: contain;
    padding: 5px 10px;
    border-radius: 8px;
}

/* Información en línea */
.footer-info {
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.95rem;
}

.info-item i {
    color: #ffffff;
    width: 18px;
    font-size: 1rem;
}

.info-item a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.2s;
}

.info-item a:hover {
    color: var(--azul);
    text-decoration: underline;
}

/* Redes sociales */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #ffffff;
    font-size: 1.4rem;
    transition: 0.2s;
}

.social-links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Botón de privacidad */
.privacidad-btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid var(--verde-claro);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
}

.privacidad-btn:hover {
    background: var(--verde-claro);
    color: var(--gris);
    border-color: var(--verde);
}

/* Botón Aceptar del modal */
.btn-aceptar {
    background: var(--verde);
    color: var(--gris);
    border: none;
    padding: 0.8rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid var(--verde-claro);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-aceptar:hover {
    background: var(--verde-claro);
    color: var(--azul);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Línea inferior */
.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(208, 218, 137, 0.2);
    color: #ffffff;
    font-size: 0.85rem;
}

.footer-bottom .privacidad-btn {
    margin-left: 1rem;
}

/* ===== VENTANA EMERGENTE ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--verde-claro);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: var(--azul);
    color: white;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--verde);
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s;
}

.modal-close:hover {
    background: var(--verde);
    color: var(--gris);
}

.modal-body {
    overflow-y: auto;
    background: var(--blanco);
    max-height: 60vh;
    padding: 1.5rem;
}

.modal-body h4 {
    color: var(--azul);
    font-size: 1.1rem;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    color: var(--gris);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.modal-body ul {
    margin-left: 1.5rem;
    color: var(--gris);
    line-height: 1.6;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        align-items: center;
    }

    .info-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-logo img {
        margin: 0 auto;
    }

    /* CORRECCIÓN: Centrar botón de privacidad en móvil */
    .footer-bottom {
        text-align: center;
        padding-top: 1rem;
    }
    
    .footer-bottom p {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
        margin: 0;
    }
    
    .footer-bottom .privacidad-btn {
        margin-left: 0;
        margin-top: 0;
        display: inline-flex;
        justify-content: center;
        width: auto;
        min-width: 180px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .footer-bottom .privacidad-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* ===== ESTILOS PARA EL SUBMENÚ DE SERVICIOS ===== */

/* Estilo base para el dropdown */
.navbar .dropdown {
    position: relative;
}

.navbar .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar .dropdown-toggle i.fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* ===== PC: HOVER ===== */
@media (min-width: 769px) {
    .navbar .dropdown .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--azul);
        min-width: 280px;
        border-radius: 15px;
        padding: 0.8rem 0;
        margin: 0.5rem 0 0;
        list-style: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        border: 2px solid var(--verde-claro);
        z-index: 1000;
        text-align: left;
    }
    
    .navbar .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .navbar .dropdown:hover .dropdown-toggle i.fa-chevron-down {
        transform: rotate(180deg);
    }
    
    .navbar .dropdown-menu li {
        width: 100%;
        text-align: left;
    }
    
    .navbar .dropdown-menu li a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0.8rem 1.5rem;
        color: white;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        white-space: nowrap;
        text-align: left;
    }
    
    .navbar .dropdown-menu li a:hover {
        background: var(--verde);
        color: var(--gris);
        padding-left: 2rem;
    }
}

/* ===== MÓVIL: CLICK ===== */
@media (max-width: 768px) {
    /* Estilo para el contenedor del dropdown */
    .navbar .dropdown {
        width: 100%;
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Botón Servicios - arriba, centrado */
    .navbar .dropdown-toggle {
        justify-content: center;
        width: 100%;
        padding: 0.8rem 1rem;
        gap: 8px;
    }
    
    .navbar .dropdown-toggle i.fa-chevron-down {
        font-size: 0.7rem;
        margin-left: 6px;
    }
    
    /* Submenú - aparece DEBAJO del botón Servicios */
    .navbar .dropdown-menu {
        position: static;
        max-width: 400px;
        width: 100%;
        display: none;
        background: rgba(9, 83, 116, 0.95);
        margin: 0;
        padding: 0.5rem 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--verde-claro);
        border-bottom: 1px solid var(--verde-claro);
        border-radius: 0;
        list-style: none;
        text-align: left;
    }
    
    /* Mostrar el menú cuando tiene la clase active */
    .navbar .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .navbar .dropdown.active .dropdown-toggle i.fa-chevron-down {
        transform: rotate(180deg);
    }
    
    /* Estilo de cada opción del submenú */
    .navbar .dropdown-menu li {
        width: 100%;
    }
    
    .navbar .dropdown-menu li a {
        display: block;
        padding: 1.2rem 1rem;
        color: white;
        text-decoration: none;
        font-size: 0.85rem;
        transition: all 0.2s ease;
        text-align: left;
        padding-left: 1.5rem;
    }
    
    .navbar .dropdown-menu li a:hover {
        background: var(--verde);
        color: var(--gris);
        padding-left: 2rem;
    }
}

/* ===== CENTRADO DE TODOS LOS ITEMS DEL MENÚ ===== */
.menu li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Móvil: asegurar centrado */
@media (max-width: 768px) {
    .menu li {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .menu li a {
        width: 100%;
        justify-content: center;
    }
}

/* ===== ESTILOS ADICIONALES PARA OPCIONES DEL SUBMENÚ EN MÓVIL ===== */
@media (max-width: 768px) {
    /* Opciones más elegantes */
    .navbar .dropdown-menu li a {
        font-weight: 500;
        padding: 0.8rem 1.2rem 0.8rem 1.8rem;
        border-radius: 8px;
        margin: 3px 8px;
        transition: all 0.25s ease;
        background: rgba(255, 255, 255, 0.05);
        border-bottom: none;
        text-align: left;
    }
    
    .navbar .dropdown-menu li a:hover {
        background: var(--azul);
        color: var(--blanco);
        padding-left: 2rem;
        transform: translateX(5px);
    }
    
    /* Fondo del submenú más suave */
    .navbar .dropdown-menu {
        background: var(--verde);
        border-radius: 12px;
        margin: 5px 0;
        padding: 0.3rem 1rem;
        border: 1px solid var(--azul);
        text-align: left;
    }
    
    /* Iconos decorativos a la izquierda */
    .navbar .dropdown-menu li a::before {
        content: "▹";
        position: absolute;
        left: 0.5rem;
        opacity: 0;
        transition: all 0.3s ease;
        color: var(--verde);
    }
    
    /* Mostrar icono al hacer hover */
    .navbar .dropdown-menu li a:hover::before {
        opacity: 1;
        left: 0.8rem;
    }
    
    /* Quitar borde al último elemento */
    .navbar .dropdown-menu li:last-child a {
        border-bottom: none;
        margin-bottom: 0;
    }
}

/* ===== CORRECCIÓN: MENÚ HAMBURGUESA SOBRE EL CARRITO ===== */
/* ✅ Solo se agregó esta sección al final - no se modificó nada más */

/* Asegurar que el navbar sea el contenedor de referencia */
.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000 !important;
}

/* Estilos para el menú desplegado en móvil - asegurar que esté sobre el carrito */
@media (max-width: 768px) {
    .menu {
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--verde);
        z-index: 1002 !important;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    }
    
    .menu.show {
        display: flex !important;
        animation: slideDownMenu 0.3s ease;
    }
    
    /* Animación suave al desplegar */
    @keyframes slideDownMenu {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}