/* ==================== CONFIGURACIÓN GENERAL ==================== */
:root {
    --color-bg: #FFF5F0;
    --color-gold: #C19A5B;
    --color-gold-hover: #a8854b;
    --color-text-dark: #4A4A4A;
    --color-text-light: #7a7a7a;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== NAVBAR ==================== */
header {
    padding: 10px 0 30px 0;
    background-color: transparent;
    position: relative;
    z-index: 10;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 100px; /* Tamaño del logo en computadora */
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Si tu imagen ya es redonda o no quieres borde, quita estas 2 líneas: */
    border-radius: 50%; 
    border: none; /* Quitamos el borde dorado antiguo para que luzca la imagen */
    
    overflow: hidden; /* Asegura que la imagen no se salga */
    padding: 0;
    margin: 0;
}

.logo img {
    width: 150%;
    height: 150%;
    object-fit: contain; /* Ajusta la imagen sin recortarla */
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-sans);
    color: #5e5c5c;
    font-size: 1.2rem;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--color-gold);
    font-weight: 700;
}

/* ==================== HERO SECTION ==================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0 100px 0;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 800px;
}

h1 {
    font-family: var(--font-serif);
    color: var(--color-gold);
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.subtitle {
    font-family: var(--font-serif);
    color: #9e8361;
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.description {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ==================== BOTONES ==================== */
.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background-color: var(--color-gold);
    color: white;
    border: 2px solid var(--color-gold);
    box-shadow: 0 4px 15px rgba(193, 154, 91, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
    transform: translateY(-2px);
}

/* ==================== HERO IMAGE ==================== */
.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.image-frame {
    background: white;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
    max-width: 100%;
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

.pattern-deco {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    border-right: 2px solid var(--color-gold);
    border-bottom: 2px solid var(--color-gold);
    z-index: 1;
    opacity: 0.5;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        var(--color-gold) 10px,
        var(--color-gold) 11px
    );
}

/* ==================== GUARANTEES SECTION ==================== */
.guarantees {
    background-color: #ffffff;
    padding: 30px 0;
    width: 100%;
    box-shadow: 0 5px 20px rgba(193, 154, 91, 0.1);
    margin-bottom: 50px;
}

.guarantees-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.guarantee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}

