﻿/* ============================================================
   INMOFRANQ â€” Design System
   Paleta: Rojo RE/MAX #CC0000 Â· Azul noche #0D1B2A Â· Blanco
   TipografÃ­a: Montserrat (tÃ­tulos) + Inter (cuerpo)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    /* Colores de marca */
    --brand:        #CC0000;
    --brand-dark:   #a30000;
    --brand-light:  #ff1a1a;
    --navy:         #0D1B2A;
    --navy-mid:     #1a3050;
    --navy-soft:    #2a4a6e;
    --gold:         #E8A020;

    /* Superficies */
    --bg:           #F4F6F9;
    --surface:      #FFFFFF;
    --surface-2:    #EEF1F6;
    --surface-3:    #E2E8F0;

    /* Texto */
    --ink:          #0D1B2A;
    --ink-mid:      #2d4a6a;
    --ink-muted:    #5A7186;
    --ink-faint:    #8FA3B8;

    /* Bordes */
    --border:       #D5DDE8;
    --border-soft:  #E8EDF3;

    /* Utilidades */
    --radius-sm:    8px;
    --radius:       12px;
    --radius-lg:    18px;
    --radius-xl:    24px;
    --shadow-sm:    0 2px 8px rgba(13,27,42,0.06);
    --shadow:       0 4px 20px rgba(13,27,42,0.09);
    --shadow-lg:    0 12px 40px rgba(13,27,42,0.13);
    --shadow-card:  0 2px 12px rgba(13,27,42,0.07), 0 1px 3px rgba(13,27,42,0.05);

    /* Transiciones */
    --t-fast:       150ms ease;
    --t-base:       240ms ease;
    --t-slow:       380ms ease;
}

/* â”€â”€â”€ Reset y base â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover {
    color: var(--brand-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy);
    margin: 0 0 .5em;
}

p {
    margin: 0 0 1em;
}

/* â”€â”€â”€ Layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.container {
    width: min(1200px, 94%);
    margin: 0 auto;
}

.container--narrow {
    width: min(820px, 94%);
    margin: 0 auto;
}

/* â”€â”€â”€ Navbar / Topbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.topbar {
    background: var(--navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--brand);
    box-shadow: 0 2px 16px rgba(13,27,42,0.25);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.topbar-logo-mark {
    width: 42px;
    height: 42px;
    background: var(--brand);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.topbar-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.topbar-logo-text span {
    color: var(--brand);
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-nav a {
    color: rgba(255,255,255,0.78);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: background var(--t-fast), color var(--t-fast);
    text-decoration: none;
}

.topbar-nav a:hover,
.topbar-nav a.is-active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 600;
    margin: 0 0 6px;
    opacity: 0.65;
}

/* â”€â”€â”€ Hero / Detail Hero â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.detail-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0a2540 100%);
    color: #fff;
    padding: 36px 0 32px;
    position: relative;
    overflow: hidden;
}

.detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 50%, rgba(204,0,0,0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 80%, rgba(42,74,110,0.4) 0%, transparent 50%);
    pointer-events: none;
}

.detail-hero > * {
    position: relative;
    z-index: 1;
}

/* Hero de bÃºsqueda (portada pÃºblica) */
.search-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #163354 100%);
    color: #fff;
    padding: 64px 0 56px;
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 0%, rgba(204,0,0,0.22) 0%, transparent 50%),
        radial-gradient(ellipse at 5% 100%, rgba(26,48,80,0.6) 0%, transparent 45%);
    pointer-events: none;
}

.search-hero > * {
    position: relative;
    z-index: 1;
}

.search-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: .4em;
}

.search-hero p {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* â”€â”€â”€ Search Box â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.search-box {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 20px 22px;
    max-width: 820px;
}

.search-box-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-soft);
    padding-bottom: 12px;
}

.search-tab {
    padding: 6px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--ink-muted);
    transition: background var(--t-fast), color var(--t-fast);
}

.search-tab.is-active,
.search-tab:hover {
    background: var(--brand);
    color: #fff;
}

/* â”€â”€â”€ Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.intro-card,
.listing-card,
.detail-card,
.table-wrap,
.form-grid,
.filter-card,
.quick-contact-card,
.related-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.intro-card {
    margin: 24px 0;
    padding: 28px 28px 22px;
    border-left: 4px solid var(--brand);
}

.intro-card h1,
.intro-card h2 {
    font-size: 1.5rem;
}

.intro-sub {
    margin: 10px 0 0;
    color: var(--ink-muted);
    font-size: 0.95rem;
}

/* Tarjeta de propiedad */
.listing-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--t-base), box-shadow var(--t-base);
    animation: card-enter 350ms ease both;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.listing-image-wrap {
    position: relative;
    overflow: hidden;
}

.listing-image {
    width: 100%;
    height: 215px;
    object-fit: cover;
    transition: transform 400ms ease;
}

.listing-card:hover .listing-image {
    transform: scale(1.04);
}

.listing-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,27,42,0.55) 0%, transparent 50%);
    pointer-events: none;
}

.listing-op-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--brand);
}

.listing-op-badge.is-alquiler {
    background: var(--navy-soft);
}

.listing-op-badge.is-nuevo {
    background: #1a7a40;
}

.listing-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--ink-muted);
    box-shadow: var(--shadow-sm);
    transition: background var(--t-fast), color var(--t-fast);
}

.listing-fav-btn:hover,
.listing-fav-btn.is-saved {
    background: #fff;
    color: var(--brand);
}

.listing-price-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.listing-content {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 4px;
    line-height: 1.3;
}

.listing-location {
    color: var(--ink-muted);
    font-size: 0.86rem;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 14px;
}

