/**
 * FOOTER ALEJANDROS PIZZA - ESTILOS ELEGANTES
 * Footer moderno que complementa el diseño de la homepage
 * Diseño cohesivo con tipografías y colores armónicos
 */

/* Variables CSS para el Footer */
:root {
    /* Colores más suaves y elegantes */
    --footer-bg-primary: #f8f9fa;
    --footer-bg-secondary: #ffffff;
    --footer-accent: #d32f2f;
    --footer-accent-light: #ff6659;
    --footer-gold: #ffc107;
    --footer-text-primary: #2c3e50;
    --footer-text-secondary: #6c757d;
    --footer-text-muted: #adb5bd;
    --footer-border: rgba(0, 0, 0, 0.08);
    --footer-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
    --footer-hover-transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* ====== FOOTER PRINCIPAL ====== */
.footer-modern {
    background: linear-gradient(135deg, var(--footer-bg-primary) 0%, var(--footer-bg-secondary) 100%) !important;
    color: var(--footer-text-primary) !important;
    padding: 1.5rem 0 0.8rem !important;
    margin-top: 2rem !important;
    position: relative;
    box-shadow: var(--footer-shadow);
    border-top: 3px solid var(--footer-accent);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(211,47,47,0.02)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,193,7,0.03)"/><circle cx="40" cy="80" r="1" fill="rgba(211,47,47,0.02)"/></svg>');
    opacity: 0.6;
    z-index: 1;
}

/* ====== CONTENIDO DEL FOOTER ====== */
.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0.5rem;   /* Reducido de 1rem a 0.5rem */
    position: relative;
    z-index: 2;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto; /* Más equilibrado */
    gap: 1rem;              /* Reducido de 2rem a 1rem */
    align-items: center;
    margin-bottom: 0.5rem;  /* Antes 1rem */
    padding-bottom: 0.5rem; /* Antes 1rem */
    border-bottom: 1px solid var(--footer-border);
}

/* ====== BRAND SECTION ====== */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Reducido de 1rem */
}

.footer-logo {
    height: 32px;   /* Antes 40px */
    width: auto;
    transition: var(--footer-hover-transition);
    filter: brightness(1.1);
}

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

.footer-tagline {
    font-style: italic;
    color: var(--footer-accent);
    margin: 0;
    font-size: 0.75rem;     /* Antes 0.85rem */
    font-weight: 500;
    letter-spacing: 0.3px;
    font-family: 'Poppins', sans-serif;
}


/* ====== CONTACT SECTION ====== */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-style: normal;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    padding: 0.2rem 0;
    transition: var(--footer-hover-transition);
    text-decoration: none;
    color: inherit;
}

.contact-item:hover {
    transform: translateX(3px);
    color: var(--footer-accent);
}

.contact-icon {
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

.contact-link {
    color: var(--footer-accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--footer-hover-transition);
}

.contact-link:hover {
    color: var(--footer-accent-light);
    text-decoration: none;
}

.contact-text {
    color: var(--footer-text-secondary);
    margin: 0;
}

/* ====== SOCIAL SECTION ====== */
.footer-social {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    align-items: center;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--footer-accent), var(--footer-accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--footer-hover-transition);
    box-shadow: 0 3px 8px rgba(211, 47, 47, 0.2);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
    text-decoration: none;
}

.social-btn.whatsapp:hover {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.social-btn.phone:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

/* ====== FOOTER BOTTOM ====== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;       /* Más compacto (antes 0.8rem) */
    color: var(--footer-text-muted);
    padding-top: 0.4rem;      /* Reducido (antes 0.8rem) */
}

.footer-bottom p {
    margin: 0;
    font-weight: 400;
    line-height: 1.2;         /* Más apretado */
}

.footer-links {
    display: flex;
    gap: 0.8rem;              /* Reducido (antes 1.5rem) */
}

.footer-link {
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: var(--footer-hover-transition);
    position: relative;
    font-weight: 500;
    font-size: 0.75rem;       /* Igual que el texto principal */
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -1px;             /* Subido (antes -2px) */
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-accent);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--footer-accent);
    text-decoration: none;
}

.footer-link:hover::after {
    width: 100%;
}


/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-social {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .footer-modern {
        padding: 1.2rem 0 0.6rem;
        margin-top: 1.5rem;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.2rem;
    }
    
    .footer-brand {
        justify-content: center;
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .footer-social {
        flex-direction: row;
        justify-content: center;
        margin-top: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    
    .contact-item:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .footer-brand {
        gap: 0.4rem;
    }
    
    .footer-logo {
        height: 35px;
    }
    
    .footer-tagline {
        font-size: 0.8rem;
    }
    
    .social-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.6rem;
    }
}

/* ====== MODO OSCURO (OPCIONAL) ====== */
@media (prefers-color-scheme: dark) {
    :root {
        --footer-bg-primary: #1a1a1a;
        --footer-bg-secondary: #2d2d30;
        --footer-text-primary: #ffffff;
        --footer-text-secondary: #cccccc;
        --footer-text-muted: #999999;
        --footer-border: rgba(255, 255, 255, 0.1);
        --footer-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    }
}

/* ====== ACCESIBILIDAD ====== */
@media (prefers-reduced-motion: reduce) {
    .footer-modern *,
    .footer-modern *::before,
    .footer-modern *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ====== PRINT STYLES ====== */
@media print {
    .footer-modern {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border-top: 1px solid #ccc !important;
    }
    
    .footer-modern::before {
        display: none !important;
    }
    
    .social-btn {
        display: none !important;
    }
}

/* ====== FOOTER PRINCIPAL ====== */
.footer-modern {
    background: linear-gradient(135deg, var(--footer-bg-primary) 0%, var(--footer-bg-secondary) 100%);
    color: var(--footer-text-primary);
    padding: 1.5rem 0 0.8rem;   /* Antes: 3rem 0 1.5rem */
    margin-top: auto;
    position: relative;
    box-shadow: var(--footer-shadow);
    overflow: hidden;
}

.footer-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px; /* Antes 3px */
    background: linear-gradient(90deg, var(--footer-accent-orange), var(--footer-accent-gold), var(--footer-accent-orange));
    animation: footerGlow 3s ease-in-out infinite;
}

/* ====== CONTENIDO DEL FOOTER ====== */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* Antes 1.5rem */
    position: relative;
    z-index: 2;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr; /* Más equilibrado */
    gap: 1.5rem;           /* Antes 3rem */
    align-items: center;
    margin-bottom: 1rem;   /* Antes 2.5rem */
    padding-bottom: 1rem;  /* Antes 2.5rem */
    border-bottom: 1px solid var(--footer-border); /* Antes 2px */
    position: relative;
}

