/* =====================================================
   CSS VARIABLES & FOOTER BASE STYLES
   ===================================================== */
:root {
    --footer-padding: 80px;
    --footer-padding-tablet: 60px;
    --footer-padding-mobile: 50px;
    --footer-container-padding: 20px;
    --footer-container-padding-tablet: 25px;
    --footer-container-padding-mobile: 15px;
    --footer-grid-gap: 50px;
    --footer-grid-gap-tablet: 40px;
    --footer-grid-gap-mobile: 30px;
    --footer-bottom-padding: 30px;
    --footer-bottom-padding-tablet: 25px;
    --footer-bottom-padding-mobile: 20px;
}

/* =====================================================
   FOOTER MAIN STYLES
   ===================================================== */
.footer {
    background-color: #2c2c2c;
    color: white;
    padding: var(--footer-padding) 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--footer-container-padding);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--footer-grid-gap);
    margin-bottom: var(--footer-grid-gap);
}

/* =====================================================
   FOOTER SECTION STYLES
   ===================================================== */
.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
}

.footer-section:hover h3,
.footer-section:hover h4 {
    color: #e91e63;
}

.footer-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 25px;
    transition: color 0.3s ease;
}

.footer-section:hover .footer-description {
    color: #ddd;
}

/* =====================================================
   FOOTER LINKS STYLES
   ===================================================== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-links a::before {
    content: "→";
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
}

/* =====================================================
   CONTACT INFO STYLES
   ===================================================== */
.contact-info p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-info:hover p {
    color: #ddd;
}

/* =====================================================
   SOCIAL LINKS STYLES - MEJORADOS COMO LA IMAGEN
   ===================================================== */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.social-link {
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1.5px solid #e91e63;
    border-radius: 20px;
    background-color: transparent;
    display: inline-block;
    text-align: center;
    min-width: 85px;
    position: relative;
    overflow: hidden;
}

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

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

.social-link:hover {
    color: white;
    border-color: #e91e63;
    background-color: rgba(233, 30, 99, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.2);
}

.social-link:active {
    transform: translateY(0);
}

/* =====================================================
   FOOTER BOTTOM STYLES
   ===================================================== */
.footer-bottom {
    border-top: 1px solid #444;
    padding: var(--footer-bottom-padding) 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-legal a:hover {
    color: white;
}

.footer-legal a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease;
}

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

/* =====================================================
   RESPONSIVE DESIGN - LARGE DESKTOP (min-width: 1400px)
   ===================================================== */
@media (min-width: 1400px) {
    .footer-container {
        max-width: 1400px;
        padding: 0 40px;
    }

    .footer {
        padding: 100px 0 0;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 60px;
        margin-bottom: 60px;
    }

    .footer-section h3 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .footer-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

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

    .footer-links a {
        font-size: 0.95rem;
    }

    .contact-info p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .social-links {
        gap: 15px;
        margin-top: 30px;
    }

    .social-link {
        font-size: 0.9rem;
        padding: 10px 18px;
        min-width: 95px;
        border-radius: 22px;
    }

    .footer-bottom {
        padding: 40px 0;
    }

    .footer-bottom-content {
        font-size: 1rem;
    }

    .footer-legal {
        gap: 30px;
    }
}

/* =====================================================
   RESPONSIVE DESIGN - TABLETS (769px - 1023px)
   ===================================================== */
@media (min-width: 769px) and (max-width: 1023px) {
    :root {
        --footer-padding: var(--footer-padding-tablet);
        --footer-container-padding: var(--footer-container-padding-tablet);
        --footer-grid-gap: var(--footer-grid-gap-tablet);
        --footer-bottom-padding: var(--footer-bottom-padding-tablet);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--footer-grid-gap-tablet);
        margin-bottom: var(--footer-grid-gap-tablet);
    }

    .footer-section h3 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .footer-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

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

    .footer-links a {
        font-size: 0.85rem;
    }

    .contact-info p {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }

    .social-links {
        gap: 10px;
        margin-top: 20px;
    }

    .social-link {
        font-size: 0.8rem;
        padding: 7px 14px;
        min-width: 75px;
    }

    .footer-bottom-content {
        font-size: 0.85rem;
    }

    .footer-legal {
        gap: 20px;
    }
}

/* =====================================================
   RESPONSIVE DESIGN - MOBILE (max-width: 768px)
   ===================================================== */
