/* ============================================================
   footer.css — FINAL COMPLETE VERSION
   Includes: 3-col grid, equal height cards, buttons same row
   COLOR CHANGES: dark grey bg, white cards, red-only accent
   ============================================================ */

/* ===========================
   CSS VARIABLES
   =========================== */
   :root {
    --secondary-color:     #e8e8e8;
    --grey-color:          #aaaaaa;
    --gray-text-secondary: #aaaaaa;
    --gray-text-primary:   #e8e8e8;
    --primary-red-color:   #CC0000;
    --footer-bg:           #3a3a3a;
    --footer-surface:      #444444;
    --footer-border:       rgba(255,255,255,0.09);
    --card-bg:             #f5f5f5;
    --card-text:           #2c3e50;
    --card-muted:          #6c757d;
    --brand-red:           #CC0000;
    --brand-red-hover:     #a93226;
    --brand-red-faint:     rgba(192,57,43,0.10);
    --brand-white:         #ffffff;
}

/* ===========================
   FOOTER BASE
   =========================== */
.site-footer {
    background: var(--footer-bg) !important;
    color: var(--secondary-color);
    padding: 4rem 0 1rem;
    margin-top: 4rem !important;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--brand-red);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse 50% 35% at 0% 0%, rgba(192,57,43,0.05), transparent);
    pointer-events: none;
}

/* ===========================
   FOOTER CONTENT GRID
   =========================== */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

/* ===========================
   FOOTER SECTION HEADINGS
   =========================== */
.footer-section h4 {
    color: var(--brand-white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-size: 1.3rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px;
    height: 3px;
    background: var(--brand-red);
    border-radius: 3px;
}

/* ===========================
   FOOTER CONTACT INFO
   =========================== */
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--footer-surface);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.footer-contact-info li:hover {
    background: #4a4a4a;
    border-left-color: var(--brand-red);
    transform: translateX(5px);
}

.footer-contact-info .icon {
    font-size: 1.3rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
    min-width: 35px;
    text-align: center;
    color: var(--brand-red);
}

.footer-contact-info strong {
    color: #cccccc;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.footer-contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-contact-info a:hover {
    color: var(--brand-white);
    transform: translateY(-1px);
}

/* ===========================
   FOOTER DISTRIBUTORS
   =========================== */
.footer-distributors {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-distributors li {
    margin-bottom: 0.5rem;
}

.footer-distributors a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: var(--footer-surface);
    border-left: 3px solid transparent;
}

.footer-distributors a:hover {
    color: var(--brand-white);
    background: #4a4a4a;
    transform: translateX(8px);
    border-left-color: var(--brand-red);
}

.footer-distributors a:last-child {
    background: #505050;
    font-weight: 600;
    margin-top: 1rem;
}

.footer-distributors .distributor-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--footer-border);
    transition: all 0.3s ease;
}

.footer-distributors .distributor-item:last-child {
    border-bottom: none;
}

.footer-distributors .distributor-item:hover {
    padding-left: 8px;
    border-left: 3px solid var(--brand-red);
}

.footer-distributors .distributor-item h6 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--brand-white);
}

.footer-distributors .distributor-item p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 4px;
    color: #aaaaaa;
}

.footer-distributors .btn-view-all {
    display: inline-flex;
    align-items: center;
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1px solid var(--brand-red);
    border-radius: 6px;
    background: transparent;
}

.footer-distributors .btn-view-all:hover {
    background-color: var(--brand-red);
    color: white;
    transform: translateX(5px);
}

/* ===========================
   NEWSLETTER SECTION
   =========================== */
.footer-section:last-child {
    background: var(--footer-surface) !important;
    border-radius: 6px !important;
    padding: 1.35rem !important;
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
    border: 1px solid var(--footer-border) !important;
    border-top: 2px solid var(--brand-red) !important;
}

.footer-section:last-child::before {
    display: none;
}

.footer-section:last-child h4 {
    color: var(--brand-white) !important;
    text-align: left;
    margin-bottom: 1rem;
}