.listing-spec {
    font-size: 0.83rem;
    color: var(--ink-mid);
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-spec-icon {
    font-style: normal;
    font-size: 0.9rem;
}

.listing-footer {
    margin-top: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Spec grid (detalle) */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 16px;
    margin: 14px 0;
}

.spec-grid dt {
    font-size: 0.76rem;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
    font-weight: 600;
}

.spec-grid dd {
    font-weight: 600;
    color: var(--ink);
    margin: 2px 0 0;
    font-size: 0.95rem;
}

/* â”€â”€â”€ Filtros â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.filter-card {
    margin: 0 0 20px;
    padding: 18px 20px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 12px;
    align-items: end;
}

.filter-grid label {
    display: grid;
    gap: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ink-mid);
}

.filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--ink-muted);
    margin: 6px 0 16px;
    font-size: 0.92rem;
}

/* Chips de filtro activo */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.83rem;
    color: var(--ink-mid);
    font-weight: 500;
}

.filter-chip a,
.filter-chip button {
    display: inline-flex;
    width: 17px;
    height: 17px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    text-decoration: none;
    color: #fff;
    background: var(--brand);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.type-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.type-stats span {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 12px;
    background: var(--surface);
    font-size: 0.85rem;
    color: var(--ink-muted);
}

.recent-searches {
    margin: 0 0 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.recent-searches p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.88rem;
}

.recent-clear { margin-left: auto; }

.filter-topline { margin: 0 0 10px; color: var(--ink-muted); font-size: 0.9rem; }
.filter-topline p { margin: 0; }

.filter-quick-reset {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* â”€â”€â”€ Grilla de resultados â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding-bottom: 36px;
}

/* â”€â”€â”€ Badges y etiquetas â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.new-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 10px;
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: #1a7a40;
}

.type-tag {
    display: inline-block;
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
}

.status-badge.active    { background: #dcfce7; color: #166534; }
.status-badge.pending   { background: #fef3c7; color: #92400e; }
.status-badge.inactive  { background: #fee2e2; color: #991b1b; }
.status-badge.sold      { background: #e0e7ff; color: #3730a3; }

/* â”€â”€â”€ Botones â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px solid var(--brand);
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    padding: 9px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
    white-space: nowrap;
    font-family: inherit;
}

.btn:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    box-shadow: 0 4px 14px rgba(204,0,0,0.28);
    color: #fff;
}

.btn:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}

.btn-outline:hover {
    background: var(--brand);
    color: #fff;
}

.btn-navy {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.btn-navy:hover {
    background: var(--navy-mid);
    border-color: var(--navy-mid);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13,27,42,0.3);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--ink-muted);
}

.btn-ghost:hover {
    background: var(--surface-2);
    color: var(--ink);
    box-shadow: none;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.btn-whatsapp:hover {
    background: #1db954;
    border-color: #1db954;
    box-shadow: 0 4px 14px rgba(37,211,102,0.3);
    color: #fff;
}

.btn-sm {
    padding: 5px 13px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 13px 28px;
    font-size: 1rem;
    border-radius: var(--radius);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    padding: 9px;
    border-radius: var(--radius-sm);
}

/* â”€â”€â”€ Formularios â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

input,
select,
textarea,
button {
    font: inherit;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
    display: block;
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    background: var(--surface);
    color: var(--ink);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    font-size: 0.94rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(204,0,0,0.12);
}

input::placeholder,
textarea::placeholder {
    color: var(--ink-faint);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 14px;
    padding: 22px;
}

.form-grid label,
.interest-form label {
    display: grid;
    gap: 5px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink-mid);
}

.form-alert {
    margin: 0 0 18px;
    padding: 13px 16px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-size: 0.9rem;
}

.form-alert-error   { border-color: #fca5a5; background: #fef2f2; color: #991b1b; }
.form-alert-success { border-color: #86efac; background: #f0fdf4; color: #166534; }
.form-alert-warning { border-color: #fcd34d; background: #fffbeb; color: #92400e; }

.form-error-list {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 0.88rem;
}

.interest-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px;
}

.interest-form .full-width { grid-column: 1 / -1; }

.interest-options {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.interest-options legend {
    font-weight: 700;
    padding: 0 6px;
    font-size: 0.88rem;
}

.interest-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
}

.full { grid-column: 1 / -1; }

/* Wrap password con ojo */
.pwd-wrap {
    position: relative;
}

.pwd-wrap input {
    padding-right: 44px;
}

.eye-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 42px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--t-fast);
}

.eye-btn:hover { color: var(--ink); }

/* â”€â”€â”€ Tabla â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

thead th {
    background: var(--surface-2);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-mid);
    padding: 11px 14px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

tbody tr {
    transition: background var(--t-fast);
}

tbody tr:hover {
    background: var(--surface-2);
}

td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
    color: var(--ink-mid);
}

td:first-child {
    color: var(--ink);
    font-weight: 500;
}

/* â”€â”€â”€ Panel admin â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.admin-layout {
    display: flex;
    min-height: calc(100vh - 72px);
}

.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--navy);
    color: #fff;
    padding: 24px 0;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
}

.admin-sidebar-logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
}

.admin-sidebar-logo span { color: var(--brand); }

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: background var(--t-fast), color var(--t-fast);
}

.admin-nav-item:hover,
.admin-nav-item.is-active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.admin-nav-item.is-active {
    border-left: 3px solid var(--brand);
    padding-left: 9px;
}

.admin-nav-icon { font-style: normal; font-size: 1.05rem; }

.admin-main {
    flex: 1;
    padding: 28px 32px;
    overflow: auto;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-soft);
}

.admin-head h1 {
    font-size: 1.5rem;
    margin: 0;
}

/* Stats KPI cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand);
}

.kpi-card.kpi-navy::before { background: var(--navy); }
.kpi-card.kpi-green::before { background: #22c55e; }
.kpi-card.kpi-gold::before  { background: var(--gold); }

.kpi-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    margin-bottom: 8px;
}

.kpi-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.kpi-sub {
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-top: 6px;
}

/* â”€â”€â”€ Detalle de publicaciÃ³n â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.detail-layout {
    padding: 28px 0 48px;
}

.gallery-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.gallery-block img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform var(--t-base);
    cursor: zoom-in;
}

.gallery-block img:hover {
    transform: scale(1.015);
}

.gallery-main img {
    aspect-ratio: 16/9;
    grid-column: 1 / -1;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    margin-top: 20px;
}

.detail-card {
    padding: 22px;
    animation: card-enter 350ms ease both;
}

.detail-card.full-width {
    grid-column: 1 / -1;
}

.detail-card h2 {
    font-size: 1.1rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-price small {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 400;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 0 0 12px;
    font-size: 0.84rem;
    opacity: 0.85;
}

.breadcrumbs a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #fff;
}

.breadcrumbs-sep {
    opacity: 0.5;
    font-size: 0.7rem;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.hero-chips span {
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 0.83rem;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
}

/* Agente / contacto rÃ¡pido */
.quick-contact-card {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: #fff;
    border-color: transparent;
}