.g-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.g-text {
    font-family: var(--font-sans);
    color: var(--color-gold);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== PRODUCTS SECTION ==================== */
.products-section {
    padding: 50px 20px;
    text-align: center;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.section-title {
    font-family: var(--font-serif);
    color: var(--color-gold);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

#ofertas-exclusivas .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* ==================== PRODUCT CARDS ==================== */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 2px solid var(--color-gold);
}

.product-card:hover {
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.card-image:hover img {
    transform: scale(1.05);
}

.tag, .discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-gold);
    color: white;
    padding: 5px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.card-info {
    padding: 20px;
    text-align: center;
}

.card-info h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.card-info .price {
    color: var(--color-gold);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.btn-whatsapp-card {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-gold);
    color: white;
    border: 1px solid var(--color-gold);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
    margin-top: 10px;
    text-align: center
}

.btn-whatsapp-card:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
    transform: translateY(-2px);
    text-align: center
}

/* ==================== PRICE STYLES ==================== */
.price-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-new {
    color: var(--color-gold);
    font-weight: 700;
    font-size: 1.2rem;
}

.price-old {
    color: #999;
    font-size: 0.9rem;
    text-decoration: line-through;
    font-weight: 400;
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    position: relative;
    border: 3px solid var(--color-gold);
    animation: slideDown 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

@keyframes slideDown {
    from {
        top: -50px;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 10;
}

.close-btn:hover {
    color: black;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-images {
    flex: 1;
    min-width: 300px;
    position: relative;
    height: 400px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-gold);
    border-radius: 50%;
    transition: 0.3s;
}

.nav-btn:hover {
    background: white;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.modal-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-price {
    font-size: 1.5rem;
    color: var(--color-gold);
    font-weight: bold;
    margin-bottom: 20px;
}

.modal-desc {
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ==================== FLASH SALE SECTION ==================== */
.flash-sale-section {
    background-color: var(--color-gold); 
    color: white;
    padding: 60px 20px;
    
    /* ESTA ES LA LÍNEA MÁGICA: */
    text-align: center; 
    
    margin-top: 50px;
    display: flex;             /* OPCIONAL: Ayuda a centrar verticalmente */
    flex-direction: column;    /* OPCIONAL: Apila los elementos */
    align-items: center;       /* OPCIONAL: Centra horizontalmente los hijos (como el botón) */
}

/* TÍTULO ESPECÍFICO */
.sale-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
    
    /* ASEGURA EL CENTRADO DEL TEXTO: */
    text-align: center; 
    width: 100%; /* Ocupa todo el ancho disponible */
}
.sale-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #fff5f0;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-family: var(--font-serif);
}

.time-box {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 10px;
    border: 2px solid white;
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.time-box span {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.time-box .label {
    font-size: 0.8rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    margin-top: 5px;
}

.separator {
    font-size: 3rem;
    font-weight: bold;
    margin-top: -20px;
}

.floating-offer:hover {
    transform: scale(1.05);
}

/* ==================== SPECIAL TOUCH SECTION ==================== */
.special-touch {
    padding: 30px 20px;
}

.special-box {
    background-color: #FDF8F5;
    border: 2px solid var(--color-gold);
    border-radius: 30px;
    padding: 30px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(193, 154, 91, 0.1);
}

.special-title {
    font-family: var(--font-serif);
    color: var(--color-gold);
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.special-subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.special-grid {
    display: flex;
    justify-content: center;
}

.special-item {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.special-img {
    width: 200px;
    height: auto;
    margin-bottom: 10px;
    display: block;
}

.special-item h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #4a4a4a;
    margin-bottom: 15px;
}

.special-item p {
    color: #777;
    font-size: 0.95rem;
    max-width: 300px;
    margin-bottom: 0;
}

/* ==================== PAGE HEADER (Internal Pages) ==================== */
.page-header {
    text-align: center;
    padding: 40px 20px 20px;
    background: linear-gradient(to bottom, #ffffff 0%, #FFF5F0 100%);
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(193, 154, 91, 0.1);
    padding-bottom: 20px !important;
}

.page-header h1 {
    font-family: var(--font-serif);
    color: var(--color-gold);
    font-size: 3.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    animation: fadeInUp 0.8s ease;
}

.page-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
    margin: 10px auto 0;
    border-radius: 2px;
}

.page-header p {
    color: #666;
    max-width: 700px;
    margin: 0 auto 25px !important;
    font-size: 1.1rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== FILTERS & TAGS ==================== */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    margin-top: 10px !important;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--color-gold);
    background: transparent;
    color: var(--color-gold);
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 700;
    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-gold);
    color: white;
}

.tags-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.static-tag {
    padding: 8px 20px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #666;
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    cursor: default;
}

/* ==================== FOOTER ==================== */
footer {
    background-color: #FDF8F5;
    color: #555;
    border-top: 5px solid var(--color-gold);
    margin-top: 80px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 100px;
    flex-wrap: wrap;
    padding: 50px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
    min-width: 260px;
    padding: 20px 10px;
}

.footer-column:nth-child(2) {
    margin-left: 110px;
}

.footer-title {
    font-family: var(--font-serif);
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-gold);
    display: inline-block;
}

.footer-column:first-child p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    line-height: 1.7;
    color: #666;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 18px;
}

.footer-links a {
    text-decoration: none;
    color: #555;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--color-gold);
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: var(--color-gold);
    font-weight: 600;
}

.social-icons {
    margin-top: 25px;
    display: flex;
    gap: 35px;
    justify-content: flex-start;
}

.social-icons a {
    font-size: 2.6rem;
    color: var(--color-gold);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-6px);
    color: var(--color-gold-hover);
}

.footer-bottom {
    background-color: var(--color-gold);
    padding: 18px;
    text-align: center;
    color: white;
    font-size: 0.92rem;
}

.footer-bottom p {
    margin: 0;
}

/* ==================== MOBILE MENU ==================== */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--color-gold);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 20px;
    }

    .hero-image-wrapper {
        justify-content: center;
        width: 100%;
    }

    .cta-group {
        justify-content: center;
    }

    nav {
        flex-direction: column;
        gap: 20px;
    }

    h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 868px) {
    .footer-main {
        gap: 40px;
        padding: 50px 5%;
    }

    .footer-column {
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    
    header {
        /* Fijamos la altura del header para evitar saltos */
        height: 80px; 
        padding: 0 20px;
        display: flex;
        align-items: center; /* Centrado vertical perfecto */
        position: relative;
        z-index: 1000;
    }

    nav {
        display: flex; 
        flex-direction: row; /* Fila horizontal obligatoria */
        justify-content: space-between; /* Empuja a los extremos */
        align-items: center; 
        width: 100%;
        height: 100%; /* Ocupa todo el alto del header */
    }

    /* 1. MENÚ HAMBURGUESA (Izquierda) */
    .menu-toggle {
        display: flex; /* Usar flex para centrar el ícono en su caja */
        align-items: center;
        font-size: 1.8rem;
        color: var(--color-gold);
        cursor: pointer;
        order: 1; /* Posición 1 */
        margin: 0;
        padding: 0;
    }

    /* 2. LOGO (Derecha) */
    .logo {
        order: 2;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        
        /* Tamaño en celular (más pequeño) */
        width: 90px; 
        height: 90px; 
        
        border: none; /* Sin borde */
        padding: 0;
    }
    
    .logo img {
        width: 125%;
        height: 125%;
        object-fit: contain;
    }

    /* 3. EL MENÚ DESPLEGABLE (Oculto) */
    .nav-links {
        position: absolute;
        top: 80px; /* Exactamente debajo del header */
        left: 0;
        width: 100%;
        background-color: #FFF9F5;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        border-bottom: 3px solid var(--color-gold);
        z-index: 999;
    }

    .nav-links.active {
        max-height: 400px; /* Espacio para los links */
        padding: 20px 0;
    }
    
    /* --- AJUSTES DE OTRAS SECCIONES EN MÓVIL --- */
    .guarantees-container { justify-content: center; }
    .guarantee-item { width: 45%; margin-bottom: 15px; }
    .modal-content { margin: auto; width: 95%; max-height: 85vh; }
    .modal-images { width: 100%; height: 200px; min-height: 200px; flex: none; }
    .main-footer { text-align: center; }
    .main-footer {
        text-align: center;
    }
    

    /* Selector para forzar el centrado en listas dentro del footer */
    .main-footer ul, 
    .main-footer .footer-links { /* Añado .footer-links por si usas esa clase común */
        padding: 0 !important;   /* Mata el padding izquierdo por defecto */
        margin: 0 auto;          /* Centra el contenedor si tiene ancho definido */
        list-style: none;        /* Quita viñetas si las hubiera */
        
        /* Flexbox para alineación absoluta */
        display: flex;
        flex-direction: column;
        align-items: center;     /* Esto es lo que alineará visualmente los textos */
    }

    .main-footer li {
        width: 100%;             /* Asegura que el li ocupe el ancho */
        margin-bottom: 8px;
    }
    
        /* Si estás usando enlaces <a> directos sin <ul>, usa esto: */
        .main-footer a {
            display: inline-block;
        }
        .footer-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    .footer-column {
        margin: 0 !important;
        padding: 0 !important;
    }
        
}
/* --- SECCIÓN QUIÉNES SOMOS --- */
.about-section {
    padding: 80px 20px;
    background-color: #FFF5F0; /* Fondo suave para separar secciones */
}

.about-grid {
    display: flex;
    align-items: center; /* Centra verticalmente texto y fotos */
    gap: 50px; /* Espacio entre el texto y el carrusel */
    max-width: 1100px;
    margin: 0 auto;
}

/* Columna de Texto */
.about-text {
    flex: 1; /* Ocupa el 50% */
    text-align: left; /* Pegado a la izquierda como pediste */
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-text strong {
    color: var(--color-gold);
}

/* Columna del Carrusel (La ventana) */
.about-slider {
    flex: 1; /* Ocupa el otro 50% */
    height: 400px; /* Altura de las fotos */
    border-radius: 20px;
    overflow: hidden; /* Esconde las fotos que no están en turno */
    box-shadow: 20px 20px 0px rgba(193, 154, 91, 0.15); /* Sombra decorativa */
    border: 3px solid white;
    position: relative;
}

/* El Riel que se mueve */
.slider-track {
    width: 500%; /* 5 fotos = 500% de ancho */
    height: 100%;
    display: flex;
    animation: slideShow 15s infinite; /* 15 segundos en total el ciclo */
}

.slide {
    width: 20%; /* Cada foto ocupa el 20% del riel (100/5) */
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la foto para que llene el hueco sin estirarse */
}

/* --- ANIMACIÓN DEL CARRUSEL (5 FOTOS) --- */
/* Pasa cada 3 segundos aprox (2s quieto + 1s movimiento) */
@keyframes slideShow {
    0% { margin-left: 0; }
    15% { margin-left: 0; } /* Pausa foto 1 */
    
    20% { margin-left: -100%; } /* Mueve a foto 2 */
    35% { margin-left: -100%; } /* Pausa foto 2 */
    
    40% { margin-left: -200%; } /* Mueve a foto 3 */
    55% { margin-left: -200%; } /* Pausa foto 3 */
    
    60% { margin-left: -300%; } /* Mueve a foto 4 */
    75% { margin-left: -300%; } /* Pausa foto 4 */
    
    80% { margin-left: -400%; } /* Mueve a foto 5 */
    95% { margin-left: -400%; } /* Pausa foto 5 */
    
    100% { margin-left: 0; } /* Vuelve al inicio */
}

/* --- RESPONSIVE (CELULAR) --- */
@media (max-width: 900px) {
    .about-grid {
        flex-direction: column; /* Pone el texto arriba y fotos abajo */
        text-align: center;
    }
    
    .about-text {
        text-align: center; /* En celular se ve mejor centrado */
    }
    
    .section-title {
        text-align: center !important; /* Fuerza centrado del título en móvil */
    }
    
    .about-slider {
        width: 100%;
        height: 300px; /* Un poco más bajito en celular */
    }
}
@media screen and (max-width: 600px) {
    
    .modal {
        padding: 0 !important;
        overflow: hidden !important;   /* evita scroll del body */
    }

    /* Contenedor que centra el modal → sigue fijo para que no se mueva */
    .modal-dialog {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        width: 100% !important;
        height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        pointer-events: none !important;     /* importante */
    }

    /* La tarjeta blanca del modal */
    .modal-content {
        pointer-events: auto !important;
        margin: 20px !important;
        width: calc(100% - 40px) !important;
        max-height: calc(100vh - 40px) !important;   /* ← deja espacio arriba y abajo */
        display: flex !important;
        flex-direction: column !important;
        border-radius: 16px !important;
        overflow: hidden !important;                /* importante para que el scroll quede solo dentro */
        box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    }

    /* CLAVE: el scroll solo vive aquí */
    .modal-body {
        overflow-y: auto !important;                /* ← scroll vertical cuando haga falta */
        -webkit-overflow-scrolling: touch !important;  /* scroll suave en iOS */
        overscroll-behavior: contain !important;       /* evita "rebote" raro */
        padding: 15px !important;
    }
    /* 🔥 Imagen más grande */
    .modal-images {
        height: 300px !important;  /* antes 180/200 */
        min-height: 260px !important;
    }

    .modal-images img {
        object-fit: cover !important;
    }

    /* 🔥 Título más pequeño */
    #modal-title {
        font-size: 0.75 rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    /* 🔥 Precio más pequeño */
    .modal-price {
        font-size: 1.1rem !important;
        margin-bottom: 5px !important;
    }

    /* 🔥 Descripción más pequeña y compacta */
    .modal-desc {
        font-size: 0.9rem !important;
        line-height: 1.25 !important;
        margin-bottom: 15px !important;
    }

    /* 🔥 Botón un poquito más compacto para que no tape */
    #modal-whatsapp {
        padding: 8px !important;
        font-size: 0.95rem !important;
        text-align: center
    }
}