.footer-section:last-child p {
    text-align: center;
    margin-bottom: 1rem;
    color: #aaaaaa !important;
    font-size: 0.8rem;
}

.newsletter-form .form-control {
    background: var(--footer-bg) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 4px !important;
    padding: 0.6rem 0.85rem !important;
    color: var(--secondary-color) !important;
    transition: all 0.3s ease;
    font-size: 0.82rem !important;
}

.newsletter-form .form-control:focus {
    background: var(--footer-bg) !important;
    border-color: var(--brand-red) !important;
    box-shadow: none !important;
    transform: none;
}

.newsletter-form .form-control::placeholder {
    color: #aaaaaa !important;
    opacity: 1;
}

.newsletter-btn {
    background: var(--brand-red) !important;
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    padding: 0.65rem 1.5rem !important;
    border-radius: 4px !important;
    font-size: 0.82rem !important;
    position: relative;
    overflow: hidden;
}

.newsletter-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;
}

.newsletter-btn:hover::before { left: 100%; }

.newsletter-btn:hover {
    background: var(--brand-red-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192,57,43,0.35);
}

/* ===========================
   FOOTER SUPPORT WRAPPER
   =========================== */
.footer-support {
    border-top: 1px solid var(--footer-border);
    padding-top: 2rem;
}

.footer-support h4 {
    color: var(--brand-white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-size: 1.3rem;
}

.footer-support-section {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: var(--footer-surface);
    border-left: 3px solid transparent;
    border-top: 4px solid var(--brand-red);
}

/* ===========================
   SINGLE ROW LAYOUT (top 3 sections)
   =========================== */
.single-row-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.single-row-layout .footer-section {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

/* ===========================
   SUPPORT SECTION TITLE
   =========================== */
.support-section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-white);
}

/* ===========================
   SUPPORT CARDS BASE
   =========================== */
.support-card-section {
    display: flex;
    flex-direction: column;
}

/* WHITE CARDS — same as Chat en Vivo */
.support-card {
    background: var(--card-bg) !important;
    border: 1px solid #ddd !important;
    border-top: 3px solid var(--brand-red) !important;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.support-card:hover {
    background: var(--brand-white) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.2);
    border-top-color: var(--brand-red) !important;
}

.support-card-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
    flex: 1;
}

/* ALL icons: red only */
.support-card-icon {
    font-size: 1.5rem;
    color: var(--brand-red) !important;
    background: var(--brand-red-faint) !important;
    width: 44px; height: 44px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.sales-card     .support-card-icon,
.technical-card .support-card-icon,
.chat-card      .support-card-icon {
    color: var(--brand-red) !important;
    background: var(--brand-red-faint) !important;
}

.support-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.support-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.support-card-header h6 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--card-text);
}

.support-card-header .text-muted {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--card-muted) !important;
}

.contact-info {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-info .phone-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--card-text);
    margin-bottom: 0.5rem;
}

.contact-info .text-muted {
    font-size: 0.8rem;
    color: var(--card-muted) !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator.online {
    color: #2c2c2c;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-indicator.online i {
    font-size: 0.6rem;
    vertical-align: middle;
    color: #27ae60;
    animation: pulse 2s infinite;
}

/* ===========================
   SUPPORT CARD BUTTONS - BASE
   =========================== */
.support-card-actions {
    margin-top: auto;
    padding-top: 1rem;
    width: 100%;
}

.support-card-actions .row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.4rem !important;
    margin: 0 !important;
    width: 100% !important;
}

.support-card-actions .col-6 {
    flex: 1 !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    min-width: 0 !important;
}

.support-card-actions .btn {
    width: 100% !important;
    border-radius: 6px;
    padding: 7px 6px !important;
    font-weight: 600;
    font-size: 0.75rem !important;
    border-width: 1px;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 34px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease;
}

.support-card-actions .btn i {
    font-size: 0.7rem;
    margin-right: 3px;
    flex-shrink: 0;
}

