:root {
 --primary-color: #0057b8;
  --secondary-color: #28a745;
  --danger-color: #dc3545;
  --dark-color: #222;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --border-color: #ddd;
  --header-blue: #004aad;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background-color: #f9f9f9;
}
/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background-color: var(--header-blue);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .logo {
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.4rem;
}

.header .logo img {
    height: 45px;
    margin-right: 10px;
    transition: var(--transition);
}

.header .logo:hover img {
    transform: rotate(5deg);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.nav-container {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-weight: 500;
    padding: 5px 8px;
}

.nav-links a:hover {
    color: var(--secondary);
}

.icon-group {
    display: flex;
    gap: 5px;
    margin: 0 8px;
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: var(--transition);
}

.icon-container:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.search-container {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    margin-left: 10px;
}

.search-container:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-container input {
    background: transparent;
    border: none;
    color: var(--white);
    outline: none;
    font-size: 0.9rem;
    width: 150px;
    padding-right: 8px;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-icon {
    color: var(--white);
    cursor: pointer;
    font-size: 0.9rem;
}



/* Banner de sucursales */
.banner-sucursales {
    background: linear-gradient(135deg, var(--primary), #003a8a);
    color: white;
    padding: 1rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 120px;
    display: flex;
    align-items: center;
}

.banner-sucursales::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjAzKSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIvPjwvc3ZnPg==');
}

.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.banner-content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.container {
    width: 100%;
    margin: 2rem auto;
    padding: 0 15px;
    max-width: 1200px;
}

.branch-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 10px;
}

.tab-btn {
    padding: 8px 16px;
    background: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.tab-btn i {
    font-size: 0.9rem;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.4);
}

.branch-content {
    display: none;
    animation: fadeIn 0.5s ease;
    width: 100%;
}

.branch-content.active {
    display: block;
}

/* Tarjeta de sucursal mejorada */
.branch-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    min-height: auto;
    height: auto;
}

.map-container {
    flex: 1;
    min-height: 250px;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contenido de sucursal mejorado */
.branch-info {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.branch-info h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 8px;
}

.branch-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
}

.contact-info {
    margin: 1rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    font-size: 14px;
    line-height: 1.5;
}

.contact-item i {
    color: var(--secondary);
    margin-right: 10px;
    margin-top: 3px;
    font-size: 1rem;
    flex-shrink: 0;
}

.hours-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-top: auto;
}

.hours-card h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.hours-card h3 i {
    color: var(--accent);
    font-size: 1rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.hours-row:last-child {
    border-bottom: none;
}

.day {
    font-weight: 600;
    color: var(--text);
}

.time {
    color: var(--text-light);
}

.branch-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1rem 0;
}

.feature {
    background: rgba(0, 74, 173, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.feature i {
    font-size: 0.8rem;
}

footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-content {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    max-width: 1200px;
}

.footer-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.footer-content p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 1rem 0;
}

.social-links a {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 14px;
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Efectos hover para la tarjeta */
.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Media Queries para Responsividad */
@media (min-width: 768px) {
    .header {
        flex-wrap: nowrap;
        padding: 10px 30px;
        gap: 20px;
    }
    
    .header .logo {
        order: 1;
        flex: 0 1 auto;
        min-width: auto;
    }
    
    .header .nav-container {
        order: 2;
        width: auto;
        margin-top: 0;
        flex-grow: 1;
    }
    
    .nav-links {
        justify-content: flex-end;
    }
    
    .search-container {
        order: 3;
        flex: 0 1 auto;
        min-width: auto;
    }
    
    .banner-content h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .branch-info {
        padding: 1.8rem;
    }
    
    .branch-info h2 {
        font-size: 1.6rem;
    }
    
    .hours-row {
        font-size: 15px;
    }
}

@media (min-width: 992px) {
    .branch-card {
        flex-direction: row;
        height: auto;
        margin-bottom: 30px;
    }
    
    .map-container {
        min-height: 350px;
        height: auto;
    }
    
    .branch-info {
        padding: 2rem;
    }
    
    .branch-info h2 {
        font-size: 1.8rem;
    }
    
    .tab-btn {
        padding: 12px 24px;
    }
}

@media (min-width: 1200px) {
    .banner-content h1 {
        font-size: 2.5rem;
    }
}

/* Ajustes para móviles pequeños */
@media (max-width: 576px) {
    .header {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .header .logo {
        font-size: 14px;
    }
    
    .header .logo img {
        height: 35px;
    }
    
    .nav-links a {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .search-container {
        padding: 6px 12px;
        max-width: 180px;
    }
    
    .banner-content h1 {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .header {
        padding: 10px;
        gap: 10px;
    }
    
    .header .logo {
        font-size: 13px;
        min-width: auto;
    }
    
    .header .logo img {
        height: 30px;
    }
    
    .nav-links {
        gap: 6px;
    }
    
    .nav-links a {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .search-container {
        max-width: 150px;
        padding: 5px 10px;
    }
    
    .search-container input {
        font-size: 12px;
    }
    
    .banner-content h1 {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .branch-info {
        padding: 1.2rem;
    }
    
    .branch-info h2 {
        font-size: 1.3rem;
    }
    
    .contact-item, .hours-row {
        font-size: 13px;
    }
    
    .feature {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}