.quick-contact-card h2 { color: #fff; }

.quick-contact-card p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin: 5px 0;
}

.quick-contact-actions {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agent-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.agent-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.agent-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.agent-role {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.trust-badge {
    font-size: 0.82rem;
    color: #4ade80;
    margin: 6px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.trust-icon { font-style: normal; }

.published-ago {
    font-size: 0.78rem;
    color: var(--ink-faint);
    margin: 2px 0 12px;
}

.copy-link-status {
    margin: 8px 0 0;
    color: var(--ink-muted);
    font-size: 0.84rem;
    min-height: 18px;
}

/* Propiedades relacionadas */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.related-card {
    padding: 0;
    overflow: hidden;
    transition: transform var(--t-base), box-shadow var(--t-base);
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.related-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.related-card-body {
    padding: 10px 13px 14px;
}

.related-card h3 {
    margin: 4px 0;
    font-size: 0.9rem;
}

.related-card p {
    margin: 4px 0 0;
    color: var(--ink-muted);
    font-size: 0.84rem;
}

/* â”€â”€â”€ PaginaciÃ³n â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 0 0 32px;
    flex-wrap: wrap;
}

.pagination-current {
    font-weight: 700;
    color: var(--ink-muted);
    font-size: 0.88rem;
    margin: 0 8px;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--ink-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.pagination-number:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.pagination-number.is-current {
    color: #fff;
    border-color: var(--brand);
    background: var(--brand);
}

/* â”€â”€â”€ Empty state â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--ink-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--ink-mid);
    margin-bottom: 8px;
}

.empty-suggestions {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.empty-suggestions p {
    width: 100%;
    color: var(--ink-muted);
    font-size: 0.9rem;
}

/* â”€â”€â”€ Toast / Alerts â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.alert {
    padding: 13px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    border: 1.5px solid transparent;
    margin-bottom: 16px;
}

.alert-error   { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #86efac; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fcd34d; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #93c5fd; }

/* â”€â”€â”€ Sticky CTA mÃ³vil â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.sticky-mobile-cta {
    display: none;
}

/* â”€â”€â”€ Divider â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.divider {
    border: none;
    border-top: 1px solid var(--border-soft);
    margin: 20px 0;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border-soft);
}

/* â”€â”€â”€ Animaciones â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

@keyframes card-enter {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* â”€â”€â”€ Login / Auth pages â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #163354 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(204,0,0,0.2) 0%, transparent 45%),
        radial-gradient(ellipse at 10% 80%, rgba(42,74,110,0.5) 0%, transparent 45%);
    pointer-events: none;
}

.auth-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: slide-up 500ms ease both;
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--brand);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
    box-shadow: 0 8px 24px rgba(204,0,0,0.3);
}

.auth-card h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 4px;
}

.auth-card .sub {
    text-align: center;
    color: var(--ink-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.auth-card .field {
    margin-bottom: 16px;
}

.auth-card label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-mid);
    margin-bottom: 6px;
}

.auth-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--ink-muted);
}

/* â”€â”€â”€ ReducciÃ³n de movimiento â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

@media (prefers-reduced-motion: reduce) {
    .listing-card,
    .detail-card,
    .auth-card {
        animation: none;
    }

    .listing-card:hover,
    .gallery-block img:hover,
    .related-card:hover {
        transform: none;
    }

    .listing-image {
        transition: none;
    }
}

/* â”€â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 740px) {
    .topbar-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 0;
    }

    .topbar-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 14px 0;
    }

    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 4px;
    }

    .admin-main {
        padding: 20px 16px;
    }

    .admin-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .interest-form {
        grid-template-columns: 1fr;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .sticky-mobile-cta {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        gap: 10px;
        padding: 10px 16px;
        background: rgba(13,27,42,0.96);
        backdrop-filter: blur(6px);
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .sticky-mobile-cta .btn {
        flex: 1;
        text-align: center;
    }

    body {
        padding-bottom: 72px;
    }
}

@media (max-width: 480px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .hero-price {
        font-size: 1.4rem;
    }
}

/* ============================================================
   INMOFRANQ - Refinamiento visual 2026
   Capa incremental basada en DISENO.md: claridad, confianza,
   tarjetas legibles y mejor tactilidad en mobile.
   ============================================================ */

:root {
    --bg: #f7f9fc;
    --surface-2: #f1f5f9;
    --surface-3: #e2e8f0;
    --ink: #111827;
    --ink-mid: #334155;
    --ink-muted: #64748b;
    --ink-faint: #94a3b8;
    --border: #cbd5e1;
    --border-soft: #e5eaf1;
    --brand: #c90000;
    --brand-dark: #9f0000;
    --navy: #0f172a;
    --navy-mid: #1e293b;
    --navy-soft: #334155;
    --radius-sm: 8px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 42px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 23, 42, 0.07);
}

html {
    scroll-padding-top: 92px;
}

body {
    font-size: 16px;
    background:
        linear-gradient(180deg, #ffffff 0, var(--bg) 340px),
        var(--bg);
    text-rendering: optimizeLegibility;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(201, 0, 0, 0.28);
    outline-offset: 3px;
}

.container {
    width: min(1240px, calc(100% - 32px));
}

.topbar {
    border-bottom-width: 2px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
}

.topbar-inner {
    min-height: 76px;
}

.topbar h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    letter-spacing: 0;
}

.topbar .eyebrow {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.catalog-hero {
    padding: 42px 0 34px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94)),
        var(--navy);
    color: #fff;
}

.catalog-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
    gap: clamp(24px, 4vw, 52px);
    align-items: center;
}

.catalog-hero__copy h2 {
    max-width: 12ch;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.catalog-hero__copy p {
    max-width: 56ch;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.04rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-trust span {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
}

.hero-trust strong {
    color: #fff;
}

.catalog-shell {
    padding: 26px 0 44px;
}

.hero-filter {
    margin: 0;
    border: 0;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

.filter-title {
    margin: 0 0 2px;
    color: var(--ink);
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
}

.filter-search-field {
    grid-column: span 2;
}

.catalog-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
}

.catalog-summary .type-stats {
    margin: 0;
}

.intro-card {
    margin: 30px 0 22px;
    padding: clamp(22px, 4vw, 36px);
    border-left: 0;
    border-top: 4px solid var(--brand);
}

.intro-card h1,
.intro-card h2 {
    max-width: 820px;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    letter-spacing: 0;
}

.intro-card p {
    max-width: 860px;
    color: var(--ink-mid);
}

.filter-card {
    padding: clamp(16px, 3vw, 24px);
    border-color: var(--border);
}

.filter-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.filter-topline p {
    color: var(--ink-mid);
}

.filter-grid {
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr));
    gap: 14px;
}

.filter-grid label,
.form-grid label,
.interest-form label {
    color: var(--ink-mid);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
    min-height: 44px;
    border-width: 1px;
    border-radius: var(--radius);
    padding: 10px 12px;
    background: #fff;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #aab7c7;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(201, 0, 0, 0.10);
}

.btn {
    min-height: 44px;
    border-width: 1px;
    border-radius: var(--radius);
    padding: 10px 18px;
    box-shadow: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(201, 0, 0, 0.20);
}

.btn-outline {
    background: #fff;
}

.btn-outline:hover {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}

.btn-small,
.btn-sm {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.84rem;
}

.results-head {
    padding: 4px 0;
}

.results-head p {
    margin: 0;
}

.type-stats span,
.filter-chip {
    border-color: var(--border-soft);
    box-shadow: var(--shadow-sm);
}

.card-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 22px;
}