/* ===========================
   BUTTON COLORS — RED ONLY
   =========================== */
.btn-primary,
.support-btn-group .btn-primary,
.support-card-actions .btn-primary {
    background: var(--brand-red) !important;
    border-color: var(--brand-red) !important;
    color: white !important;
}
.btn-primary:hover,
.support-btn-group .btn-primary:hover,
.support-card-actions .btn-primary:hover {
    background: var(--brand-red-hover) !important;
    border-color: var(--brand-red-hover) !important;
    transform: translateY(-1px);
}

.btn-outline-primary,
.support-btn-group .btn-outline-primary,
.support-card-actions .btn-outline-primary {
    color: #555 !important;
    border-color: #bbb !important;
    background: transparent !important;
}
.btn-outline-primary:hover,
.support-btn-group .btn-outline-primary:hover,
.support-card-actions .btn-outline-primary:hover {
    background: #efefef !important;
    border-color: #888 !important;
    color: #333 !important;
    transform: translateY(-1px);
}

.btn-success,
.support-btn-group .btn-success,
.support-card-actions .btn-success {
    background: var(--brand-red) !important;
    border-color: var(--brand-red) !important;
    color: white !important;
}
.btn-success:hover,
.support-btn-group .btn-success:hover,
.support-card-actions .btn-success:hover {
    background: var(--brand-red-hover) !important;
    border-color: var(--brand-red-hover) !important;
    transform: translateY(-1px);
}

.btn-outline-success,
.support-btn-group .btn-outline-success,
.support-card-actions .btn-outline-success {
    /*
    color: #555 !important;
    border-color: #bbb !important;
    background: transparent !important;
    */
    color: #ffffff !important;              /* white text */
    border-color: rgba(255,255,255,0.6) !important; /* light border */
    background: rgba(255,255,255,0.08) !important;  /* subtle white tint */
}

.btn-outline-success:hover,
.support-btn-group .btn-outline-success:hover,
.support-card-actions .btn-outline-success:hover {
    background: #efefef !important;
    border-color: #888 !important;
    color: #333 !important;
    transform: translateY(-1px);
}

.btn-warning,
.support-card-actions .btn-warning {
    background: var(--brand-red) !important;
    border-color: var(--brand-red) !important;
    color: white !important;
}
.btn-warning:hover {
    background: var(--brand-red-hover) !important;
    border-color: var(--brand-red-hover) !important;
    transform: translateY(-1px);
}

.support-card-actions .btn-danger {
    background: var(--brand-red) !important;
    border-color: var(--brand-red) !important;
    color: white !important;
}
.support-card-actions .btn-danger:hover {
    background: var(--brand-red-hover) !important;
    border-color: var(--brand-red-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(192,57,43,0.3);
}

/* ===========================
   FOOTER BOTTOM BAR
   =========================== */
.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 30px;
    width: auto;
    transition: transform 0.3s ease;
    filter: none !important; /* KEEP ORIGINAL COLOR */
}

.footer-logo:hover { transform: scale(1.05); opacity: 0.8; }

.copyright {
    color: #aaaaaa;
    margin: 0;
    flex-grow: 1;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #aaaaaa;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--brand-red);
    transition: width 0.3s ease;
}

.footer-links a:hover { color: var(--brand-white); }
.footer-links a:hover::after { width: 100%; }

.social-links { display: flex; gap: 0.8rem; }

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: var(--footer-surface);
    border-radius: 5px;
    color: #aaaaaa;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    border: 1px solid var(--footer-border);
}

.social-link:hover {
    background: var(--brand-red);
    color: var(--brand-white);
    border-color: var(--brand-red);
    transform: translateY(-2px);
    box-shadow: none;
}

/* =====================================================
   SUPPORT CARDS — 3 EQUAL COLUMNS (DESKTOP CORE FIX)
   ===================================================== */