@media (max-width: 768px) {
    :root {
        --footer-padding: var(--footer-padding-mobile);
        --footer-container-padding: var(--footer-container-padding-mobile);
        --footer-grid-gap: var(--footer-grid-gap-mobile);
        --footer-bottom-padding: var(--footer-bottom-padding-mobile);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--footer-grid-gap-mobile);
        margin-bottom: var(--footer-grid-gap-mobile);
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }

    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }

    .footer-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

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

    .footer-links a {
        font-size: 0.9rem;
    }

    /* Disable hover effects on mobile for links */
    .footer-links li:hover {
        transform: none;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .footer-links a::before {
        display: none;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .social-links {
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    .social-link {
        font-size: 0.8rem;
        padding: 7px 14px;
        min-width: 70px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        font-size: 0.8rem;
    }

    .footer-legal {
        justify-content: center;
        gap: 20px;
    }
}

/* =====================================================
   RESPONSIVE DESIGN - SMALL MOBILE (max-width: 480px)
   ===================================================== */
@media (max-width: 480px) {
    .footer-container {
        padding: 0 15px;
    }

    .footer {
        padding: 40px 0 0;
    }

    .footer-content {
        gap: 25px;
        margin-bottom: 25px;
    }

    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .footer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .footer-description {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }

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

    .footer-links a {
        font-size: 0.85rem;
    }

    .contact-info p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .social-links {
        gap: 8px;
        margin-top: 18px;
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        font-size: 0.75rem;
        padding: 6px 12px;
        min-width: 65px;
        width: 120px;
        max-width: 150px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-bottom-content {
        gap: 15px;
        font-size: 0.75rem;
    }

    .footer-legal {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    .footer-legal a {
        font-size: 0.75rem;
    }
}

/* =====================================================
   RESPONSIVE DESIGN - EXTRA SMALL MOBILE (max-width: 360px)
   ===================================================== */
@media (max-width: 360px) {
    .footer-container {
        padding: 0 12px;
    }

    .footer {
        padding: 35px 0 0;
    }

    .footer-content {
        gap: 20px;
        margin-bottom: 20px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .footer-section h4 {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .footer-description {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

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

    .footer-links a {
        font-size: 0.8rem;
    }

    .contact-info p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .social-links {
        gap: 6px;
        margin-top: 15px;
    }

    .social-link {
        font-size: 0.7rem;
        padding: 6px 10px;
        width: 110px;
    }

    .footer-bottom {
        padding: 18px 0;
    }

    .footer-bottom-content {
        gap: 12px;
        font-size: 0.7rem;
    }

    .footer-legal a {
        font-size: 0.7rem;
    }
}

/* =====================================================
   ACCESSIBILITY & PERFORMANCE OPTIMIZATIONS
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    .footer-section h3,
    .footer-section h4,
    .footer-description,
    .footer-links li,
    .footer-links a,
    .contact-info p,
    .social-link,
    .footer-legal a {
        transition: none;
    }

    .footer-links li:hover {
        transform: none;
    }

    .social-link:hover {
        transform: none;
    }

    .social-link::before {
        display: none;
    }
}

/* Focus states for accessibility */
.footer-links a:focus,
.social-link:focus,
.footer-legal a:focus {
    outline: 2px solid #e91e63;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .footer {
        background-color: #000;
        border-top: 3px solid #fff;
    }

    .footer-section h3,
    .footer-section h4 {
        color: #fff;
    }

    .footer-description,
    .footer-links a,
    .contact-info p,
    .social-link,
    .footer-legal a {
        color: #ccc;
    }

    .social-link {
        border-color: #fff;
    }

    .footer-bottom {
        border-top: 2px solid #fff;
    }
}

/* Performance optimizations */
.footer-section,
.footer-links li,
.social-link {
    will-change: transform;
}

.footer-links a,
.social-link,
.footer-legal a {
    will-change: color, background-color;
}

/* Print styles */
@media print {
    .footer {
        background-color: transparent !important;
        color: #000 !important;
        padding: 20px 0 !important;
    }

    .footer-section h3,
    .footer-section h4,
    .footer-description,
    .footer-links a,
    .contact-info p {
        color: #000 !important;
    }

    .social-links {
        display: none;
    }

    .footer-bottom {
        border-top: 1px solid #000;
    }
}

/* Touch-friendly interaction areas for mobile */
@media (hover: none) and (pointer: coarse) {
    .footer-links a,
    .social-link,
    .footer-legal a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Dark mode compatibility (if implemented) */
@media (prefers-color-scheme: dark) {
    .footer {
        background-color: #1a1a1a;
    }

    .footer-bottom {
        border-top-color: #333;
    }
}