.listing-card {
    border-color: var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.listing-card:hover {
    transform: translateY(-3px);
    border-color: #d7dee9;
    box-shadow: var(--shadow-lg);
}

.listing-media {
    position: relative;
    display: block;
    overflow: hidden;
    color: inherit;
}

.listing-media::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.56), transparent);
    pointer-events: none;
}

.listing-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--surface-2);
}

.listing-image-placeholder {
    display: grid;
    place-items: center;
    color: var(--ink-muted);
    font-weight: 700;
}

.listing-media .listing-op-badge,
.listing-new-badge {
    z-index: 2;
}

.listing-new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
}

.listing-content {
    padding: 18px;
}

.listing-price {
    margin: 0 0 8px;
    color: var(--ink);
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.1;
}

.listing-card h3,
.listing-title {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.28;
    letter-spacing: 0;
}

.listing-card p {
    color: var(--ink-mid);
}

.listing-card h3 a {
    color: inherit;
}

.listing-summary {
    display: -webkit-box;
    min-height: 3.1em;
    margin-bottom: 12px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.listing-card .type-tag,
.new-badge {
    margin-bottom: 8px;
}

.listing-card .spec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.listing-card .spec-grid dt {
    color: var(--ink-muted);
}

.listing-card .spec-grid dd {
    overflow-wrap: anywhere;
}

.listing-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.listing-actions .btn {
    width: 100%;
}

.detail-hero,
.search-hero {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96)),
        var(--navy);
}

.detail-hero::before,
.search-hero::before,
.auth-page::before {
    opacity: 0.48;
}

.detail-hero h1 {
    max-width: 920px;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0;
}

.detail-hero p {
    max-width: 760px;
}

.hero-price {
    margin: 14px 0 0;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.hero-chips span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
}

.gallery-block {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.gallery-block img:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-block img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.detail-grid {
    gap: 22px;
}

.detail-card {
    border-color: var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.detail-card h2 {
    border-bottom-width: 1px;
}

.quick-contact-card {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98)),
        var(--navy);
}

.quick-contact-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.quick-contact-card .btn-outline,
.sticky-mobile-cta .btn-outline {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* ── Fieldset "Información solicitada" ──────────────────────────── */
.interest-options {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px 10px;
    background: var(--surface-2);
    margin: 0;
}

.interest-options legend {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 0 8px;
}

/* Grid 2 columnas en desktop, 1 en mobile */
.interest-options .checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    margin-top: 8px;
}

/* ── Checkbox label base ────────────────────────────────────────── */
.interest-options label,
.interest-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ink-mid);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--t-fast);
    line-height: 1.4;
    min-height: 36px;
}

.interest-options label:hover,
.interest-check:hover {
    background: var(--surface-3);
}

/* Checkbox input: tamaño táctil adecuado */
.interest-options input[type="checkbox"],
.interest-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: var(--brand);
    cursor: pointer;
    margin-top: 2px; /* alinea con primera línea de texto */
    border-radius: 4px;
}

/* ── Consentimientos: separados con línea ───────────────────────── */
.interest-check {
    border-top: 1px solid var(--border-soft);
    padding: 8px 0 4px;
    font-size: 0.88rem;
    margin: 0;
}

.interest-check:first-of-type {
    margin-top: 6px;
}

/* ── Botón submit ───────────────────────────────────────────────── */
.interest-form .btn.full-width {
    margin-top: 8px;
    padding: 13px;
    font-size: 1rem;
    border-radius: var(--radius);
}