.footer-support .footer-content.single-row-layout {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-auto-rows: 1fr !important;
    gap: 1.5rem !important;
    flex-wrap: unset !important;
    align-items: stretch !important;
    margin-bottom: 2rem;
}

.footer-support .support-card-section {
    min-width: 0 !important;
    max-width: 100% !important;
    flex: unset !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.footer-support .support-card {
    flex: 1 !important;
    height: 100% !important;
}

.footer-support .support-card-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
}

.footer-support .support-card-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
}

.footer-support .support-card-actions {
    margin-top: auto !important;
    padding-top: 1rem !important;
    align-self: flex-end !important;
    width: 100% !important;
}

/* ===========================
   LARGE SCREENS (1200px+)
   =========================== */
@media (min-width: 1200px) {
    .footer-support .support-card {
        min-height: 220px;
        padding: 2rem;
    }

    .footer-support .support-card-icon {
        font-size: 2rem;
        width: 60px; height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
    }

    .footer-support .support-card-header h6       { font-size: 1.4rem; }
    .footer-support .support-card-header .text-muted { font-size: 1rem; margin-bottom: 1.5rem; }
    .footer-support .contact-info .phone-number    { font-size: 1.3rem; }

    .footer-support .support-card-actions .btn {
        padding: 9px 10px !important;
        font-size: 0.82rem !important;
        min-height: 40px;
    }
}

@media (min-width: 1400px) {
    .footer-support .support-card         { min-height: 250px; padding: 2.5rem; }
    .footer-support .support-card-header h6 { font-size: 1.5rem; }
    .footer-support .contact-info .phone-number { font-size: 1.4rem; }

    .footer-support .support-card-actions .btn {
        padding: 10px 12px !important;
        font-size: 0.88rem !important;
        min-height: 44px;
    }
}

/* ===========================
   MEDIUM — stack buttons 993–1150px
   =========================== */
@media (max-width: 1150px) and (min-width: 993px) {
    .footer-support .support-card-actions .row {
        flex-direction: column !important;
        gap: 0.35rem !important;
    }

    .footer-support .support-card-actions .col-6 {
        width: 100% !important;
    }

    .footer-support .support-card-actions .btn {
        font-size: 0.78rem !important;
        padding: 7px 8px !important;
    }
}

/* ===========================
   TABLET (max 992px) — 1 column
   =========================== */
