/* Modern Footer CSS - Matching Header Style */
/* La Cava Wine Restaurant - Footer Moderno */

:root {
    /* Variables para footer - usando las mismas del header */
    --wine-primary: #8b4513;
    --wine-secondary: #a0522d;
    --wine-accent: #daa520;
    --wine-dark: #654321;
    --wine-light: #d2b48c;
    --bg-dark: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-light: #f5f5f5;
    --text-muted: #b0b0b0;
    --border-elegant: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --sha    .mobile-nav-menu {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0 8px;
        height: 90px;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
        cursor: default;
        /* Mejorado: scrollbar sutil pero visible */
        scrollbar-width: thin;
        scrollbar-color: rgba(224, 180, 103, 0.6) transparent;
    }
    
    /* Scrollbar mejorado para mobile nav */
    .mobile-nav-menu::-webkit-scrollbar {
        height: 3px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav-menu::-webkit-scrollbar-thumb {
        background: rgba(224, 180, 103, 0.7);
        border-radius: 2px;
    }
    
    .mobile-nav-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(224, 180, 103, 0.9);
    }
    
    /* Scroll snap para mejor experiencia */
    .mobile-nav-menu li {
        scroll-snap-align: start;
    }

/* Sombra del footer */
.footer-shadow {
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.3);
}

/* Footer Principal */
.modern-footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--wine-dark) 50%, var(--bg-dark) 100%);
}

.submenu-mobile {
    bottom: 70px;
    min-width: 200px;
    max-width: 80vw;
    padding: 6px;
    }
    
    .submenu-mobile li a {
        padding: 10px 12px;
        font-size: 0.75rem;
    color: var(--text-light);
    padding: 0;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="wine-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(218,165,32,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23wine-pattern)"/></svg>');
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-elegant);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elegant);
    background: rgba(255, 255, 255, 0.15);
}

/* Footer Headings */
.footer-section h3 {
    color: var(--wine-accent);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--wine-accent), var(--wine-secondary));
    border-radius: 2px;
}

/* Brand Section */
.footer-brand {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wine-accent);
}

.footer-logo .wine-icon {
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.footer-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-tagline {
    font-style: italic;
    color: var(--wine-light);
    font-size: 1rem;
}

/* Contact Info */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.3rem;
    color: var(--wine-accent);
    min-width: 25px;
    text-align: center;
}

.contact-text {
    flex: 1;
}

.contact-text strong {
    color: var(--text-light);
    display: block;
    margin-bottom: 0.3rem;
}

.contact-text span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-text a {
    color: var(--wine-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--wine-accent);
}

/* Quick Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.footer-links a::before {
    content: '🍷';
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--wine-accent);
    transform: translateX(10px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Horarios */
.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-day {
    font-weight: 600;
    color: var(--text-light);
}

.schedule-time {
    color: var(--wine-light);
    font-size: 0.9rem;
}

.schedule-closed {
    color: var(--text-muted);
    font-style: italic;
}

/* Social Media */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--border-elegant);
    border-radius: 50%;
    color: var(--wine-accent);
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--wine-accent);
    color: var(--bg-dark);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 5px 20px rgba(218, 165, 32, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-elegant);
    padding: 2rem 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--wine-accent);
}

/* Wine Glass Animation */
/* .wine-decoration {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--wine-accent);
    opacity: 0.1;
    animation: wine-float 4s ease-in-out infinite;
} */