/* ── Responsive ≤740px ─────────────────────────────────────────── */
@media (max-width: 740px) {
    .interest-options .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .interest-options label,
    .interest-check {
        padding: 9px 6px;
        font-size: 0.9rem;
    }

    .interest-options input[type="checkbox"],
    .interest-check input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }
}

/* ── Responsive ≤480px ─────────────────────────────────────────── */
@media (max-width: 480px) {
    .interest-options {
        padding: 12px 12px 8px;
    }

    .interest-options label,
    .interest-check {
        font-size: 0.87rem;
        gap: 8px;
    }

    .interest-form .btn.full-width {
        padding: 14px;
        font-size: 1rem;
    }
}

@media (max-width: 980px) {
    .catalog-hero__inner {
        grid-template-columns: 1fr;
    }

    .catalog-hero__copy h2 {
        max-width: 16ch;
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-search-field {
        grid-column: 1 / -1;
    }

    .catalog-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-block {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 740px) {
    body {
        font-size: 15px;
    }

    .container {
        width: min(100% - 24px, 1240px);
    }

    .topbar-inner {
        min-height: 0;
    }

    .topbar .btn {
        width: 100%;
    }

    .intro-card {
        margin-top: 18px;
    }

    .catalog-hero {
        padding: 28px 0 22px;
    }

    .catalog-hero__copy h2 {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .hero-trust span {
        flex: 1 1 138px;
    }

    .filter-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-quick-reset,
    .filter-actions {
        width: 100%;
    }

    .filter-quick-reset .btn,
    .filter-actions .btn {
        flex: 1 1 150px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .listing-card .spec-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .listing-actions {
        grid-template-columns: 1fr;
    }

    .gallery-block {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }

    .gallery-block img,
    .gallery-block img:first-child {
        min-width: 86%;
        grid-column: auto;
        grid-row: auto;
        scroll-snap-align: start;
    }

    .quick-contact-actions {
        grid-template-columns: 1fr;
    }

.sticky-mobile-cta {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }
}

/* ============================================================
   INMOFRANQ - Ajustes finos sobre capturas ccs1/ccs2
   ============================================================ */

.catalog-hero {
    padding: clamp(34px, 5vw, 56px) 0 clamp(28px, 4vw, 44px);
}

.catalog-hero__inner {
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
}

.catalog-hero__copy h2 {
    max-width: 13ch;
    font-size: clamp(2.65rem, 5.2vw, 5.35rem);
}

.catalog-hero__copy p {
    font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.hero-filter {
    max-width: 880px;
    justify-self: end;
    padding: 28px 30px;
}

.hero-filter .filter-topline {
    align-items: flex-start;
}

.hero-filter .filter-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.hero-filter .filter-search-field {
    grid-column: span 7;
}

.hero-filter .filter-type-field {
    grid-column: span 3;
}

.hero-filter .filter-city-field {
    grid-column: span 2;
}

.hero-filter .filter-price-min-field,
.hero-filter .filter-price-max-field,
.hero-filter .filter-sort-field {
    grid-column: span 3;
}

.hero-filter .filter-actions {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr;
    align-self: end;
}

.hero-filter input,
.hero-filter select {
    min-width: 0;
}

.detail-hero h1,
.detail-hero .eyebrow,
.detail-hero .breadcrumbs span {
    color: #fff;
}

.detail-hero h1 {
    opacity: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.16);
}

.detail-hero .eyebrow {
    opacity: 0.74;
}

@media (max-width: 1280px) {
    .catalog-hero__inner {
        grid-template-columns: 1fr;
    }

    .catalog-hero__copy h2 {
        max-width: 15ch;
        font-size: clamp(2.4rem, 7vw, 4.6rem);
    }

    .hero-filter {
        max-width: none;
        justify-self: stretch;
    }
}

@media (max-width: 860px) {
    .hero-filter {
        padding: 20px;
    }

    .hero-filter .filter-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .hero-filter .filter-search-field,
    .hero-filter .filter-city-field,
    .hero-filter .filter-actions {
        grid-column: 1 / -1;
    }

    .hero-filter .filter-type-field,
    .hero-filter .filter-price-min-field,
    .hero-filter .filter-price-max-field,
    .hero-filter .filter-sort-field {
        grid-column: span 3;
    }
}

@media (max-width: 560px) {
    .catalog-hero__copy h2 {
        font-size: clamp(2.15rem, 14vw, 3.35rem);
    }

    .hero-filter .filter-type-field,
    .hero-filter .filter-price-min-field,
    .hero-filter .filter-price-max-field,
    .hero-filter .filter-sort-field {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   INMOFRANQ - Capa editorial premium
   Dorado, textura fina y siluetas arquitectonicas sutiles.
   ============================================================ */

:root {
    --font-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --gold: #c99a3d;
    --gold-soft: #ead8aa;
    --gold-pale: #fff6dc;
    --ink-lux: #101827;
    --paper: #fbfaf7;
}

body {
    background:
        repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.018) 0 1px, transparent 1px 84px),
        linear-gradient(180deg, #fffdf8 0, var(--bg) 360px),
        var(--bg);
}

h1,
h2,
.catalog-hero__copy h2,
.detail-hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0;
}

.topbar {
    background:
        linear-gradient(90deg, rgba(201, 154, 61, 0.10), transparent 28%, rgba(255, 255, 255, 0.04)),
        var(--navy);
    border-bottom: 1px solid rgba(201, 154, 61, 0.72);
}

.topbar h1 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
}

.topbar .btn-outline {
    border-color: var(--gold);
    color: #9f0000;
    box-shadow: inset 0 0 0 1px rgba(201, 154, 61, 0.18);
}

.catalog-hero,
.detail-hero {
    isolation: isolate;
    overflow: hidden;
}

.catalog-hero {
    position: relative;
    background:
        linear-gradient(115deg, rgba(13, 20, 35, 0.98), rgba(27, 37, 56, 0.96) 58%, rgba(48, 40, 32, 0.92)),
        var(--navy);
}

.catalog-hero::before,
.detail-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: min(34vw, 280px);
    opacity: 0.34;
    background:
        linear-gradient(90deg, transparent 0 4%, rgba(255, 255, 255, 0.14) 4% 4.4%, transparent 4.4% 8%),
        linear-gradient(90deg, transparent 0 11%, rgba(201, 154, 61, 0.22) 11% 11.35%, transparent 11.35% 15%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
    clip-path: polygon(
        0 78%, 5% 78%, 5% 52%, 9% 52%, 9% 66%, 13% 66%,
        13% 38%, 18% 38%, 18% 70%, 23% 70%, 23% 46%, 28% 46%,
        28% 60%, 34% 60%, 34% 34%, 39% 34%, 39% 72%, 45% 72%,
        45% 50%, 51% 50%, 51% 64%, 57% 64%, 57% 42%, 63% 42%,
        63% 74%, 70% 74%, 70% 56%, 76% 56%, 76% 68%, 83% 68%,
        83% 44%, 89% 44%, 89% 76%, 100% 76%, 100% 100%, 0 100%
    );
}

.catalog-hero::after,
.detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px),
        linear-gradient(90deg, rgba(201, 154, 61, 0.10), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 42%);
}

.catalog-hero__copy .eyebrow,
.detail-hero .eyebrow {
    color: var(--gold-soft);
    opacity: 0.92;
}

.catalog-hero__copy h2 {
    color: #fffdfa;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.16);
}

.catalog-hero__copy p {
    color: rgba(255, 255, 255, 0.82);
}

.hero-trust span {
    border-color: rgba(234, 216, 170, 0.34);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-trust strong {
    color: var(--gold-pale);
}

.hero-filter,
.filter-card,
.detail-card,
.listing-card {
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 255, 255, 0.98)),
        var(--surface);
}

