* {
    box-sizing: border-box;
}

/* Estilos del header, footer y botón flotante de la página principal */
:root {
    --bg-dark: #2a2d33;
    --bg-card: #353942;
    --gold-primary: #d4b896;
    --gold-hover: #e8d4b8;
    --text-light: #f5f0e6;
    --text-muted: #d4c9b8;
    --font-main: 'Montserrat', sans-serif;
    --font-headers: 'Merriweather', serif;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    background-color: var(--bg-dark);
    color: #1a202c;
    overflow-x: hidden;
    width: 100%;
    padding-top: 100px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, #2a3f5f 0%, transparent 50%), radial-gradient(circle at 70% 80%, #3d2f1f 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
    animation: respiraFondo 12s ease-in-out infinite alternate;
    will-change: opacity;
}

@keyframes respiraFondo {
    0% { opacity: 0.3; transform: scale(0.95); }
    100% { opacity: 0.5; transform: scale(1.05); }
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(26, 29, 35, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(201, 162, 39, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg,
        var(--gold-primary) 0%,
        #fff8e7 30%,
        var(--gold-hover) 50%,
        #fff8e7 70%,
        var(--gold-primary) 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-bounce 15s ease-in-out infinite;
    font-family: var(--font-headers);
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.logo:hover {
    text-decoration: none;
    color: inherit;
}

@keyframes shine-bounce {
    0% {background-position: 300% center;}
    50% {background-position: -100% center;}
    100% {background-position: 300% center;}
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid rgba(201, 162, 39, 0.3);
    padding-top: 0.5rem;
    margin-top: 0.1rem;
}

nav a {
    display: inline-block;
    margin: 0 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding: 0.1rem 0;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-family: var(--font-main);
}

nav a:hover {
    color: var(--gold-hover);
}

nav a.active {
    color: var(--gold-primary);
}

nav a.active::after {
    width: 100%;
    left: 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--gold-primary);
    transition: width 0.35s ease, left 0.35s ease;
}

nav a:hover::after {
    width: 100%;
    left: 0;
}

footer {
    background-color: #06070a;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: 4rem 8% 2rem 8%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-family: var(--font-headers);
}

.footer-col p, .footer-col ul {
    color: var(--text-muted);
    font-size: 0.9rem;
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-block;
    background-image: linear-gradient(var(--gold-primary), var(--gold-primary));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.3s ease, color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--gold-primary);
    background-size: 100% 2px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-disclaimer {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(212, 201, 184, 0.6);
}

.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    animation: latidoSutil 3.5s infinite ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:hover {
    transform: scale(2) translateY(-15px);
    background-color: #1aa85a;
    box-shadow: 0 25px 60px rgba(37, 211, 102, 1);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

@keyframes latidoSutil {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.15);
    }
}

@keyframes pulseHover {
    0%, 70%, 100% {transform: scale(1);}
    85% {transform: scale(1.4);}
}

/* Responsive para header */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 15px;
    }

    .logo {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
        letter-spacing: 2px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        border-top: 1px solid rgba(212, 175, 55, 0.25);
        padding-top: 0.5rem;
        margin-top: 0.1rem;
        gap: 1rem;
        flex-wrap: wrap;
    }

    nav a {
        margin: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    body {
        padding-top: 190px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    nav a {
        margin: 0 0.5rem;
        font-size: 0.65rem;
    }

    body {
        padding-top: 100px;
    }
}


.catalogo {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    background: rgba(26, 29, 35, 0.3);
    overflow-x: hidden;
}

/* Limitar ancho en pantallas grandes */
@media (min-width: 1400px) {
    .catalogo {
        max-width: 1200px;
    }

    /* Mantener tamaño base en pantallas grandes */
    body {
        font-size: 1rem;
    }

    .buscador input {
        font-size: 16px;
    }

    #ordenar {
        font-size: 15px;
    }

    .categorias-select {
        font-size: 15px;
    }

    .producto h2 {
        font-size: 15px;
    }

    .producto-descripcion {
        font-size: 11px;
    }

    .producto-precio {
        font-size: 18px;
    }

    .producto-categoria {
        font-size: 12px;
    }

    /* Reducir tamaño de ubicación, tamaño y dirección */
    .producto-direccion {
        font-size: 10px;
    }

    .propiedad-localidad,
    .propiedad-tamanio {
        font-size: 10px;
        padding: 2px 5px;
    }

    /* Reducir tamaño del botón consultar */
    .producto-boton {
        padding: 8px 10px;
        font-size: 12px;
    }
}


