/* CSS for CCS Footer */
/* App Downloads in Footer */
.ccs-footer .footer-apps {
    margin-top: 1.5rem;
}

.ccs-footer .footer-app-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #bfdbfe;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.ccs-footer .footer-app-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ccs-footer .app-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    min-width: 140px;
}

.ccs-footer .app-btn:hover {
    background: white;
    color: #1e3a8a;
    /* Blue text on white hover */
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.ccs-footer .app-btn i,
.ccs-footer .app-btn svg {
    font-size: 1.75rem !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    display: block !important;
    fill: currentColor !important;
    color: currentColor !important;
}

.ccs-footer .app-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.ccs-footer .app-btn-text span {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.ccs-footer .app-btn-text strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.ccs-footer-wrapper {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.ccs-footer {
    background: linear-gradient(to bottom right, #1e3a8a, #1e40af, #1e3a8a);
    color: white;
}

.ccs-footer .footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.ccs-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

/* Sección del logo */
.ccs-footer .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ccs-footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ccs-footer .footer-logo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 60px;
}

.ccs-footer .footer-logo-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
}

.ccs-footer .footer-logo-icon {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    /* flex default */
}

.ccs-footer .footer-logo-icon i,
.ccs-footer .footer-logo-icon svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    font-size: 1.5rem !important;
    color: white;
    fill: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ... existing code ... */

.ccs-footer .contact-item i,
.ccs-footer .contact-item svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    font-size: 1.25rem !important;
    flex-shrink: 0;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    fill: currentColor;
    color: currentColor;
}

/* ... existing code ... */

.footer-social-icon i,
.footer-social-icon svg {
    width: 1.2rem !important;
    height: 1.2rem !important;
    font-size: 1.2rem !important;
    fill: white;
    color: white;
    display: block !important;
    /* Ensure it behaves */
}


.ccs-footer .footer-logo-text h3 {
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0;
    line-height: 1.2;
    color: white;
}

.ccs-footer .footer-logo-text p {
    font-size: 0.875rem;
    color: #bfdbfe;
    margin: 0;
}

.ccs-footer .footer-description {
    color: #dbeafe;
    font-size: 0.875rem;
    line-height: 1.625;
}

/* Enlaces rápidos */
.ccs-footer .footer-section h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: white;
}

.ccs-footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ccs-footer .footer-links a {
    color: #dbeafe;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.ccs-footer .footer-links a:hover {
    color: white;
}

.ccs-footer .footer-links a span {
    margin-right: 0.5rem;
}

/* Contacto */
.ccs-footer .contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ccs-footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #dbeafe;
    font-size: 0.875rem;
}

.ccs-footer .contact-item i,
.ccs-footer .contact-item svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    font-size: 1.25rem !important;
    flex-shrink: 0;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    fill: currentColor;
    color: currentColor;
}

/* Horarios */
.ccs-footer .schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #dbeafe;
    font-size: 0.875rem;
}

.ccs-footer .schedule-item {
    line-height: 1.5;
}

.ccs-footer .schedule-item .day {
    font-weight: 600;
    color: white;
}

/* Bottom bar */
.ccs-footer .footer-bottom {
    border-top: 1px solid rgba(29, 78, 216, 0.5);
    margin-top: 2rem;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ccs-footer .footer-copyright {
    color: #bfdbfe;
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
}

.ccs-footer .social-links {
    display: flex;
    gap: 1rem;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social-icon i,
.footer-social-icon svg {
    justify: center;
}

.footer-social-icon i,
.footer-social-icon svg {
    width: 1.2rem !important;
    height: 1.2rem !important;
    font-size: 1.2rem !important;
    fill: white;
    color: white;
    display: block !important;
}

/* Responsive */
@media (min-width: 768px) {
    .ccs-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ccs-footer .footer-bottom {
        flex-direction: row;
    }

    .ccs-footer .footer-copyright {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .ccs-footer .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Smart App Promo Modal */
.ccs-app-promo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ccs-app-promo-overlay.visible {
    opacity: 1;
}

.ccs-app-promo-modal {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.ccs-app-promo-overlay.visible .ccs-app-promo-modal {
    transform: translateY(0);
}

.ccs-app-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f3f4f6;
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ccs-app-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(to bottom right, #2563eb, #1e40af);
    border-radius: 1rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.ccs-app-icon i,
.ccs-app-icon svg {
    width: 2rem;
    height: 2rem;
    fill: white;
}

.ccs-app-promo-modal h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ccs-app-promo-modal p {
    color: #4b5563;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.ccs-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.ccs-promo-btn:active {
    transform: scale(0.98);
}

.ccs-promo-btn.android {
    background: #00875F;
    /* Google Play Green */
    color: white;
}

.ccs-promo-btn.ios {
    background: #000000;
    /* App Store Black */
    color: white;
}

.ccs-promo-btn i {
    font-size: 1.25rem;
}