.hero-filter {
    position: relative;
    border: 1px solid rgba(201, 154, 61, 0.28);
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hero-filter::before,
.detail-card::before,
.listing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(120deg, rgba(201, 154, 61, 0.18), transparent 22%),
        repeating-linear-gradient(135deg, rgba(15, 23, 42, 0.018) 0 1px, transparent 1px 14px);
}

.filter-title,
.detail-card h2,
.section-title {
    font-family: var(--font-display);
    color: var(--ink-lux);
}

.filter-title::after,
.detail-card h2::after {
    content: '';
    display: block;
    width: 52px;
    height: 2px;
    margin-top: 8px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
    background:
        linear-gradient(180deg, #fff, #fffdf8);
    border-color: #d4c7a9;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 154, 61, 0.18);
}

.btn {
    background: linear-gradient(180deg, #d50b0b, var(--brand-dark));
}

.btn:hover {
    box-shadow: 0 10px 22px rgba(159, 0, 0, 0.22);
}

.btn-outline {
    background:
        linear-gradient(180deg, #fff, #fffaf0);
    border-color: rgba(201, 154, 61, 0.72);
    color: var(--brand-dark);
}

.type-stats span,
.filter-chip,
.hero-chips span {
    border-color: rgba(201, 154, 61, 0.34);
    background: linear-gradient(180deg, #fffdf7, #f8f1df);
}

.listing-card {
    position: relative;
    border-color: rgba(201, 154, 61, 0.24);
}

.listing-card:hover {
    border-color: rgba(201, 154, 61, 0.52);
}

.listing-price {
    color: var(--ink-lux);
}

.listing-price::after {
    content: '';
    display: block;
    width: 46px;
    height: 2px;
    margin-top: 8px;
    background: var(--gold);
}

.listing-op-badge,
.new-badge {
    background:
        linear-gradient(180deg, #cf9c3d, #9d6f19);
    color: #fff;
}

.listing-card .spec-grid {
    background:
        linear-gradient(180deg, #fffcf4, #f7f0df);
    border-color: rgba(201, 154, 61, 0.22);
}

.detail-hero {
    background:
        linear-gradient(110deg, rgba(14, 22, 38, 0.98), rgba(29, 37, 56, 0.94) 62%, rgba(52, 44, 34, 0.92)),
        var(--navy);
}

.detail-hero h1 {
    max-width: 18ch;
    color: #fffdfa;
}

.hero-price {
    color: var(--gold-pale);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.16);
}

.gallery-block img {
    border-color: rgba(201, 154, 61, 0.22);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

.quick-contact-card {
    border: 1px solid rgba(201, 154, 61, 0.34);
}

.quick-contact-card h2,
.quick-contact-card strong {
    color: var(--gold-pale);
}

@media (max-width: 740px) {
    .catalog-hero::before,
    .detail-hero::after {
        height: 190px;
        opacity: 0.24;
    }

    .catalog-hero__copy h2,
    .detail-hero h1 {
        max-width: 12ch;
    }
}

/* ============================================================
   INMOFRANQ - Refuerzo responsive mobile
   Orden claro para pantallas chicas y telefonos estrechos.
   ============================================================ */

@media (max-width: 740px) {
    html {
        scroll-padding-top: 16px;
    }

    body {
        overflow-x: hidden;
    }

    .topbar {
        position: static;
    }

    .topbar-inner {
        align-items: flex-start;
    }

    .topbar h1 {
        font-size: 1.45rem;
        line-height: 1.15;
    }

    .topbar .eyebrow,
    .catalog-hero__copy .eyebrow,
    .detail-hero .eyebrow {
        font-size: 0.66rem;
        letter-spacing: 0.12em;
    }

    .catalog-hero {
        padding: 26px 0 24px;
    }

    .catalog-hero__inner {
        gap: 20px;
    }

    .catalog-hero__copy h2 {
        max-width: 11.5ch;
        margin-bottom: 12px;
        font-size: clamp(2.25rem, 13vw, 3.2rem);
        line-height: 1.06;
    }

    .catalog-hero__copy p {
        max-width: 34rem;
        font-size: 1rem;
        line-height: 1.55;
    }

    .hero-trust {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        max-width: 320px;
    }

    .hero-trust span {
        width: 100%;
        justify-content: space-between;
        padding-inline: 14px;
    }

    .hero-filter {
        padding: 18px;
        border-radius: 14px;
    }

    .filter-title {
        font-size: 1rem;
    }

    .filter-quick-reset {
        display: grid;
        grid-template-columns: 1fr;
    }

    .filter-quick-reset .btn {
        justify-content: center;
        width: 100%;
        min-height: 38px;
        white-space: normal;
    }

    .hero-filter .filter-grid {
        gap: 12px;
    }

    .hero-filter label {
        gap: 6px;
    }

    .hero-filter input,
    .hero-filter select {
        min-height: 46px;
        font-size: 16px;
    }

    .catalog-shell {
        padding-top: 18px;
    }

    .catalog-summary {
        gap: 12px;
    }

    .type-stats {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .type-stats span {
        justify-content: space-between;
    }

    .active-filters,
    .recent-searches {
        display: grid;
        grid-template-columns: 1fr;
    }

    .recent-searches .btn,
    .active-filters .filter-chip {
        width: 100%;
    }

    .listing-card {
        border-radius: 14px;
    }

    .listing-content {
        padding: 16px;
    }

    .listing-price {
        font-size: 1.16rem;
    }

    .listing-card h3 {
        font-size: 1rem;
    }

    .listing-summary {
        min-height: 0;
    }

    .listing-card .spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px;
    }

    .listing-card .spec-grid div:last-child {
        grid-column: 1 / -1;
    }

    .listing-actions {
        gap: 8px;
    }

    .listing-actions .btn {
        min-height: 44px;
    }

    .detail-hero {
        padding: 24px 0 28px;
    }

    .detail-hero h1 {
        max-width: 13ch;
        font-size: clamp(2rem, 12vw, 3.05rem);
        line-height: 1.08;
    }

    .detail-hero p {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .hero-price {
        font-size: clamp(1.65rem, 8vw, 2.25rem);
    }

    .hero-chips {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .hero-chips span {
        justify-content: center;
        text-align: center;
        padding: 7px 10px;
    }

    .detail-layout {
        padding-top: 18px;
    }

    .detail-card {
        padding: 18px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 20px, 1240px);
    }

    .topbar-inner {
        padding-block: 14px;
    }

    .topbar .btn {
        min-height: 42px;
    }

    .catalog-hero__copy h2 {
        max-width: 10.5ch;
        font-size: clamp(2rem, 13vw, 2.8rem);
    }

    .catalog-hero::before,
    .detail-hero::after {
        opacity: 0.16;
    }

    .catalog-hero::after,
    .detail-hero::before {
        background:
            linear-gradient(90deg, rgba(201, 154, 61, 0.08), transparent 44%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 48%);
    }

    .hero-filter {
        padding: 16px;
    }

    .filter-topline p {
        font-size: 0.92rem;
    }

    .card-grid {
        gap: 16px;
    }

    .listing-image {
        aspect-ratio: 16 / 11;
    }

    .listing-card .spec-grid {
        grid-template-columns: 1fr;
    }

    .listing-card .spec-grid div:last-child {
        grid-column: auto;
    }

    .hero-chips {
        grid-template-columns: 1fr;
    }

    .gallery-block img,
    .gallery-block img:first-child {
        min-width: 92%;
    }

    .interest-options,
    .spec-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .container {
        width: min(100% - 16px, 1240px);
    }

    .topbar h1 {
        font-size: 1.25rem;
    }

    .catalog-hero__copy h2,
    .detail-hero h1 {
        max-width: 11ch;
        font-size: 2rem;
    }

    .catalog-hero__copy p,
    .detail-hero p {
        font-size: 0.94rem;
    }

    .hero-filter,
    .detail-card,
    .listing-content {
        padding: 14px;
    }

    .btn,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="search"],
    select,
    textarea {
        width: 100%;
    }
}

/* ============================================================
   INMOFRANQ - Contraste, fotografia y textura arquitectonica
   Correccion global posterior a ccs3.
   ============================================================ */

body {
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 12px 12px, rgba(15, 23, 42, 0.045) 1px, transparent 1.4px) 0 0 / 32px 32px,
        radial-gradient(circle at 22px 24px, rgba(201, 154, 61, 0.09) 1px, transparent 1.5px) 0 0 / 88px 88px,
        repeating-linear-gradient(28deg, rgba(15, 23, 42, 0.026) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(118deg, rgba(201, 154, 61, 0.035) 0 1px, transparent 1px 42px);
    opacity: 0.82;
}

body::after {
    content: '';
    position: fixed;
    inset: auto -10vw -28vh -10vw;
    z-index: -1;
    height: 52vh;
    pointer-events: none;
    opacity: 0.18;
    background:
        radial-gradient(ellipse at 22% 42%, transparent 0 33%, rgba(15, 23, 42, 0.26) 33.2% 33.8%, transparent 34%),
        radial-gradient(ellipse at 58% 32%, transparent 0 41%, rgba(201, 154, 61, 0.30) 41.2% 41.7%, transparent 42%),
        radial-gradient(ellipse at 82% 55%, transparent 0 28%, rgba(15, 23, 42, 0.22) 28.2% 28.7%, transparent 29%);
}

.catalog-hero,
.detail-hero {
    color: #fff;
}

.catalog-hero::after,
.detail-hero::before {
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1.4px) 0 0 / 26px 26px,
        radial-gradient(circle at 72% 34%, rgba(234, 216, 170, 0.14) 0 1px, transparent 1.4px) 0 0 / 54px 54px,
        repeating-linear-gradient(36deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px),
        repeating-linear-gradient(126deg, rgba(201, 154, 61, 0.055) 0 1px, transparent 1px 36px),
        radial-gradient(ellipse at 18% 72%, transparent 0 36%, rgba(255, 255, 255, 0.10) 36.2% 36.7%, transparent 37%),
        radial-gradient(ellipse at 78% 68%, transparent 0 42%, rgba(201, 154, 61, 0.14) 42.2% 42.8%, transparent 43%);
}

.detail-hero .breadcrumbs,
.detail-hero .breadcrumbs a,
.detail-hero .breadcrumbs span,
.detail-hero p {
    color: rgba(255, 255, 255, 0.86);
}

.detail-hero h1 {
    color: #fffdf8;
}

.hero-price {
    color: #fff3c4;
}

.detail-hero .hero-chips span {
    border-color: rgba(255, 233, 177, 0.48);
    background: rgba(255, 247, 225, 0.92);
    color: #172033;
    font-weight: 700;
    text-shadow: none;
}

.quick-contact-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(16, 24, 39, 0.98), rgba(34, 43, 61, 0.97) 62%, rgba(64, 51, 34, 0.96)),
        var(--navy) !important;
    border-color: rgba(234, 216, 170, 0.42);
    color: #fff;
}

.quick-contact-card::before {
    background:
        radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.10) 1px, transparent 1.4px) 0 0 / 36px 36px,
        repeating-linear-gradient(35deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px),
        repeating-linear-gradient(125deg, rgba(201, 154, 61, 0.07) 0 1px, transparent 1px 34px),
        radial-gradient(ellipse at 86% 20%, transparent 0 34%, rgba(234, 216, 170, 0.16) 34.2% 34.8%, transparent 35%);
}

.quick-contact-card > * {
    position: relative;
    z-index: 1;
}

.quick-contact-card h2,
.quick-contact-card strong {
    color: #fff4ca;
}

.quick-contact-card h2 {
    border-bottom-color: rgba(234, 216, 170, 0.28);
}

.quick-contact-card p,
.quick-contact-card .published-ago,
.quick-contact-card .copy-link-status {
    color: rgba(255, 255, 255, 0.84);
}

.quick-contact-card .trust-badge {
    color: #bdf6d2;
}

.quick-contact-card .btn-outline {
    border-color: rgba(255, 244, 202, 0.58);
    background: rgba(255, 255, 255, 0.08);
    color: #fff8dc;
}

.quick-contact-card .btn-outline:hover {
    background: rgba(255, 244, 202, 0.18);
    color: #fff;
}

.detail-card:not(.quick-contact-card),
.filter-card,
.listing-card {
    color: var(--ink);
}

.detail-card:not(.quick-contact-card) p,
.detail-card:not(.quick-contact-card) li,
.detail-card:not(.quick-contact-card) dd,
.listing-card p,
.filter-card p {
    color: var(--ink-mid);
}

.gallery-block {
    align-items: start;
}

.gallery-block img,
.listing-image,
.related-card img {
    filter: saturate(1.06) contrast(1.04);
}

.gallery-block img {
    background: #f6f1e6;
    border: 1px solid rgba(201, 154, 61, 0.30);
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.84) inset;
}

