/* ==========================================================================
   INTEGRACIÓN DE FUENTES (Google Fonts)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Vidaloka&display=swap');

/* ==========================================================================
   VARIABLES GLOBALES (Edita aquí tus colores finales)
   ========================================================================== */
:root {
    --color-primary: #8A2432;
    /* Guinda institucional del logo y top-bar */
    --color-text-dark: #333333;
    /* Color de textos principales */
    --color-text-muted: #706f6f;
    /* Gris de los textos del menú y etiquetas */
    --color-bg-light: #F7F2E7;
    /* Fondo crema muy suave para la página */
    --color-white: #ffffff;
    --color-gray-pill: #e8e8e8;
    /* Color gris claro del contenedor Bolt */
}

/* ==========================================================================
   ESTILOS BASE / RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    /* <-- Cambiado a Lato para todo el texto base */
    background-color: #ffffff;
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Aplicación global para títulos */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Vidaloka', serif;
    /* <-- Cambiado a Vidaloka */
    font-weight: 400;
    /* Vidaloka tiene un solo peso nativo */
}

.page-wrapper {
    /* 1. Definimos el ancho máximo que ocupará la página web */
    max-width: 100%;

    /* 2. El truco clave: Centra la página y le da el "respiro" a los lados */
    margin: 20px auto;

    /* 3. Color de fondo base de tus secciones (crema muy claro) */
    background-color: #fcf9f6;

    /* 4. Opcional: Una sombra muy elegante y sutil en los bordes exteriores */
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);

    /* Asegura que nada se desborde de las esquinas */
    overflow: hidden;
}

/* ==========================================================================
   1. HEADER & NAVBAR
   ========================================================================== */
/* Ajuste para que el Header fijo (Sticky) se mantenga dentro de la caja */
.main-header {
    position: sticky;
    top: 0;
    max-width: 100%;
    width: 100%;
    z-index: 1000;
}

.top-bar {
    width: 100%;
    height: 35px;
    background-color: var(--color-primary);
}

.header-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo-img {
    height: 75px;
    display: block;
}

.brand-text label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 500;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* ==========================================================================
   2. HERO SLIDER (Desvanecimiento fluido)
   ========================================================================== */
.hero-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-badge {
    position: absolute;
    bottom: 12%;
    left: 5%;
    background-color: #50171E;
    color: var(--color-white);
    padding: 30px 80px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
    opacity: 0.7;
}