@media (max-width: 992px) {
    .footer-support .footer-content.single-row-layout {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
    }

    .single-row-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .single-row-layout .footer-section {
        max-width: 100%;
        min-width: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section { text-align: center; }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact-info li {
        justify-content: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-support .support-card-actions .row {
        flex-direction: row !important;
    }

    .footer-support .support-card-actions .btn {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
}

/* ===========================
   MOBILE (max 768px)
   =========================== */
@media (max-width: 768px) {
    .site-footer { padding: 2rem 0 1rem; }

    .footer-contact-info li {
        display: flex;
        align-items: flex-start;
        margin-bottom: 1rem;
        padding: 0.8rem;
        border-radius: 8px;
        text-align: left;
        gap: 0.6rem;
    }

    .footer-contact-info .icon {
        font-size: 1.1rem;
        margin-right: 0;
        margin-top: 0.1rem;
        min-width: 20px;
        flex-shrink: 0;
    }

    .footer-contact-info li div { text-align: left; flex: 1; }
    .footer-contact-info strong { margin-bottom: 0.2rem; font-size: 0.92rem; text-align: left; }
    .footer-contact-info span   { font-size: 0.85rem; text-align: left; display: block; line-height: 1.3; }

    .support-card {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 1.5rem;
        text-align: center;
    }

    .support-card-content {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .support-card-icon {
        font-size: 1.8rem;
        margin-top: 0;
        display: flex;
        justify-content: center;
    }

    .support-card-info,
    .contact-info      { align-items: center; text-align: center; width: 100%; }

    .support-card-header h6,
    .support-card-header .text-muted,
    .contact-info .text-muted,
    .contact-info .phone-number { text-align: center; }

    .status-indicator.online   { justify-content: center; }

    .support-card-actions {
        text-align: center;
        width: 100%;
    }

    .support-card-actions .row {
        justify-content: center !important;
        flex-direction: row !important;
    }

    .support-card-actions .btn {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
        min-height: 36px;
    }

    .support-section-title { font-size: 1.3rem; margin-bottom: 2rem; }

    .footer-content.single-row-layout,
    .footer-support .footer-content.single-row-layout {
        justify-content: center !important;
        text-align: center;
    }

    .footer-section,
    .footer-support-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact-info li div { text-align: center; }
}

/* ===========================
   SMALL MOBILE (max 576px)
   =========================== */
@media (max-width: 576px) {
    .single-row-layout  { gap: 1.5rem; }
    .support-card       { max-width: 400px; padding: 1.25rem; }
    .support-card-icon  { font-size: 1.6rem; }
    .support-card-header h6 { font-size: 1.1rem; }
    .footer-logo        { height: 40px; }
}

/* ===========================
   VERY SMALL MOBILE (max 480px)
   =========================== */
@media (max-width: 480px) {
    .support-card { max-width: 360px; padding: 1rem; }

    .support-card-actions .row {
        flex-direction: column !important;
        align-items: center;
        gap: 0.5rem !important;
    }

    .support-card-actions .col-6 {
        width: 100% !important;
        max-width: 220px;
    }

    .support-card-actions .btn {
        padding: 8px 12px !important;
        font-size: 0.82rem !important;
        min-height: 36px;
        justify-content: center;
    }
}

/* ===== ROOT CAUSE FIX: Bootstrap g-2 fighting our layout ===== */
.support-card-actions .row.g-2 {
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.4rem !important;
    margin: 0 !important;
    width: 100% !important;
}

.support-card-actions .row.g-2 > .col-6 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: 1 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

@media (min-width: 993px) {
    .support-card-actions .row.g-2 {
        flex-direction: row !important;
    }
}

@media (max-width: 1150px) and (min-width: 993px) {
    .support-card-actions .row.g-2 {
        flex-direction: column !important;
        gap: 0.35rem !important;
    }

    .support-card-actions .row.g-2 > .col-6 {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .support-card-actions .row.g-2 {
        flex-direction: column !important;
        align-items: center;
        gap: 0.5rem !important;
    }

    .support-card-actions .row.g-2 > .col-6 {
        width: 100% !important;
        max-width: 220px;
    }
}

/* ===== SUPPORT BTN GROUP ===== */
.support-btn-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    width: 100%;
    margin-top: 1.5rem;
}

.support-btn-group .btn {
    flex: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.9rem !important;
    padding: 10px 12px !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-width: 2px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.support-btn-group .btn i {
    font-size: 0.9rem;
    margin-right: 6px;
}

.support-btn-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 1150px) and (min-width: 993px) {
    .support-btn-group {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    .support-btn-group .btn { width: 100% !important; }
}

@media (max-width: 480px) {
    .support-btn-group {
        flex-direction: column !important;
        max-width: 240px;
        margin-left: auto; margin-right: auto;
    }
    .support-btn-group .btn {
        font-size: 0.85rem !important;
        padding: 10px 16px !important;
        min-height: 40px !important;
    }
}

/* ===========================
   FOOTER SECTION CARDS - WITH BORDERS
   =========================== */
.footer-section {
    background: var(--footer-surface);
    border: 2px solid var(--footer-border) !important;
    border-radius: 16px;
    padding: 2rem 1.8rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.footer-section:hover {
    border-color: var(--brand-red) !important;
    box-shadow: 0 12px 30px rgba(192,57,43,0.15);
    transform: translateY(-5px);
}

/* ALL top borders: red */
.footer-section:nth-child(1) { border-top: 4px solid var(--brand-red) !important; }
.footer-section:nth-child(2) { border-top: 4px solid var(--brand-red) !important; }
.footer-section:nth-child(3) { border-top: 4px solid var(--brand-red) !important; }

.footer-section h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--brand-white);
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: var(--brand-red);
    border-radius: 3px;
}

.footer-section .text-muted {
    color: var(--card-muted) !important;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.footer-section .text-muted.small {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.footer-section .phone-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--card-text);
    margin: 0.5rem 0 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #ddd;
}

.footer-section .status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin: 0.5rem 0 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #ddd;
}

.footer-section .status-indicator.online {
    color: #2c2c2c;
}

.footer-section .status-indicator.online i {
    font-size: 0.8rem;
    color: #27ae60;
    animation: pulse 2s infinite;
}

.footer-section .support-btn-group {
    margin-top: auto !important;
    padding-top: 1rem;
}

/* ===========================
   PHONE NUMBER STYLING
   =========================== */
.phone-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff !important; /* FORCE WHITE */
    margin: 0.5rem 0 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
}

.footer-section .phone-number {
    color: #ffffff !important;
}

/* ===========================
   STATUS INDICATOR
   =========================== */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin: 0.5rem 0 1rem 0;
    padding: 0.5rem 0;
}

.status-indicator.online {
    color: #2c2c2c;
}

.status-indicator.online i {
    font-size: 0.8rem;
    color: #27ae60;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ===========================
   TEXT MUTED STYLING
   =========================== */
.text-muted {
    color: var(--card-muted) !important;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* ===========================
   LARGE SCREENS (1200px+)
   =========================== */
@media (min-width: 1200px) {
    .footer-section { padding: 2.5rem 2rem; }
    .footer-section h4 { font-size: 1.8rem; }
    .phone-number { font-size: 1.4rem; }
    .support-btn-group { gap: 1.25rem !important; margin-top: 2rem; }
    .support-btn-group .btn {
        font-size: 1rem !important;
        padding: 12px 16px !important;
        min-height: 48px !important;
    }
}

/* ===========================
   NARROW DESKTOP - STACK BUTTONS
   =========================== */
@media (max-width: 1150px) and (min-width: 993px) {
    .footer-section { min-height: 380px; }
}

/* ===========================
   TABLET (max 992px)
   =========================== */
@media (max-width: 992px) {
    .footer-content.single-row-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .footer-section {
        min-height: auto;
        max-width: 500px;
        margin: 0 auto;
    }
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ===========================
   MOBILE (max 768px)
   =========================== */
@media (max-width: 768px) {
    .site-footer {
        padding: 4rem 0 1rem;
    }
    
    .footer-section {
        padding: 1.8rem 1.5rem;
        text-align: center;
    }
    .footer-section .phone-number,
    .footer-section .status-indicator { justify-content: center; }
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    .support-btn-group {
        flex-direction: column !important;
        gap: 0.75rem !important;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    .support-btn-group .btn {
        width: 100% !important;
        padding: 12px 20px !important;
    }
}

/* ===========================
   VERY SMALL MOBILE (max 480px)
   =========================== */
@media (max-width: 480px) {
    .footer-section { padding: 1.5rem 1.25rem; }
}

/* ===========================
   FORCE BORDERS TO SHOW
   =========================== */
.site-footer .footer-section {
    border: 2px solid var(--footer-border) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ===========================
   FOOTER SECTION CARDS - EQUAL HEIGHT
   =========================== */
/* Desktop: 3 equal columns */
@media (min-width: 993px) {
    .footer-content.single-row-layout {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem !important;
        align-items: stretch !important;
    }
}
/* Mobile/tablet: single column */
@media (max-width: 992px) {
    .footer-content.single-row-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    .footer-content.single-row-layout .footer-section {
        width: 100% !important;
        max-width: 480px !important;
        margin: 0 auto !important;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .footer-section { min-height: 350px; }
}

/* Theme variations */
.footer-light .footer-section {
    background: white;
    border-color: #e0e0e0 !important;
}
.footer-light .footer-section h4,
.footer-light .phone-number { color: #2c3e50; }
.footer-light .text-muted { color: #6c757d !important; }
