/* ===== 1. Variables & Configuración ===== */
:root {
    /* Paleta de Colores CEPREDI */
    --color-primary: #007b7f;
    /* Verde corporativo */
    --color-primary-dark: #005f63;
    --color-secondary: #003366;
    /* Azul oscuro */
    --color-accent: #00b7ef;
    /* Celeste brillante */

    --bg-light: #e8eaeb;
    --bg-white: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    --radius: 8px;
    --container-width: 1100px;
}

/* Reset Moderno */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilidad Container */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* ===== 2. LÓGICA JS (CRUCIAL) ===== */
/* Por defecto ocultamos info específica */
.show-if-tres,
.show-if-piedras {
    display: none !important;
}

/* El JS agrega data-branch al body */
body[data-branch="tres"] .show-if-tres {
    display: block !important;
    animation: fadeIn 0.5s;
}

body[data-branch="piedras"] .show-if-piedras {
    display: block !important;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== 3. Header & Navegación ===== */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.8rem 0;
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 45px;
}

/* ===== Selector de Sucursal PERSONALIZADO ===== */
.branch-selector-wrapper {
    position: relative;
    /* Para posicionar la lista flotante */
    margin-left: 20px;
    margin-right: auto;
    width: 210px;
    /* Ancho fijo para que no baile */
    font-family: 'Inter', sans-serif;
    z-index: 500;
    /* Por encima de todo */
}

/* El botón que se ve siempre */
.selected-display {
    background: #f0f4f8;
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-secondary);
    border: 1px solid transparent;
}

.selected-display:hover {
    background: #e2e8f0;
}

/* Flechita animada */
.selected-display::after {
    content: '';
    margin-left: auto;
    /* Empuja la flecha a la derecha */
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--color-secondary);
    transition: transform 0.3s;
}

/* Cuando el menú está abierto, giramos la flecha */
.branch-selector-wrapper.active .selected-display::after {
    transform: rotate(180deg);
}

/* --- La Lista Desplegable (Lo que antes se veía feo) --- */
.custom-options {
    position: absolute;
    top: 110%;
    /* Justo debajo del botón */
    left: 0;
    width: 100%;
    background: white;
    border-radius: 12px;
    /* Bordes bien redondos */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 5px;
    list-style: none;

    /* Animación de entrada */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Mostrar lista cuando está activo */
.branch-selector-wrapper.active .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Cada opción de la lista */
.custom-options li {
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #444;
    transition: background 0.2s;
}

/* Hover bonito en las opciones */
.custom-options li:hover {
    background-color: #f0f9fa;
    color: var(--color-primary);
    /* Verde corporativo */
    font-weight: 600;
}

/* --- ESTILOS PARA HEADER VERDE (Páginas internas) --- */
.site-header.header-colored .selected-display {
    background-color: transparent;
    /* Fondo transparente */
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Borde fino blanco semi-transparente */
    color: white;
    /* Texto blanco */
    box-shadow: none;
    /* Quitamos sombra para que se vea plano/limpio */
}

.site-header.header-colored .selected-display:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Se ilumina un poquito */
    border-color: white;
    /* El borde se vuelve blanco puro */
}

/* 3. La flechita en blanco */
.site-header.header-colored .selected-display::after {
    border-top-color: white;
}

/* 4. IMPORTANTE: El menú desplegable (La lista que se abre) */
/* La lista debe seguir siendo BLANCA con letras oscuras para que se lea bien */
.site-header.header-colored .custom-options {
    background-color: white;
    color: var(--text-main);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    /* Sombra fuerte para que flote */
}

/* Los items de la lista (reseteamos color para que no sean blancos) */
.site-header.header-colored .custom-options li {
    color: #444;
}

.site-header.header-colored .custom-options li:hover {
    color: var(--color-primary);
    /* Verde al pasar mouse */
    background: #f0f9fa;
}

/* Menú Desktop */
.main-nav > ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
    
}

