/* ============================================
   FOOTER PREMIUM - ESTILOS PROFESIONALES
   ============================================ */

/* Variables del footer */
:root {
    --footer-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    --footer-text: #e0e0e0;
    --footer-text-muted: #a0a0a0;
    --footer-accent: #667eea;
    --footer-accent-secondary: #764ba2;
    --footer-border: rgba(255, 255, 255, 0.08);
    --footer-card-bg: rgba(255, 255, 255, 0.03);
}

/* Footer principal */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top: none;
    margin-top: 60px;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Patrón decorativo de fondo */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px 0;
    position: relative;
    z-index: 1;
}

/* ====== SECCIÓN DE NAVEGACIÓN PRINCIPAL ====== */
.footer-info {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--footer-border);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.footer-logo i {
    background: linear-gradient(135deg, var(--footer-accent) 0%, var(--footer-accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
}

.footer-description {
    color: var(--footer-text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 24px 0;
}

/* Redes sociales en marca */
.footer-brand-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-brand-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-social a:hover {
    background: var(--footer-accent);
    color: white;
    transform: translateY(-3px);
    border-color: var(--footer-accent);
}

/* Links del footer */
.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h5 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.footer-column h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, var(--footer-accent), var(--footer-accent-secondary));
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-column a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-column a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--footer-accent);
    transition: width 0.3s ease;
}

.footer-column a:hover::before {
    width: 12px;
}

/* ====== SECCIÓN DE IA ====== */
.footer-ai-highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: white;
    padding: 30px;
    margin: 0 -24px;
    border-radius: 0;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-left: none;
    border-right: none;
    backdrop-filter: blur(10px);
}

.ai-highlight-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 1232px;
    margin: 0 auto;
}

.ai-highlight-text h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-highlight-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.btn-ai-highlight {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--footer-accent), var(--footer-accent-secondary));
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    white-space: nowrap;
}

.btn-ai-highlight:hover {
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
    color: white;
}

/* ====== SECCIÓN INFERIOR ====== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid var(--footer-border);
}

.footer-bottom-left {
    flex: 1;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--footer-text-muted);
    font-size: 13px;
}

.footer-copyright i {
    color: var(--footer-accent);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Apps */
.footer-apps {
    display: flex;
    align-items: center;
    gap: 16px;
}

.apps-label {
    color: var(--footer-text-muted);
    font-size: 13px;
    font-weight: 500;
}

.app-stores {
    display: flex;
    gap: 10px;
}

.app-store-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--footer-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.app-store-link i {
    font-size: 18px;
    color: var(--footer-text);
}

.app-store-link:hover {
    background: var(--footer-accent);
    border-color: var(--footer-accent);
    color: white;
    transform: translateY(-2px);
}

.app-store-link:hover i {
    color: white;
}

/* Social */
.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--footer-accent);
    border-color: var(--footer-accent);
    color: white;
    transform: translateY(-2px);
}

/* ====== ESTILOS PARA SECCIONES DINÁMICAS ====== */
.footer-dynamic-aggregations,
.footer-categories-hierarchical,
.footer-locations-webs-integrated,
.footer-telegram {
    background: var(--footer-card-bg);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 30px;
    border: 1px solid var(--footer-border);
    backdrop-filter: blur(10px);
}

.footer-section-title {
    background: linear-gradient(135deg, var(--footer-accent) 0%, var(--footer-accent-secondary) 100%);
    color: white;
    margin: -28px -28px 24px -28px;
    padding: 18px 28px;
    border-radius: 16px 16px 0 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-section-title i {
    font-size: 18px;
    opacity: 0.9;
}

/* Grid de agregaciones */
.footer-aggregations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.footer-aggregation-group h4 {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-aggregation-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-aggregation-item {
    margin: 0;
}

.footer-aggregation-link {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.footer-aggregation-link:hover {
    background: var(--footer-accent);
    color: white;
    border-color: var(--footer-accent);
    transform: translateY(-2px);
}

/* Telegram */
.telegram-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0088cc, #00a8ff);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.telegram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
    color: white;
}

.telegram-link i {
    font-size: 18px;
}

/* ====== WEBS Y UBICACIONES INTEGRADAS ====== */
.integrated-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.integrated-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.integrated-subtitle i {
    color: var(--footer-accent);
}

.websites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.website-group {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.website-group-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.website-group-title i {
    color: var(--footer-accent);
}

.website-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.website-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.website-link:hover {
    background: var(--footer-accent);
    color: white;
    border-color: var(--footer-accent);
}

.flag-emoji {
    font-size: 14px;
}

/* Categorías jerárquicas */
.hierarchical-categories-footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-category-level {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.footer-level-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.footer-level-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.footer-level-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--footer-text);
}

.footer-level-icon {
    font-size: 11px;
    color: var(--footer-accent);
    transition: transform 0.3s ease;
}

.footer-level-text {
    flex: 1;
}

.footer-level-count {
    background: rgba(102, 126, 234, 0.2);
    color: var(--footer-accent);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.footer-level-content {
    padding: 16px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-subcategory-group {
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.footer-subcategory-parent {
    background: rgba(102, 126, 234, 0.1);
    color: var(--footer-accent);
    padding: 10px 14px;
    font-weight: 600;
    font-size: 13px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.footer-parent-link {
    color: var(--footer-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-parent-link:hover {
    color: white;
    text-decoration: none;
}

.footer-subcategory-children {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}

.footer-category-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--footer-text-muted);
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
}

.footer-category-link:hover {
    background: var(--footer-accent);
    color: white;
    transform: translateX(4px);
}

.footer-category-link i {
    font-size: 11px;
    color: var(--footer-accent);
}

.footer-category-link:hover i {
    color: white;
}

/* ====== UBICACIONES ====== */
.footer-location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.footer-location-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--footer-text-muted);
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-location-link:hover {
    background: var(--footer-accent);
    color: white;
    border-color: var(--footer-accent);
}

.footer-location-link i {
    font-size: 12px;
    color: var(--footer-accent);
}

.footer-location-link:hover i {
    color: white;
}

.footer-location-link small {
    font-size: 11px;
    opacity: 0.7;
    margin-left: auto;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .footer-info {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-brand-social {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .integrated-content {
        grid-template-columns: 1fr;
    }

    .footer-aggregations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 40px 16px 0;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        padding: 24px 0;
    }

    .footer-bottom-right {
        flex-direction: column;
        gap: 20px;
    }

    .footer-apps {
        flex-direction: column;
        gap: 12px;
    }

    .ai-highlight-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-dynamic-aggregations,
    .footer-categories-hierarchical,
    .footer-locations-webs-integrated,
    .footer-telegram {
        padding: 20px;
        margin-bottom: 20px;
    }

    .footer-section-title {
        margin: -20px -20px 20px -20px;
        padding: 14px 20px;
        font-size: 15px;
    }

    .websites-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-column h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

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

    .app-stores {
        flex-direction: column;
        width: 100%;
    }

    .app-store-link {
        justify-content: center;
    }
}