.footer-main::after {
    content: '';
    position: absolute;
    bottom: -1px;   /* Antes -2px */
    left: 0;
    width: 40px;    /* Antes 60px */
    height: 1px;    /* Antes 2px */
    background: linear-gradient(90deg, var(--footer-accent-gold), var(--footer-accent-orange));
    border-radius: 1px;
}

/* ====== BRAND SECTION ====== */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;  /* Antes 1.5rem */
    position: relative;
}

.footer-logo {
    height: 40px; /* Antes 70px */
    width: auto;
    transition: var(--footer-hover-transition);
    filter: drop-shadow(0 3px 8px rgba(255, 193, 7, 0.25)); /* Más liviano */
}

.footer-logo:hover {
    transform: scale(1.03) rotate(1deg); /* Menos exagerado */
    filter: drop-shadow(0 5px 15px rgba(255, 193, 7, 0.4));
}

.footer-tagline {
    font-style: italic;
    color: var(--footer-accent-gold);
    margin: 0;
    font-size: 0.85rem;   /* Antes 1rem */
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
}

.footer-tagline::before {
    content: '✨';
    position: absolute;
    left: -18px; /* Antes -25px */
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem; /* más discreto */
    animation: sparkle 2s ease-in-out infinite;
}


/* ====== CONTACT SECTION ====== */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-radius: 8px;
    transition: var(--footer-hover-transition);
}

.contact-item:hover {
    background: rgba(255, 193, 7, 0.1);
    padding-left: 0.5rem;
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
    background: linear-gradient(45deg, var(--footer-accent-orange), var(--footer-accent-gold));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(255, 152, 0, 0.3));
}

.contact-link {
    color: var(--footer-accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--footer-hover-transition);
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--footer-accent-gold), var(--footer-accent-orange));
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: var(--footer-accent-orange);
    text-decoration: none;
    transform: translateY(-1px);
}

.contact-link:hover::after {
    width: 100%;
}

.contact-text {
    color: var(--footer-text-secondary);
    font-weight: 400;
}

/* ====== SOCIAL SECTION ====== */
.footer-social {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
}

.social-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--footer-accent-orange), var(--footer-accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.6rem;
    transition: var(--footer-hover-transition);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 152, 0, 0.6);
    text-decoration: none;
    animation: socialPulse 0.6s ease-in-out;
}

.social-btn.whatsapp:hover {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.social-btn.phone:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
}

/* ====== FOOTER BOTTOM ====== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--footer-text-muted);
    padding-top: 1.5rem;
    position: relative;
}

.footer-bottom p {
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: var(--footer-hover-transition);
    position: relative;
    padding: 0.3rem 0;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-accent-gold);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--footer-accent-gold);
    text-decoration: none;
    transform: translateY(-1px);
}

.footer-link:hover::after {
    width: 100%;
}

/* ====== ANIMACIONES ====== */
@keyframes footerGlow {
    0%, 100% {
        opacity: 0.8;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.02);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.2);
    }
}

@keyframes socialPulse {
    0% {
        box-shadow: 0 12px 35px rgba(255, 152, 0, 0.6);
    }
    50% {
        box-shadow: 0 15px 45px rgba(255, 152, 0, 0.8);
    }
    100% {
        box-shadow: 0 12px 35px rgba(255, 152, 0, 0.6);
    }
}

/* ====== EFECTOS ESPECIALES ====== */
.footer-modern .contact-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.footer-modern .contact-item:nth-child(even) {
    animation-delay: 0.2s;
}

/* Efecto de entrada suave */
.footer-modern {
    animation: footerFadeIn 0.8s ease-out;
}

@keyframes footerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-social {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .footer-modern {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-brand {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .contact-item:hover {
        transform: none;
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .footer-brand {
        gap: 0.8rem;
    }
    
    .footer-logo {
        height: 50px;
    }
    
    .footer-tagline {
        font-size: 0.9rem;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ====== MODO OSCURO ADICIONAL ====== */
@media (prefers-color-scheme: dark) {
    .footer-modern {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    }
    
    .footer-modern::before {
        opacity: 0.05;
    }
}

/* ====== ACCESIBILIDAD ====== */
@media (prefers-reduced-motion: reduce) {
    .footer-modern *,
    .footer-modern *::before,
    .footer-modern *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ====== PRINT STYLES ====== */
@media print {
    .footer-modern {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .footer-modern::before,
    .footer-modern::after {
        display: none !important;
    }
    
    .social-btn {
        display: none !important;
    }
}