/* =========================
   ENCABEZADO
========================= */

.catalogo-header {
    margin-bottom: 20px;
}


.catalogo-header h1 {
    margin: 0 0 20px;
    font-size: 32px;
}


/* =========================
   CONTROLES
========================= */

.catalogo-controles {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filtros-grupo {
    display: flex;
    gap: 12px;
    align-items: center;
}


.buscador {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;

    background: white;

    border: 1px solid #ddd;
    border-radius: 10px;

    padding: 0 14px;
}


.buscador input {
    width: 100%;

    border: 0;
    outline: 0;

    padding: 14px 0;

    font-size: 16px;

    background: transparent;
}


#ordenar {
    min-width: 220px;

    padding: 14px;

    border: 1px solid #ddd;
    border-radius: 10px;

    background: white;

    font-size: 15px;
}


/* =========================
   CATEGORIAS
========================= */

.categorias-select {
    min-width: 180px;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.categorias-select:hover {
    border-color: #bbb;
}

.categorias-select:focus {
    outline: none;
    border-color: #c8102e;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

/* =========================
   LOCALIDADES
========================= */

.localidades-select {
    min-width: 180px;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: white;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.localidades-select:hover {
    border-color: #bbb;
}

.localidades-select:focus {
    outline: none;
    border-color: #c8102e;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}


/* =========================
   INFORMACIÓN
========================= */

.catalogo-info {
    margin: 15px 0;

    color: #666;

    font-size: 14px;
}


/* =========================
   PRODUCTOS
========================= */

.productos {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;

    align-items: stretch;
}


/* =========================
   TARJETA
========================= */

.producto {
    position: relative;

    display: flex;
    flex-direction: column;

    background: white;

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.2s,
        box-shadow 0.2s;

    min-height: 380px;
    height: 100%;
}


.producto:hover {
    transform: translateY(-3px);

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.12);
}

.producto {
    cursor: pointer;
}


/* =========================
   DESTACADO
========================= */

.producto.destacado {
    border: 2px solid #f0b400;
    animation: glow-border 2s ease-in-out infinite;
}

@keyframes glow-border {
    0%, 100% {
        box-shadow: 0 0 5px rgba(240, 180, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(240, 180, 0, 0.6);
    }
}


.etiqueta-destacado {
    position: absolute;

    top: 12px;
    left: 12px;

    z-index: 2;

    background: #f0b400;

    color: #111;

    padding: 6px 10px;

    border-radius: 6px;

    font-size: 12px;
    font-weight: bold;
}


/* =========================
   IMAGEN
========================= */

.producto-imagen-contenedor {
    width: 100%;

    aspect-ratio: 1 / 1;

    background: #fafafa;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    min-height: 200px;
}


.producto-imagen {
    width: 100%;
    height: 100%;

    object-fit: cover;
    transition: opacity 0.3s ease;
}


/* =========================
   INFORMACIÓN PRODUCTO
========================= */

.producto-info {
    display: flex;
    flex-direction: column;

    padding: 16px;

    flex: 1;
    justify-content: space-between;
    min-height: 120px;
}


.producto-categoria {
    margin-bottom: 7px;

    font-size: 12px;

    color: #777;

    text-transform: uppercase;

    letter-spacing: 0.4px;
}


.producto h2 {
    margin: 0 0 8px;

    font-size: 16px;

    line-height: 1.25;
}


.producto-direccion {
    color: #777;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.producto-descripcion {
    color: #666;

    font-size: 13px;

    line-height: 1.5;

    margin-bottom: 15px;
    cursor: pointer;
}


/* =========================
   INFORMACIÓN DE PROPIEDAD
========================= */

.producto-info-propiedad {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.propiedad-localidad,
.propiedad-tamanio {
    display: inline-block;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.propiedad-localidad {
    background: linear-gradient(135deg, #e8f4f8, #d1e8f0);
    color: #2c5f7c;
}

.propiedad-tamanio {
    background: linear-gradient(135deg, #fef5e7, #fdebd0);
    color: #8b4513;
}


.producto-precio {
    font-size: 18px;

    font-weight: bold;

    margin-top: auto;
}


.producto-descuento {
    display: inline-block;

    margin-top: 8px;

    color: #17823b;

    font-size: 13px;

    font-weight: bold;
}


/* =========================
   STOCK
========================= */

.producto.sin-stock {
    opacity: 0.82;
}

.producto.sin-stock h2 {
    color: #999999;
}

.producto.sin-stock .producto-boton {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    pointer-events: none;
}

.sin-stock-text {
    display: inline-block;

    margin-top: 8px;

    color: #999999;

    font-weight: bold;

    font-size: 14px;
}


/* =========================
   WHATSAPP
========================= */

.producto-boton {
    display: flex;

    justify-content: center;
    align-items: center;

    margin-top: 16px;

    padding: 12px 15px;

    border-radius: 8px;

    background: #25D366;

    color: white;

    text-decoration: none;

    font-weight: bold;

    transition:
        opacity 0.2s;
}


.producto-boton:hover {
    opacity: 0.88;
}


/* =========================
   ANIMACIÓN DE CARGA
========================= */

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    width: 100%;
    min-height: 200px;
}

.productos:has(.loader) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #c8102e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 20px;
    color: #666;
    font-size: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* =========================
   SIN RESULTADOS
========================= */

.sin-resultados {
    text-align: center;

    padding: 70px 20px;

    color: #666;
}


.sin-resultados-icono {
    font-size: 40px;

    margin-bottom: 10px;
}


.sin-resultados h2 {
    margin: 0 0 8px;

    color: #333;
}


.sin-resultados p {
    margin: 0;
}


.oculto {
    display: none !important;
}


/* =========================
   MODAL DE PRODUCTO
========================= */

.producto-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 40px 40px;
    overflow-y: auto;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: auto;
    display: flex;
    flex-direction: column;
}

.modal-brand {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
}

.modal-scroll-wrapper {
    flex: 1;
    overflow-y: auto;
    padding-top: 25px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 1000;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 769px) {
    .modal-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        overflow: hidden;
    }

    .modal-imagen {
        overflow: hidden;
    }
}

.modal-imagen {
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 30px 30px;
    min-height: 300px;
    max-width: 100%;
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#modal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    cursor: crosshair;
}

/* Lupa de zoom - solo desktop */
.zoom-lens {
    position: absolute;
    width: 180px;
    height: 120px;
    border: 2px solid rgba(128, 128, 128, 0.8);
    border-radius: 4px;
    pointer-events: none;
    display: none;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

@media (max-width: 768px) {
    .zoom-lens {
        display: none !important;
    }
    #modal-img {
        cursor: default;
    }
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 5;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px;
    width: 100%;
    justify-content: flex-start;
    white-space: nowrap;
}

.slider-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.slider-thumbnails::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.slider-thumbnails::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.slider-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #c8102e;
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.3);
}

.modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.modal-categoria {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}

.modal-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.modal-info h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
    flex: 1;
}

.modal-header-info-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.modal-descripcion {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.modal-info-propiedad {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.modal-propiedad-localidad,
.modal-propiedad-direccion,
.modal-propiedad-tamanio {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.modal-propiedad-localidad {
    background: linear-gradient(135deg, #e8f4f8, #d1e8f0);
    color: #2c5f7c;
    border: 1px solid rgba(44, 95, 124, 0.2);
}

.modal-propiedad-direccion {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-propiedad-tamanio {
    background: linear-gradient(135deg, #fef5e7, #fdebd0);
    color: #8b4513;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.modal-precio {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

.modal-stock {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
}

.modal-stock.sin-stock {
    color: #c62828;
}

.modal-stock:not(.sin-stock) {
    color: #17823b;
}

.modal-mapa {
    margin-bottom: 20px;
    width: 100%;
}

.modal-mapa iframe {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-botones {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.modal-compartir-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 20px;
    border-radius: 8px;
    background: #4285f4;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: opacity 0.2s;
    border: none;
    cursor: pointer;
    flex: 1;
}

.modal-compartir-btn:hover {
    opacity: 0.88;
}

.modal-whatsapp-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 20px;
    border-radius: 8px;
    background: #25D366;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: opacity 0.2s;
    border: none;
    cursor: pointer;
    flex: 1;
}

.modal-whatsapp-btn:hover {
    opacity: 0.88;
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .producto-modal {
        align-items: center;
        padding: 20px;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-scroll-wrapper {
        padding-top: 70px;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-imagen {
        padding: 8px 20px 20px;
        min-height: auto;
    }

    .slider-container {
        height: 250px;
    }

    #modal-img {
        max-height: 250px;
    }

    .modal-info {
        padding: 25px;
    }

    .modal-info h2 {
        font-size: 20px;
    }

    .modal-header-info {
        flex-direction: column;
        gap: 10px;
    }

    .modal-header-info-right {
        align-items: flex-start;
    }

    .modal-precio {
        font-size: 20px;
    }

    .modal-info-vehiculo {
        gap: 8px;
    }

    .modal-vehiculo-anio,
    .modal-vehiculo-km {
        font-size: 12px;
        padding: 6px 12px;
    }

    .modal-descripcion {
        font-size: 14px;
    }

    .modal-precio {
        font-size: 24px;
    }

    .modal-botones {
        flex-direction: column;
    }
}



/* =========================
   TABLET
========================= */

@media (max-width: 950px) {

    .productos {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

}

/* =========================
   RESOLUCIÓN INTERMEDIA
========================= */

@media (min-width: 701px) and (max-width: 1399px) {
    .producto h2 {
        font-size: 15px;
    }

    .producto-descripcion {
        font-size: 11px;
    }

    .producto-direccion {
        font-size: 10px;
    }

    .propiedad-localidad,
    .propiedad-tamanio {
        font-size: 10px;
        padding: 2px 5px;
    }

    .producto-boton {
        padding: 8px 10px;
        font-size: 12px;
    }

    .producto-categoria {
        font-size: 12px;
    }
}


/* =========================
   CELULAR
========================= */

@media (max-width: 700px) {

    .catalogo {
        padding:
            60px 12px 40px;
    }


    .catalogo-header h1 {
        font-size: 26px;
    }


    .catalogo-controles {
        flex-direction: column;
        align-items: stretch;
    }


    .filtros-grupo {
        flex-direction: column;
        width: 100%;
    }

    #ordenar {
        width: 100%;
    }

    .categorias-select {
        width: 100%;
    }
    
    .localidades-select {
        width: 100%;
    }


  .productos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .producto {
        min-height: 320px;
        height: 100%;
    }

    .producto-imagen-contenedor {
        aspect-ratio: 1 / 1;
        padding: 8px;
        min-height: 100px;
        max-height: 140px;
    }

    .producto-info {
        padding: 10px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .producto h2 {
        font-size: 13px;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .producto-categoria {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .producto-descripcion {
        font-size: 11px;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .producto-info-propiedad {
        gap: 4px;
        margin-bottom: 4px;
    }

    .propiedad-localidad,
    .propiedad-tamanio {
        font-size: 10px;
        padding: 3px 6px;
    }

    .producto-precio {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .producto-boton {
        padding: 8px 10px;
        font-size: 12px;
    }

    .ver-mas-btn {
        padding: 4px 8px;
        font-size: 10px;
    }

    .producto-precio {
        font-size: 18px;
    }

    .producto-boton {
        font-size: 12px;
        padding: 9px 6px;
    }

}




/* =========================
   PAGINACIÓN
========================= */

.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;

    margin-top: 35px;
    min-height: 42px;

    flex-wrap: wrap;
}


.pagina-btn {
    min-width: 40px;
    height: 40px;

    padding: 0 12px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: white;

    color: #222;

    cursor: pointer;

    font-size: 14px;

    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s,
        opacity 0.2s;
}


.pagina-btn:hover:not(:disabled) {
    background: #eee;
}


.pagina-btn.activa {
    background: #222;
    color: white;
    border-color: #222;
}


.pagina-btn:disabled {
    opacity: 0.4;
    cursor: default;
}


.pagina-separador {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 40px;

    color: #777;
}


@media (max-width: 500px) {

    .paginacion {
        gap: 5px;
    }


    .pagina-btn {
        min-width: 38px;
        height: 38px;

        padding: 0 9px;
    }


    .pagina-anterior,
    .pagina-siguiente {
        font-size: 13px;
    }

}