.main-nav a:hover {
    color: var(--color-primary);
}

/* Botón Contacto en menú */
.btn-nav-contact {
    background: var(--color-secondary);
    color: white !important;
    padding: 8px 16px;
    border-radius: 50px;
}

.btn-nav-contact:hover {
    background: var(--color-primary);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    font-weight: 500;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    min-width: 220px;
    
    /* CORRECCIÓN 1: Flex direction columna (ya lo tenías) */
    display: flex;
    flex-direction: column;
    
    /* CORRECCIÓN 2: "Stretch" obliga a los botones a ocupar todo el ancho.
       Si ocupan todo el ancho, el texto se puede alinear a la izquierda.
       Si están en "center", se achican al tamaño del texto y quedan al medio. */
    align-items: stretch; 
    
    /* CORRECCIÓN 3: Reseteamos el espacio heredado del menú principal */
    gap: 0; 
    
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s;
    padding: 10px 0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    text-align: left; /* Alineación del texto */
    width: 100%;      /* Asegura que llene el contenedor estirado */
}

.dropdown-menu li a:hover {
    background: #f0f9fa;
}

/* ===== 4. Hero Section ===== */
.hero {
    /* 1. Degradado de Arriba hacia Abajo (to bottom) */
    background: linear-gradient(to bottom, var(--color-secondary) 0%, var(--color-primary) 100%);

    color: white;
    text-align: center;

    /* 2. Ajuste de Relleno (Padding) */
    /* Aumentamos mucho el padding-bottom (200px) para que el color baje 
       y cubra la mitad de las tarjetas */
    padding: 80px 0 220px 0;
}

/* Estilo para el nombre de marca que vamos a agregar */
.hero-brand {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--color-accent);
    /* Celeste para que resalte sobre el azul */
    opacity: 0.9;
}

