/* 
 * Original Footer Design for Quickie - Restored
 * Keeping the exact same colors and layout as before
 */

:root {
    /* Original colors maintained exactly */
    --footer-bg: #f8f9fa;
    --footer-text: #666;
    --footer-title: #333;
    --footer-border: #e9ecef;
    --footer-link: #555;
    --footer-link-hover: #00A7E1;
    --mobile-nav-bg: white;
    --mobile-nav-active: #00A7E1;
    --mobile-nav-inactive: #aaa;
    --badge-bg: #ff3b30;
    --badge-text: white;
    --social-facebook: #1877F2;
    --social-instagram: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    --social-youtube: #FF0000;
    --social-twitter: #1DA1F2;
}

/* Base de la página para asegurar footer al fondo */
html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1 0 auto;
    min-height: calc(100vh - 200px);
}

/* Mobile navigation - Now fully handled by mobile-layout.css */
/* All .mobile-nav styles moved to mobile-layout.css to prevent conflicts */

/* Mobile navigation spacing */
.mobile-nav-spacer {
    /* Height calculated by mobile-layout.css */
}

/* Simple footer para las páginas que no son el index */
.simple-footer {
    background-color: var(--footer-bg);
    padding: 15px 20px;
    margin-top: 20px;
    border-top: 1px solid var(--footer-border);
    text-align: center;
    flex-shrink: 0;
}

.simple-footer .copyright {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

/* Footer principal (solo para index.php) */
.main-footer {
    background-color: var(--footer-bg);
    padding: 30px 20px 20px;
    margin-top: 30px;
    border-top: 1px solid var(--footer-border);
    line-height: 1.5;
    color: var(--footer-text);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    text-align: center;
    margin-bottom: 25px;
}

.footer-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--footer-text);
    font-size: 0.9rem;
    margin: 0;
}

.footer-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.footer-section {
    margin-bottom: 5px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--footer-title);
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--mobile-nav-active);
    border-radius: 1px;
}

/* Contacto */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    margin-right: 10px;
    color: var(--mobile-nav-active);
}

.contact-text {
    flex: 1;
    line-height: 1.3;
}

/* Enlaces */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 2;
    column-gap: 15px;
}

.footer-links li {
    margin-bottom: 10px;
    break-inside: avoid;
}

.footer-links a {
    color: var(--footer-link);
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: var(--footer-link-hover);
    padding-left: 2px;
}

.footer-links a::before {
    content: '›';
    margin-right: 4px;
    color: var(--mobile-nav-active);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    position: absolute;
    left: -10px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(2px);
}

/* Redes sociales */
.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    will-change: transform;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.social-icon:active {
    transform: scale(0.95);
}

.social-icon.facebook {
    background-color: var(--social-facebook);
}

.social-icon.instagram {
    background: var(--social-instagram);
}

.social-icon.youtube {
    background-color: var(--social-youtube);
}

.social-icon.twitter {
    background-color: var(--social-twitter);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Métodos de pago */
.payment-section {
    text-align: center;
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px solid var(--footer-border);
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.payment-icon {
    height: 30px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
    filter: grayscale(15%);
    transition: filter 0.2s, transform 0.2s;
}

.payment-icon:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Copyright */
.copyright {
    text-align: center;
    margin-top: 25px;
    font-size: 0.85rem;
    color: #888;
}

.copyright p {
    margin: 3px 0;
}

.age-disclaimer {
    margin-top: 8px;
    font-style: italic;
    font-size: 0.8rem;
}

/* Responsive */
@media (min-width: 768px) {
    .footer-sections {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .section-title {
        font-size: 1.15rem;
    }
    
    .payment-icon {
        height: 35px;
        max-width: 70px;
    }
    
    .footer-links {
        column-count: 1;
    }
}

@media (min-width: 992px) {
    .mobile-nav {
        display: none;
    }
    
    .mobile-nav-spacer {
        display: none;
    }
    
    .main-footer {
        padding: 50px 20px 30px;
    }
    
    .footer-brand {
        text-align: left;
        display: flex;
        align-items: center;
        margin-bottom: 40px;
    }
    
    .footer-logo {
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .payment-section {
        text-align: left;
    }
    
    .payment-icons {
        justify-content: flex-start;
    }
    
    .copyright {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding-top: 20px;
        margin-top: 30px;
        border-top: 1px solid var(--footer-border);
    }
    
    .age-disclaimer {
        margin-top: 0;
    }
    
    .simple-footer {
        padding: 20px;
    }
}