.hero-badge h1 {
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.hero-badge p {
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Controles manuales del slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.4);
    color: var(--color-primary);
    border: none;
    font-size: 1.5rem;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 20;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.prev-btn {
    left: 2%;
}

.next-btn {
    right: 2%;
}

.hero-slider-section .slider-dots {
    position: relative;
    /* Cambia de absoluto a relativo para que se ponga abajo */
    bottom: auto;
    /* Resetea la posición previa */
    left: auto;
    /* Resetea la posición previa */
    transform: none;
    /* Quita el centrado forzado absoluto */
    display: flex;
    justify-content: center;
    /* Los centra horizontalmente de forma perfecta */
    gap: 10px;
    margin-top: 20px;
    /* Espaciado elegante justo abajo de la imagen */
    width: 100%;
    z-index: 20;
}

/* Estilo para los círculos del Hero */
.hero-slider-section .dot {
    width: 10px;
    height: 10px;
    background-color: #cccccc;
    /* Gris claro cuando no están activos */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Círculo activo (Color guinda/pink institucional) */
.hero-slider-section .dot.active,
.hero-slider-section .dot:hover {
    background-color: var(--color-primary, #751f29);
}

/* ==========================================================================
   3. CALL TO ACTION (Botones de Evento)
   ========================================================================== */
.cta-events-section {
    background-image: url('../images/especiales.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 50px;
    padding: 120px 100px;
    text-align: left;
}

.cta-container h2 {
    font-size: 3rem;
    color: #57443E;
    font-weight: 400;
    margin-bottom: 30px;
}

.italic-text {
    font-style: italic;
}

.cta-buttons {
    display: flex;
    justify-content: left;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==========================================================================
   ESTILOS DE BOTONES TIPO PILL (Pastilla)
   ========================================================================== */
.btn {
    padding: 14px 40px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--color-white, #ffffff);
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #9c787c;
}

.btn-primary:hover {
    background-color: #8a6569;
}

.btn-secondary {
    background-color: #751f29;
}

.btn-secondary:hover {
    background-color: #5c1820;
}

/* ==========================================================================
   4. LOS FAVORITOS
   ========================================================================== */
.favorites-section {
    background-color: #B48B92;
    padding: 80px 40px;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.product-card {
    background: none;
    padding: 0;
    text-align: center;
    box-shadow: none;
}

.product-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 45px;
    margin-bottom: 25px;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card h3 {
    font-size: 0.85rem;
    color: #ffffff;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
}

@media (max-width: 1480px) {
    .page-wrapper {
        margin: 0 auto;
        box-shadow: none;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .favorites-section {
        padding: 60px 20px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-img-wrapper {
        border-radius: 30px;
    }
}

.product-img-wrapper img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* ==========================================================================
   6. ABOUT SECTION
   ========================================================================== */
.about-section {
    background-color: #F7F2E7;
    padding: 80px 40px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-main-title {
    text-align: center;
    font-size: 3.2rem;
    color: #5a4034;
    margin-bottom: 60px;
}

.about-content-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about-image-column {
    flex: 1;
    min-width: 300px;
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.about-text-column {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.about-text-column h2 {
    font-size: 1.8rem;
    color: #8c7365;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 20px;
    color: #706f6f;
    font-size: 0.95rem;
    line-height: 1.7;
}

.about-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .about-content-layout {
        flex-direction: column;
        gap: 40px;
    }

    .about-main-title {
        font-size: 2.3rem;
        margin-bottom: 40px;
    }

    .about-text-column {
        text-align: center;
    }

    .about-section {
        padding: 50px 20px;
    }
}

/* ==========================================================================
   7. SERVICIO A DOMICILIO
   ========================================================================== */
.delivery-section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    background-color: #fcf9f6;
}

.delivery-container {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.delivery-title {
    font-size: 2.8rem;
    color: #5a4034;
    margin-bottom: 40px;
}

.delivery-pill {
    background-color: #e5e5e5;
    padding: 50px 70px;
    border-radius: 100px;
}

.delivery-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.delivery-steps-wrapper {
    flex: 1.2;
    min-width: 320px;
    text-align: left;
}

.steps-list {
    list-style: none;
    counter-reset: steps-counter;
    padding-left: 0;
    margin-bottom: 25px;
}

.steps-list li {
    counter-increment: steps-counter;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: #6a6969;
}

.steps-list a {
    color: #6a6969;
    text-decoration: underline;
}

.steps-list li::before {
    content: counter(steps-counter);
    background-color: #a47c82;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.delivery-cost-note {
    font-size: 0.85rem;
    font-style: italic;
    color: #888888;
    padding-left: 41px;
}

.bolt-brand {
    flex: 0.5;
    display: flex;
    justify-content: center;
    min-width: 120px;
}

.bolt-brand img {
    height: 70px;
    width: auto;
    display: block;
}

.delivery-map-illustration {
    flex: 1.3;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

.delivery-map-illustration img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 992px) {
    .delivery-pill {
        border-radius: 40px;
        padding: 40px 30px;
    }

    .delivery-layout {
        flex-direction: column;
        gap: 35px;
    }

    .delivery-steps-wrapper {
        width: 100%;
    }

    .delivery-title {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   8. MAIN FOOTER
   ========================================================================== */
.main-footer {
    background-color: #751f29;
    color: #ffffff;
    padding: 60px 40px 30px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-column-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: left;
}

.footer-label {
    font-size: 0.9rem;
    line-height: 1.4;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    color: #f5e9ea;
}

.footer-icons-row {
    display: flex;
    gap: 18px;
}

.footer-icons-row a {
    color: #ffffff;
    font-size: 1.4rem;
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.footer-icons-row a:hover {
    transform: scale(1.1);
    color: #e5e5e5;
}

.footer-column-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    max-width: 210px;
    height: auto;
    display: block;
}

.footer-column-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.footer-nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.footer-nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.footer-nav-links a:hover {
    color: #b08388;
}

.footer-whatsapp-direct {
    margin-top: 5px;
}

.wa-action-btn img {
    width: 48px;
    height: 48px;
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-action-btn:hover img {
    transform: scale(1.12);
}

.footer-base-line {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
}

.privacy-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .footer-grid-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }

    .footer-column-left,
    .footer-column-right {
        align-items: center;
        text-align: center;
    }

    .footer-icons-row {
        justify-content: center;
    }

    .footer-nav-links {
        align-items: center;
    }
}

/* ==========================================================================
   DISEÑO RESPONSIVO CORREGIDO
   ========================================================================== */
@media (max-width: 992px) {
    .header-container {
        padding: 10px 20px;
    }

    .brand-text {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        z-index: 999;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        text-align: center;
    }

    .slider-container {
        min-height: 250px;
    }

    .slide img {
        height: 300px;
        object-fit: cover;
    }

    .hero-badge {
        position: relative;
        left: 0;
        bottom: 0;
        width: 100%;
        text-align: center;
        box-shadow: none;
        padding: 25px 20px;
    }

    .hero-badge h1 {
        font-size: 1.8rem;
    }

    .slider-dots {
        bottom: 140px;
    }

    .cta-events-section {
        padding: 80px 20px;
        text-align: center;
    }

    .cta-container h2 {
        font-size: 2.2rem;
    }

    .cta-buttons {
        justify-content: center;
    }
}

/* ==========================================================================
   OPTIMIZACIÓN PARA CELULARES
   ========================================================================== */
@media (max-width: 576px) {
    .delivery-pill {
        border-radius: 25px !important;
        padding: 30px 15px !important;
    }

    .delivery-title {
        font-size: 1.8rem;
    }

    .steps-list li {
        font-size: 0.9rem;
    }

    .about-main-title {
        font-size: 1.9rem;
    }

    .about-text-column h2 {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   5. SECCIÓN GALERÍA DE REPOSTERÍA
   ========================================================================== */
.bakery-gallery-section {
    background-color: #fcf9f6;
    padding: 60px 40px;
}

.bakery-main-title {
    text-align: center;
    font-size: 2.8rem;
    color: #a38289;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 50px;
}

.bakery-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.bakery-card {
    background-color: #ffffff;
    border-radius: 0px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
}

.bakery-img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.bakery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bakery-info {
    padding: 30px 25px 25px 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bakery-card-title {
    font-size: 1.8rem;
    color: #a38289;
    margin: 0 0 15px 0;
}

.bakery-card-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

.bakery-btn-options {
    width: 100%;
    background-color: #b58d94;
    color: #ffffff;
    border: none;
    padding: 16px 0;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.bakery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(163, 130, 137, 0.12);
}

.bakery-btn-options:hover {
    background-color: #9c737b;
}

@media (max-width: 992px) {
    .bakery-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .bakery-products-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .bakery-main-title {
        font-size: 2.2rem;
    }
}

/* ==========================================================================
   6. SECCIÓN SUCURSALES
   ========================================================================== */
.branches-section {
    background-color: #fcf9f6;
    padding: 60px 0 0 0;
}

.branches-title {
    text-align: center;
    font-size: 2.8rem;
    color: #a38289;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
}

.branches-split-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    border-top: 1px solid #fcf9f6;
    align-items: stretch;
}

.branches-list-panel {
    background-color: #fcf9f6;
    border-right: 1px solid #a38289;
    padding: 10px 0;

    /* NUEVOS AJUSTES PARA SOPORTAR MUCHAS SUCURSALES */
    max-height: 650px;
    /* Ajusta este número según el alto que tenga tu mapa (iframe) */
    overflow-y: auto;
    /* Crea un scrollbar vertical automático solo cuando sea necesario */
}

.branch-item-card {
    padding: 24px;
    border-bottom: 1px solid #a38289;
    transition: background-color 0.2s ease;
}

.branch-item-card:hover {
    background-color: #faf8f8;
}

.branch-name {
    font-size: 1.5rem;
    color: #B48B92;
    vertical-align: middle;
    /* Pequeño ajuste visual */
    font-weight: 600;
    margin: 0 0 4px 0;
    font-family: 'Lato', sans-serif;

}

/* Calificaciones (Estrellas) - Mantenemos tipografía base legible */
.branch-rating {
    font-size: 0.85rem;
    color: #e3a008;
    margin-bottom: 10px;
}

.branch-detail {
    font-size: 0.9rem;
    color: #707070;
    margin: 0 0 6px 0;
}

.branch-status {
    font-size: 0.88rem;
    color: #666666;
    margin: 0 0 6px 0;
}

.status-open {
    color: #0e623b;
    font-weight: 600;
}

.branch-services {
    font-size: 0.85rem;
    color: #888888;
    margin: 0 0 16px 0;
}

.branch-actions {
    display: flex;
    gap: 12px;
}

.branch-btn {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: #a38289;
    border: 1px solid #e0d5d7;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.branch-btn .map-icon {
    margin-right: 6px;
    font-style: normal;
}

.branch-btn:hover {
    background-color: #fcf9f9;
    border-color: #a38289;
}

.branch-btn.accent {
    background-color: #b58d94;
    color: #ffffff;
    border-color: #b58d94;
}

.branch-btn.accent:hover {
    background-color: #9c737b;
}

.branches-map-panel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #e5e3df;
}

.branches-map-panel iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 65px);
    margin-top: -65px;
    border: 0;
}

@media (max-width: 868px) {
    .branches-split-layout {
        grid-template-columns: 1fr;
    }

    .branches-map-panel {
        height: 400px;
    }
}

/* ==========================================================================
   7. MODAL DE DETALLE DE PRODUCTO
   ========================================================================== */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content-wrapper {
    position: relative;
    background-color: #ffffff;
    width: 90%;
    max-width: 960px;
    height: auto;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2001;
    overflow-y: auto;
    padding: 40px;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #a38289;
}

.modal-body-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.modal-gallery-side {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    /* <-- Crucial: Esto evita que las imágenes extra empujen el texto */
    position: relative;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 100%;
}

.slider-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
}

.slider-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #cccccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dot.active {
    background-color: #9c737b;
}

.modal-info-side {
    padding-top: 20px;
}

.modal-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888888;
    display: block;
    margin-bottom: 5px;
}

.modal-title {
    font-size: 2.6rem;
    color: #9c737b;
    margin: 0 0 30px 0;
    font-weight: 500;
}

.modal-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 40px;
}

.modal-size-section h3 {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #333333;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-size-section p {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 40px;
}

.modal-price-bar {
    background-color: #b58d94;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-size: 0.9rem;
}

.price-value {
    font-weight: 600;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .modal-body-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content-wrapper {
        padding: 20px;
        width: 95%;
    }

    .modal-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
}

.modal-gallery-side .slider-container-modal {
    width: 100%;
    overflow: hidden;
    /* <-- Esconde las imágenes que están en fila esperando su turno */
}

/* ==========================================================================
   AJUSTE DE LOS PUNTOS DEL MODAL (FUERA DE LA IMAGEN)
   ========================================================================== */

/* Rompemos el posicionamiento absoluto solo para los puntos dentro del modal */
.modal-gallery-side .slider-dots {
    position: relative;
    /* Permite que se coloque de forma natural abajo del contenedor */
    bottom: auto;
    /* Resetea el valor del slider principal */
    left: auto;
    /* Resetea el valor del slider principal */
    transform: none;
    /* Quita el truco de centrado absoluto */
    display: flex;
    justify-content: center;
    /* Los centra horizontalmente de forma limpia */
    gap: 8px;
    margin-top: 20px;
    /* Crea el espacio perfecto de separación abajo de la foto */
    width: 100%;
}

/* Asegura el diseño de los círculos internos en el modal */
.modal-gallery-side .dot {
    width: 8px;
    height: 8px;
    background-color: #cccccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-gallery-side .dot.active {
    background-color: #9c737b;
    /* Tu color de énfasis para el modal */
}

/* Botón Flotante WhatsApp Moderno */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background: #20ba5a;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.5;
    z-index: -1;
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@media (max-width: 920px) {
    .whatsapp-float {
        bottom: 85px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

/* Globito de texto (Tooltip) */
.wa-tooltip {
    position: fixed;
    bottom: 38px;
    right: 95px;
    background: white;
    color: #333;
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 101;
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.wa-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-10px);
}

@media (max-width: 920px) {
    .wa-tooltip {
        bottom: 95px;
        right: 80px;
        font-size: 12px;
    }
}

/* ==========================================================================
   INTEGRACIÓN DE ICONOS EN LA NAVEGACIÓN
   ========================================================================== */
.main-nav a {
    text-decoration: none;
    color: var(--color-text-muted);
    /* #706f6f */
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;

    /* TRUCO CLAVE: Alineación perfecta */
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    gap: 8px;
    /* Controla la separación exacta entre el icono y la palabra */
}

/* Estilización específica del icono */
.main-nav .nav-icon {
    font-size: 0.8rem;
    /* Ligeramente mayor o igual al texto para no competir */
    opacity: 0.7;
    /* Lo suaviza un poco para que el texto siga siendo el rey */
    transition: transform 0.2s ease;
}

/* Efecto sutil interactivo al pasar el cursor */
.main-nav a:hover .nav-icon {
    transform: translateY(-1px);
    /* Un pequeño salto elegante */
    opacity: 1;
}

/* ==========================================================================
   VISTA DE SUCURSALES EN DOS COLUMNAS (REPLICA)
   ========================================================================== */
.sucursales-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Divide en 2 columnas exactas */
    gap: 0 80px;
    /* Separación horizontal generosa entre columnas */
    max-width: 900px;
    /* Ancho ideal para centrar el bloque */
    margin: 40px auto;
    padding: 0 20px;
}

.sucursales-col {
    display: flex;
    flex-direction: column;
}

.sucursal-item {
    padding: 12px 0;
    border-bottom: 1px solid #dcd1d3;
    /* Línea delgada sutil abajo de cada bloque */
    margin-bottom: 15px;
    /* Espacio entre cada sucursal */
    text-align: left;
}

/* Título con Serif elegante (Color Malva/Rosa viejo institucional) */
.sucursal-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    color: #a38289;
    /* Tono suave de tus títulos principales */
    font-weight: 500;
    margin: 0 0 4px 0;
    letter-spacing: 0.3px;
}

/* Teléfono en un gris oscuro/organico */
.sucursal-phone {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.25rem;
    color: #707070;
    font-weight: bold;
    display: block;
    text-decoration: none;
}

/* ==========================================================================
   RESPONSIVO MÓVIL
   ========================================================================== */
@media (max-width: 768px) {
    .sucursales-grid-container {
        grid-template-columns: 1fr;
        /* En celulares pasa a una sola columna */
        gap: 0;
    }
}

/* 1. El contenedor padre debe ser RELATIVE */
.contenedor-imagen {
    position: relative;
    width: 100%;
    /* O el ancho que desees que tenga */
    max-width: 100%;
    /* Ajusta según tu diseño */
    overflow: hidden;
    /* Evita que nada se salga del contenedor */
}

/* 2. La imagen debe ocupar el ancho de su contenedor */
.contenedor-imagen img {
    width: 100%;
    height: auto;
    display: block;
    /* Quita espacios en blanco extraños debajo de la imagen */
}

/* 3. La capa de texto debe ser ABSOLUTE */
.contenedor-imagen .capa-texto {
    position: absolute;
    top: 25%;
    /* Empuja el texto al centro vertical */
    left: 50%;
    /* Empuja el texto al centro horizontal */
    transform: translate(-50%, -50%);
    /* Ajuste perfecto para centrar los ejes */

    color: #ffffff;
    /* Color del texto (blanco para que contraste) */
    text-align: center;
    width: 90%;
    /* Evita que el texto toque los bordes en pantallas chicas */

    /* OPCIONAL: Un fondo sutil semi-transparente o sombra para asegurar legibilidad */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

@media (max-width: 992px) {

    /* 1. Nos aseguramos de que el contenedor del contenido no oculte elementos desbordados */
    .modal-content-wrapper {
        position: relative;
        overflow: visible !important;
        /* Permite que el botón flote libremente si es necesario */
        max-height: 90vh;
        /* Evita que el modal sea más alto que la pantalla móvil */
        overflow-y: auto;
        /* Permite hacer scroll interno si el texto es largo */
    }

    /* 2. Reposicionamos y fijamos la X para pantallas táctiles */
    .modal-close-btn {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 24px;
        background: rgba(255, 255, 255, 0.95);
        /* Más sólido en móvil para que contraste con las fotos */
        box-shadow: 0 4px 12px rgba(6, 36, 74, 0.15);
        /* Sombra un poco más marcada */
        z-index: 99;
        /* Forzamos a que esté por encima de cualquier slider móvil */
    }
}

/* ==========================================================================
   NUEVOS ESTILOS PARA LAS FLECHAS DEL MODAL (CORREGIDO)
   ========================================================================== */

/* Asegurar que el contenedor del slider sea el eje de referencia */
.modal-gallery-side .slider-container {
    position: relative;
    width: 100%;
}

/* Estilo base premium para los botones de navegación */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.75);
    /* Fondo blanco traslúcido sutil */
    color: #9c737b;
    /* El tono malva/guinda de tus títulos */
    border: none;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    /* Círculo perfecto */
    display: none;
    /* El JS se encargará de cambiarlo a flex si hay > 1 imagen */
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Sombra suave para dar volumen */
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

/* Efecto hover elegante */
.modal-nav-btn:hover {
    background-color: #b58d94;
    /* Color de tu barra de precio */
    color: #ffffff;
    transform: translateY(-50%) scale(1.05);
    /* Mantiene el centrado y agranda sutilmente */
}

/* Posicionamiento exacto a los costados internos de la imagen */
.modal-nav-btn.prev {
    left: 15px;
}

.modal-nav-btn.next {
    right: 15px;
}

/* Adaptación fina para pantallas móviles */
@media (max-width: 768px) {
    .modal-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        background-color: rgba(255, 255, 255, 0.85);
        /* Más visible en pantallas táctiles */
    }

    .modal-nav-btn.prev {
        left: 10px;
    }

    .modal-nav-btn.next {
        right: 10px;
    }
}

/* ==========================================================================
   DESACTIVAR AZUL DE SAFARI EN NÚMEROS TELEFÓNICOS
   ========================================================================== */

/* Fuerza a que cualquier teléfono detectado mantenga el color de su contenedor o un color oscuro */
a[href^="tel:"],
a[href^="tel:*"],
a[href^="tel:"]:hover,
a[href^="tel:"]:active,
a[href^="tel:"]:focus {
    color: #9c737b !important; /* <--- Pon aquí el color guinda/malva de tus títulos, o #000000 si los quieres negros */
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Por si acaso Safari los mete dentro de elementos con otras clases */
span[class^="tel"], 
a[x-apple-data-detectors] {
    color: inherit !important;
    text-decoration: none !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

/* ==========================================================================
   TARJETA DE SERVICIO A DOMICILIO RESPONSIVA (CORREGIDO SIN SOMBRA)
   ========================================================================== */

.contenedor-imagen {
    position: relative;
    width: 100%;
    height: 240px; /* Altura ideal en móviles */
    overflow: hidden;
    border-radius: 8px; /* Bordes redondeados sutiles */
    box-sizing: border-box;
    
    /* --- NUEVAS LÍNEAS AGREGADAS --- */
    -webkit-tap-highlight-color: transparent; /* Quita el destello de Safari al tocar */
    box-shadow: none !important;             /* Asegura que no haya sombras no deseadas */
    outline: none !important;                /* Quita cualquier borde de enfoque de Android */
}

/* El resto del código que ya tenías para la imagen y el hover */
.contenedor-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease; /* Pequeño zoom al hover, opcional */
}

.contenedor-imagen:hover img {
    transform: scale(1.03); /* Zoom sutil opcional al hover */
}

.capa-texto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.branches-title {
    text-align: center;
    font-size: 1.8rem; /* Tamaño de letra adaptado a celulares */
    margin: 0;
}

/* ==========================================================================
   PANTALLAS GRANDES (Tablets y Escritorio - 768px o más)
   ========================================================================== */
@media (min-width: 768px) {
    .contenedor-imagen {
        height: 400px; /* Mayor impacto visual en escritorio */
    }

    .branches-title {
        font-size: 2.6rem; /* Título más imponente */
    }
}

/* ==========================================================================
   MODAL ELEGANTE DE AVISO DE PRIVACIDAD
   ========================================================================== */

.privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000; /* Por encima de todo, incluyendo el header */
    display: none; /* Controlado por JS */
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.privacy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 30, 32, 0.6); /* Fondo oscuro traslúcido sutil cálido */
    backdrop-filter: blur(4px); /* Suavizado de fondo de alta gama */
}

.privacy-modal-wrapper {
    position: relative;
    width: 90%;
    max-width: 650px;
    height: 80vh; /* Se adapta elegantemente a pantallas verticales */
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    animation: fadeInPrivacy 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}

/* Botón elegante de cerrar */
.privacy-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #9c737b; /* Tonalidad guinda Kane */
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease, transform 0.2s ease;
}

.privacy-close-btn:hover {
    color: #715056;
    transform: scale(1.1);
}

/* Cuerpo interno con Scroll */
.privacy-modal-body {
    padding: 40px 30px;
    overflow-y: auto;
    color: #4a3e40; /* Texto oscuro suave, evita el negro puro rígido */
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Estilos de los textos */
.privacy-modal-body h1 {
    font-family: 'VidaLoka', 'Playfair Display', serif; /* Tu tipografía fina para títulos */
    color: #9c737b;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #f2e9ea;
    padding-bottom: 10px;
}

.privacy-modal-body h2 {
    font-size: 1.15rem;
    color: #9c737b;
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 600;
}

.privacy-modal-body p {
    margin-bottom: 15px;
}

.privacy-modal-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.privacy-modal-body li {
    margin-bottom: 8px;
}

.privacy-modal-body a {
    color: #9c737b;
    text-decoration: underline;
    font-weight: 500;
}

.privacy-modal-body a:hover {
    color: #715056;
}

.privacy-intro {
    font-size: 1rem;
    background-color: #faf6f6; /* Destacado sutil del inicio */
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #9c737b;
}

.privacy-update {
    margin-top: 35px;
    font-size: 0.85rem;
    color: #8c7e80;
    border-top: 1px solid #f2e9ea;
    padding-top: 15px;
}

/* Animación de entrada */
@keyframes fadeInPrivacy {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Soporte móvil */
@media (max-width: 480px) {
    .privacy-modal-body {
        padding: 30px 20px;
    }
    .privacy-modal-body h1 {
        font-size: 1.5rem;
    }
}

.branch-distance {
    color: #9c737b; /* El guinda elegante de Kane */
    font-weight: 500;
    background-color: #faf6f6;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* ========================================================
   ORDEN RESPONSIVO DE SUCURSALES (MAPA PRIMERO EN MÓVIL)
   ======================================================== */
@media (max-width: 767.98px) {
    /* Forzamos a que el layout se vuelva una sola columna vertical */
    .branches-split-layout.branches-map-first {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Mandamos el mapa a la posición 1 (Arriba) */
    .branches-split-layout.branches-map-first .map-slot {
        order: 1 !important;
        width: 100% !important;
        height: 350px !important; /* Ajusta la altura que prefieras para el mapa en celular */
        margin-bottom: 20px !important; /* Separación con el buscador/tarjetas de abajo */
    }

    /* Mandamos la lista a la posición 2 (Abajo) */
    .branches-split-layout.branches-map-first .list-slot {
        order: 2 !important;
        width: 100% !important;
    }
}