@keyframes wine-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% { 
        transform: translateY(-10px) rotate(5deg);
        opacity: 0.2;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-content {
        padding: 2rem 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-section {
        padding: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-logo .wine-icon {
        font-size: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-legal {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .wine-decoration {
        display: none;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .schedule-item {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        gap: 1.5rem;
    }
    
    .footer-section {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .footer-container {
        padding: 0 0.5rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .modern-footer {
        background: linear-gradient(135deg, #000 0%, var(--wine-dark) 50%, #000 100%);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .footer-section {
        border: 2px solid var(--wine-accent);
    }
    
    .footer-links a:hover {
        background: var(--wine-accent);
        color: var(--bg-dark);
        padding: 0.5rem;
        border-radius: 5px;
    }
}

/* Animation for page load */
.modern-footer {
    animation: footerSlideUp 0.8s ease-out;
}

@keyframes footerSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Intersection Observer Animation Classes */
.footer-section.animate-in {
    animation: sectionFadeIn 0.6s ease-out forwards;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
MENÚ DE NAVEGACIÓN MÓVIL (FOOTER)
   ======================================== */

/* Ocultar por defecto en desktop */
.mobile-footer-nav {
    display: none;
}

/* Mostrar solo en dispositivos móviles */
@media (max-width: 1250px) {
    .mobile-footer-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100vw;
        z-index: 1000;
        background: linear-gradient(180deg, #fff1d3 0%, #ffffff 100%);
        color: #000;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    
    .mobile-nav-menu {
        display: flex;
        flex-direction: row;
        justify-content: flex-start; /* Cambiar a flex-start para scroll */
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0 8px; /* Aumentar padding lateral */
        height: 85px; /* Aumentar altura para iconos más grandes */
        gap: 8px; /* Aumentar gap para mejor separación */
        overflow-x: scroll; /* Habilitar scroll horizontal */
        overflow-y: scroll;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE y Edge */
    }
    
    /* Ocultar scrollbar en Webkit browsers */
    .mobile-nav-menu::-webkit-scrollbar {
        display: none;
    }
    
    /* Efecto de scroll suave y momentum en iOS */
    .mobile-nav-menu {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Indicadores visuales de scroll */
    .mobile-footer-nav::before,
    .mobile-footer-nav::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 20px;
        pointer-events: none;
        z-index: 1002;
    }
    
    .mobile-footer-nav::before {
        left: 0;
        background: linear-gradient(to right, rgba(44, 62, 80, 0.8), transparent);
    }
    
    .mobile-footer-nav::after {
        right: 0;
        background: linear-gradient(to left, rgba(44, 62, 80, 0.8), transparent);
    }
    
    .mobile-nav-menu li {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px 8px;
        position: relative;
        min-width: 75px;
        max-width: none;
    }
    
    .mobile-nav-menu li a {
        color: #000000;
        text-decoration: none;
        font-size: 0.8rem; /* Aumentar tamaño de fuente */
        font-weight: 600;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px; /* Aumentar gap entre icono y texto */
        padding: 8px 6px; /* Aumentar padding */
        border-radius: 8px;
        transition: all 0.3s ease;
        width: 100%;
        min-width: 65px; /* Aumentar ancho mínimo */
        white-space: nowrap;
    }
    
    .mobile-nav-menu li a:hover,
    .mobile-nav-menu li a:focus {
        background: rgba(255, 255, 255, 0.8); /* Fondo blanco semi-transparente */
        color: #333333; /* Gris oscuro para hover */
        transform: translateY(-1px);
        outline: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .nav-icon {
        font-size: 35px; /* Aumentar de 18px a 35px */
        margin-bottom: 2px;
        line-height: 1;
        /* Degradado marrón oscuro a claro usando filtro */
        filter: sepia(1) hue-rotate(10deg) saturate(2.5) brightness(0.85) contrast(1.2);
    }
    
    .nav-text {
        font-size: 0.7rem; /* Aumentar de 0.65rem a 0.7rem */
        line-height: 1.1;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        max-width: none;
    }
    
    /* Submenú móvil */
    .submenu-mobile {
        display: none;
        position: fixed;
        bottom: 85px;
        left: 40%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
        min-width: 240px;
        max-width: 85vw;
        list-style: none;
        margin: 0;
        padding: 8px; /* Padding uniforme */
        z-index: 1001;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
        border: 1px solid rgba(0, 0, 0, 0.1);
        overflow: hidden; /* Prevenir desbordamiento */
    }
    
    .has-submenu-mobile.open .submenu-mobile {
        display: block;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
    
    .submenu-mobile li {
        width: 100%;
        flex: none;
        padding: 0;
        margin: 0;
        box-sizing: border-box; /* Asegurar que el padding se incluya en el ancho */
    }
    
    .submenu-mobile li a {
        color: #000000;
        padding: 12px 16px;
        font-size: 0.8rem;
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        border-radius: 6px;
        margin: 2px 0; /* Solo margen vertical */
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .submenu-mobile li a:hover {
        background: rgba(44, 62, 80, 0.1);
        color: #2c3e50;
        transform: none;
        border-radius: 6px;
    }
    
    /* Indicador de submenú */
    .has-submenu-mobile > a .nav-text::after {
        content: ' ▼';
        font-size: 0.5rem;
        margin-left: 2px;
        transition: transform 0.3s ease;
    }
    
    .has-submenu-mobile.open > a .nav-text::after {
        transform: rotate(180deg);
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 400px) {
    .mobile-footer-nav .mobile-nav-menu {
        height: 75px; /* Aumentar altura */
        gap: 4px; /* Aumentar gap */
        padding: 0 4px; /* Aumentar padding */
    }
    
    .mobile-nav-menu li {
        padding: 4px 3px; /* Aumentar padding */
        min-width: 60px; /* Ancho mínimo fijo */
        max-width: none; /* Quitar límite máximo */
    }
    
    .mobile-nav-menu li a {
        padding: 4px 2px; /* Aumentar padding */
        font-size: 0.65rem; /* Aumentar fuente */
        gap: 2px;
        min-width: 50px; /* Ancho mínimo */
    }
    
    .nav-icon {
        font-size: 35px; /* Aumentar icono */
        margin-bottom: 1px;
    }
    
    .nav-text {
        font-size: 0.55rem; /* Aumentar texto */
        max-width: none; /* Quitar límite */
        overflow: visible; /* Mostrar completo */
        text-overflow: clip;
    }
    
    .submenu-mobile {
        bottom: 70px; /* Ajustar según altura del menú */
        min-width: 220px; /* Aumentar ancho mínimo */
        max-width: 85vw;
        padding: 6px!important;
    }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 600px) and (min-width: 401px) {
    .mobile-footer-nav .mobile-nav-menu {
        height: 75px;
        gap: 1px;
    }
    
    .mobile-nav-menu li {
        padding: 6px 1px;
        max-width: 100%;
    }
    
    .mobile-nav-menu li a {
        font-size: 0.6rem;
        gap: 3px;
        padding: 3px 1px;
    }
    
    .nav-icon {
    font-size: 35px;
    }
    
    .nav-text {
        font-size: 0.55rem;
    }
    
    .submenu-mobile {
        bottom: 80px;
        min-width: 220px;
        max-width: 80vw;
        padding: 6px;
    }
    
    .submenu-mobile li a {
        padding: 10px 14px;
        font-size: 0.75rem;
    }
}

/* Responsive especial para pantallas extra pequeñas */
@media (max-width: 350px) {
    .mobile-footer-nav .mobile-nav-menu {
        height: 70px;
        gap: 3px;
        padding: 0 3px;
    }
    
    .mobile-nav-menu li {
        padding: 3px 2px;
        min-width: 55px;
    }
    
    .mobile-nav-menu li a {
        padding: 3px 1px;
        font-size: 0.6rem;
        gap: 1px;
        min-width: 45px;
    }
    
    .nav-icon {
        font-size: 35px;
        margin-bottom: 0;
    }
    
    .nav-text {
        font-size: 0.5rem;
        line-height: 0.9;
    }
    
    .submenu-mobile {
        bottom: 65px;
        min-width: 180px;
        max-width: 75vw;
        padding: 4px;
    }
    
    .submenu-mobile li a {
        padding: 8px 10px;
        font-size: 0.7rem;
    }
}

/* Para pantallas muy anchas en modo landscape móvil */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-footer-nav .mobile-nav-menu {
        height: 65px;
        gap: 4px;
    }
    
    .mobile-nav-menu li {
        padding: 4px 3px;
        min-width: 60px;
    }
    
    .mobile-nav-menu li a {
        font-size: 0.65rem;
        min-width: 50px;
    }
    
    .nav-icon {
    font-size: 35px;
    }
    
    .nav-text {
        font-size: 0.55rem;
    }
    
    .submenu-mobile {
        bottom: 60px;
        min-width: 200px;
        max-width: 65vw;
        padding: 4px;
    }
    
    .submenu-mobile li a {
        padding: 8px 12px;
        font-size: 0.7rem;
    }
}