.hero h1 {
    font-size: 2.8rem;
    /* Un poco más grande */
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: white;
    color: var(--color-primary);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

/* ===== 5. Cards & Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.service-card .icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-grow: 1;
}

.service-card a {
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

/* ===== 6. Pricing Card (Ejemplo) ===== */
.pricing-preview {
    /* 3. Subimos las tarjetas mucho más (-120px) para que se solapen */
    margin-top: -120px;
    position: relative;
    z-index: 10;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    border-top: 5px solid var(--color-accent);
}

.badge {
    background: #e0f2fe;
    color: var(--color-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-amount {
    display: block;
    font-size: 2rem;
    color: var(--color-primary);
    margin: 10px 0;
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== 7. Modal Overlay ===== */
.branch-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.branch-modal {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.branch-modal header {
    background: var(--color-secondary);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
}

.branch-modal .content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.branch-options {
    display: grid;
    gap: 10px;
}

.branch-btn {
    padding: 15px;
    border: 2px solid #eee;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
}

.branch-btn:hover {
    border-color: var(--color-primary);
    background: #f0f9fa;
}

.branch-btn strong {
    display: block;
    color: var(--color-secondary);
}

.branch-skip {
    background: none;
    border: none;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 10px;
}

/* ===== 8. Footer ===== */
.site-footer {
    background: var(--color-secondary);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===== 9. Responsive (Móvil) ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-secondary);
    margin: 5px 0;
}

@media (max-width: 768px) {
    .header-wrap {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .branch-selector-wrapper {
        order: 2;
        margin: 0 15px 0 auto;
    }

    .main-nav {
        width: 100%;
        order: 4;
        display: none;
        /* El JS le agrega .open para mostrarlo */
        background: white;
        border-top: 1px solid #eee;
        margin-top: 15px;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #f5f5f5;
    }

    /* Dropdown móvil simple */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        transform: none;
        padding-left: 20px;
        background: #f9f9f9;
    }

    .has-dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown-btn {
        width: 100%;
        text-align: left;
        padding: 12px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Forzar que el atributo hidden SIEMPRE oculte el elemento */
[hidden] {
    display: none !important;
}

/* ===== Estilos para Páginas Internas ===== */

/* Layout de 2 columnas para desktop */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

@media (min-width: 900px) {
    .grid-layout {
        grid-template-columns: 2fr 1fr;
        /* Contenido ancho, sidebar angosta */
        align-items: start;
    }
}

/* Header de página interna */
.page-header {
    text-align: center;
    padding: 40px 0 20px;
}

.page-header h1 {
    font-size: 2.2rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.page-header .lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Tarjetas de detalles (Requisitos) */
.details-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
}

.details-card h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.details-card h3 {
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Listas personalizadas (Checkmarks) */
.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #444;
}

.custom-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Caja de Alerta */
.alert-box {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 0.95rem;
}

/* Tarjeta de Precios Lateral */
.branch-info-box {
    text-align: left;
    /* Reset del center del index */
    background: white;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-top: 5px solid var(--color-secondary);
    position: sticky;
    top: 100px;
    /* Se pega al bajar scrolleando */
}

.branch-info-box h3 {
    font-size: 1.1rem;
    margin-top: 10px;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.price-display .label {
    font-weight: 500;
    color: #666;
}

.price-display .amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
}

.mini-details {
    margin: 20px 0;
    font-size: 0.9rem;
    color: #555;
}

.mini-details li {
    margin-bottom: 8px;
}

.full-width {
    width: 100%;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.btn-outline {
    border: 1px solid #ccc;
    color: #555;
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.footer-note {
    font-size: 0.75rem;
    color: #999;
    margin-top: 10px;
    text-align: center;
}

/* ===== Botón "Ver requisitos" ===== */
.link-arrow {
    display: inline-block;
    background-color: var(--color-primary);
    /* Fondo verde */
    color: white !important;
    /* Texto blanco forzado */
    padding: 10px 25px;
    border-radius: 50px;
    /* Forma de pastilla */
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

.link-arrow:hover {
    background-color: var(--color-primary-dark);
    /* Verde más oscuro al pasar mouse */
    transform: translateY(-2px);
    /* Efecto de elevación */
    box-shadow: var(--shadow-lg);
}

/* ===== Estilos Específicos de Contacto ===== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.location-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    /* Para que el mapa respete los bordes redondeados */
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--bg-light);
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin: 0;
}

.card-body {
    padding: 25px;
    flex-grow: 1;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.contact-info-list li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #444;
}

.contact-info-list strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 3px;
}

/* Contenedor del Mapa */
.map-container {
    height: 250px;
    width: 100%;
    background-color: #ddd;
    /* Color de carga mientras aparece el mapa */
}

/* ===== Estilos Específicos de Contacto (MEJORADO) ===== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    /* Un poco más anchas */
    gap: 40px;
    /* Más espacio entre tarjetas */
    margin-bottom: 60px;
}

.location-card {
    background: white;
    border-radius: 12px;

    /* Borde gris suave alrededor */
    border: 1px solid #e5e7eb;

    /* Sombra más pronunciada para separarlo del fondo */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

/* Borde de color arriba para identificar la sucursal (Estilo UI moderna) */
.location-card.tres-cruces {
    border-top: 6px solid var(--color-secondary);
    /* Azul */
}

.location-card.piedras {
    border-top: 6px solid var(--color-primary);
    /* Verde */
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: #ffffff;
    /* Fondo blanco limpio */
    padding: 25px 25px 15px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.3rem;
    color: var(--text-main);
    margin: 0;
    font-weight: 700;
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    background-color: #fff;
}

.contact-info-list li {
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: #4b5563;
    display: flex;
    flex-direction: column;
}

/* Iconos y títulos de datos */
.contact-info-list strong {
    color: var(--color-primary);
    /* Color verde corporativo */
    margin-bottom: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mapa */
.map-container {
    height: 300px;
    /* Mapa más alto */
    width: 100%;
    border-top: 1px solid #e5e7eb;
}

/* ===== Estilos para Nosotros ===== */
.text-block p {
    font-size: 1.05rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
    /* Opcional: si te gusta justificado */
}

/* Tarjetas de valores (pequeño ajuste sobre las cards normales) */
.value-card {
    text-align: center;
    border-top: 4px solid var(--color-primary);
    /* Detalle verde arriba */
}

.value-card .icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* ===== Header de Color (CORREGIDO) ===== */

/* 1. Fondo VERDE */
.site-header.header-colored {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 2. LOGO: Truco de contorno blanco */
.site-header.header-colored .logo img {
    /* Esto crea un resplandor blanco alrededor de las letras verdes
       para que se lean sobre el fondo verde sin cambiar el logo */
    filter: drop-shadow(0 0 1px white) drop-shadow(0 0 2px white);
}

/* 3. Enlaces del menú principal en BLANCO */
.site-header.header-colored .main-nav>ul>li>a,
.site-header.header-colored .dropdown-btn {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

/* Hover en el menú principal */
.site-header.header-colored .main-nav>ul>li>a:hover,
.site-header.header-colored .dropdown-btn:hover {
    color: #ffffff;
    font-weight: 600;
}

/* ===== CORRECCIÓN DEFINITIVA: SELECTOR GHOST ===== */

/* 1. IMPORTANTE: Al contenedor principal le quitamos el fondo blanco */
.site-header.header-colored .branch-selector-wrapper {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* 2. Estilo del BOTÓN interno (Transparente con borde) */
.site-header.header-colored .selected-display {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white !important;
    border-radius: 30px;
}

/* 3. Efecto Hover */
.site-header.header-colored .selected-display:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
}

/* 4. Flecha blanca */
.site-header.header-colored .selected-display::after {
    border-top-color: #ffffff;
}

/* 5. La lista desplegable (BLANCA para leerse bien) */
.site-header.header-colored .custom-options {
    background-color: #ffffff;
    color: var(--text-main);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
}

/* Color de las opciones dentro de la lista */
.site-header.header-colored .custom-options li {
    color: #333 !important;
}

.site-header.header-colored .custom-options li:hover {
    color: var(--color-primary) !important;
    background-color: #f0f9fa;
}

/* --- ARREGLO 2: MENÚ DESPLEGABLE (DROPDOWN) --- */
/* Forzamos que los enlaces DENTRO del dropdown sean oscuros siempre */
.site-header.header-colored .dropdown-menu a {
    color: var(--text-main) !important;
    /* Color gris oscuro */
    font-weight: 400;
}

.site-header.header-colored .dropdown-menu a:hover {
    color: var(--color-primary) !important;
    /* Verde al pasar el mouse */
    background-color: #f0f9fa;
}

/* Menú hamburguesa blanco */
.site-header.header-colored .menu-toggle span {
    background-color: white;
}

/* ===== Layout "Encajonado" para Páginas Internas ===== */

/* Esto transforma el <main> en una columna central definida */
.page-content {
    max-width: var(--container-width);
    margin: 0 auto;
    background-color: #ffffff;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    min-height: 80vh;
    padding-bottom: 40px;
}

/* Ajuste para Móviles (Celulares) */
@media (max-width: 768px) {
    .page-content {
        border: none;
        box-shadow: none;
        background-color: transparent;
        width: 100%;
    }
}

/* ===== AJUSTE PARA DOS TARJETAS EN EL INDEX ===== */

.cards-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
   
}

/* Hacemos que las tarjetas compartan el espacio */
.cards-wrapper .info-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ajuste para celular: que vuelvan a ser una sola columna */
@media (max-width: 768px) {
    .cards-wrapper .info-card {
        width: 100%;
        margin-bottom: 20px;
    }
}


/* ===== CORRECCIÓN DE ESPACIADO: SERVICIOS ===== */

.services {
    margin-top: 120px;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .services {
        margin-top: 60px;
        padding-bottom: 40px;
    }
}