/* ===== CSS PARA PÁGINA DE OFICINAS ===== */
/* Extra Rápido Los Motilones - Nuestras Oficinas */

:root {
    --rojo-corporativo: #e31e24;
    --rojo-oscuro: #b71c1c;
    --gris-oscuro: #111;
    --gris-medio: #333;
    --gris-claro: #f8f9fa;
    --texto-oscuro: #222;
    --texto-claro: #666;
    --sombra-suave: 0 15px 35px rgba(0,0,0,0.08);
    --sombra-intensa: 0 20px 40px rgba(227,30,36,0.15);
}

/* ===== HERO ===== */
.hero-oficinas {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(227,30,36,0.75)), url('../img/slidenu.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-oficinas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1), transparent 70%);
}

.hero-oficinas h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
}

.hero-oficinas p {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===== SECCIÓN PRINCIPAL ===== */
.oficinas-section {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

/* ===== PESTAÑAS MODERNAS ===== */
.tabs-container {
    margin-bottom: 40px;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.tab-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.tab-btn i {
    color: #e31e24;
    font-size: 16px;
    transition: all 0.3s;
}

.tab-btn:hover {
    border-color: #e31e24;
    color: #e31e24;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #e31e24;
    border-color: #e31e24;
    color: white;
}

.tab-btn.active i {
    color: white;
}

/* ===== CONTENEDOR DE OFICINAS ===== */
.office-tab {
    display: none;
    animation: fadeIn 0.5s ease;
}

.office-tab.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== GRID DE OFICINAS ===== */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.office-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: all 0.3s;
    border: 1px solid rgba(227,30,36,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.office-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-intensa);
    border-color: rgba(227,30,36,0.3);
}

/* Encabezado de la tarjeta */
.office-header {
    background: linear-gradient(135deg, #e31e24, #b71c1c);
    padding: 20px;
    text-align: center;
    position: relative;
}

.office-header h3 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.office-header .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

/* Mapa */
.office-map {
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.office-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: transform 0.3s;
}

.office-card:hover .office-map iframe {
    transform: scale(1.02);
}

/* Información de la oficina */
.office-info {
    padding: 20px;
    flex: 1;
}

.office-info p {
    margin: 12px 0;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.office-info i {
    width: 25px;
    color: #e31e24;
    font-size: 16px;
    text-align: center;
}

.office-info strong {
    color: #333;
}

/* Horario */
.horario {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    border-left: 4px solid #e31e24;
}

.horario p {
    margin: 8px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Botón WhatsApp */
.whatsapp-office {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s;
    width: fit-content;
}

.whatsapp-office:hover {
    background: #1da851;
    transform: translateY(-2px);
    color: white;
}

/* ===== CIUDAD SIN OFICINAS ===== */
.no-offices {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 25px;
    box-shadow: var(--sombra-suave);
    max-width: 500px;
    margin: 0 auto;
}

.no-offices i {
    font-size: 64px;
    color: #e31e24;
    opacity: 0.5;
    margin-bottom: 20px;
}

.no-offices h3 {
    color: #333;
    margin-bottom: 10px;
}

.no-offices p {
    color: #666;
}

/* ===== BOTÓN VOLVER ===== */
.oficinas-acciones {
    display: flex;
    justify-content: center;
    margin: 50px 0 20px;
}

.btn-volver {
    background: #6c757d;
    color: white;
    padding: 15px 40px;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: none;
    font-size: 16px;
}

.btn-volver:hover {
    background: #5a6268;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    color: white;
}

/* ===== FOOTER ===== */
footer {
    background: var(--gris-oscuro);
    color: #bbb;
    padding: 60px 0 30px;
    border-top: 4px solid var(--rojo-corporativo);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo-img {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 8px;
    font-size: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e31e24;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: #e31e24;
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    margin-top: 20px;
    color: #777;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-oficinas h1 {
        font-size: 38px;
    }
    
    .tabs-nav {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-oficinas {
        padding: 60px 0;
    }
    
    .hero-oficinas h1 {
        font-size: 32px;
    }
    
    .oficinas-section {
        padding: 40px 0 60px;
    }
    
    .tabs-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }
    
    .tab-btn {
        justify-content: center;
    }
    
    .offices-grid {
        grid-template-columns: 1fr;
    }
    
    .office-map {
        height: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-oficinas h1 {
        font-size: 28px;
    }
    
    .hero-oficinas p {
        font-size: 16px;
    }
    
    .office-info p {
        font-size: 13px;
    }
}