.gallery-block img:first-child {
    box-shadow:
        0 24px 56px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.84) inset;
}

.listing-media::after {
    background:
        linear-gradient(to top, rgba(15, 23, 42, 0.50), rgba(15, 23, 42, 0.04) 58%, transparent);
}

.listing-card:hover .listing-image {
    filter: saturate(1.10) contrast(1.06);
}

.filter-title,
.detail-card h2,
.section-title {
    color: #111827;
}

.spec-grid dt {
    color: #697386;
}

.spec-grid dd {
    color: #151d2b;
}

@media (max-width: 740px) {
    body::before {
        opacity: 0.45;
        background:
            radial-gradient(circle at 10px 10px, rgba(15, 23, 42, 0.035) 1px, transparent 1.4px) 0 0 / 28px 28px,
            repeating-linear-gradient(32deg, rgba(15, 23, 42, 0.022) 0 1px, transparent 1px 28px);
    }

    body::after {
        opacity: 0.08;
    }

    .detail-hero .hero-chips span {
        color: #111827;
    }

    .quick-contact-card {
        background:
            linear-gradient(145deg, rgba(16, 24, 39, 0.99), rgba(36, 45, 64, 0.98)),
            var(--navy) !important;
    }
}

/* ── Responsive: publicacion.php ──────────────────────────────── */
@media (max-width: 740px) {
    /* Hero: reducir padding y font del título */
    .detail-hero {
        padding: 22px 0 18px;
    }
    .detail-hero h1 {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        word-break: break-word;
    }
    .hero-chips {
        margin-top: 10px;
        gap: 5px;
    }
    .hero-chips span {
        padding: 4px 10px;
        font-size: 0.77rem;
    }

    /* Layout: menos padding vertical */
    .detail-layout {
        padding: 14px 0 80px; /* 80px reserva para sticky CTA */
    }

    /* Galería: forzar 1 columna, relación 16/9 */
    .gallery-block {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .gallery-block img {
        aspect-ratio: 16 / 9;
    }

    /* Cards: menos padding */
    .detail-card {
        padding: 16px;
    }

    /* Botones de contacto: ancho completo y texto envolvente */
    .quick-contact-actions .btn {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    /* Publicaciones similares: 1 columna */
    .related-grid {
        grid-template-columns: 1fr;
    }

    /* Related card: padding interno para h3/p/btn sueltos */
    .related-card-body {
        padding: 12px 14px 14px;
    }

    /* Mapa iframe: altura reducida */
    .map-embed {
        height: 220px !important;
    }
}

@media (max-width: 480px) {
    .detail-hero {
        padding: 18px 0 14px;
    }
    .detail-hero h1 {
        font-size: clamp(1.15rem, 5.5vw, 1.4rem);
    }
    .detail-card {
        padding: 14px 12px;
    }
    /* Spec grid: 1 columna en pantallas muy chicas */
    .spec-grid {
        grid-template-columns: 1fr;
    }
    .hero-chips span {
        font-size: 0.74rem;
        padding: 3px 8px;
    }
    /* Mapa iframe: altura mínima en móvil chico */
    .map-embed {
        height: 190px !important;
    }
}

