:root {
    --bg: #ffffff;
    --bg-subtle: #f8fafc;
    --text-title: #091322;
    --text-body: #334155;
    --text-muted: #475569;
    --text-subtle: #64748b;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --primary: #0a1b35;
    --primary-navy: #061124;
    --primary-blue: #1d4ed8;
    --primary-hover: #040c1a;
    --accent-gold: #d97706;
    --accent-gold-light: #fef3c7;
    --accent-emerald: #059669;
    --accent-emerald-light: #ecfdf5;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 2px 8px rgba(10, 25, 47, 0.04);
    --shadow-hover: 0 8px 24px -4px rgba(10, 25, 47, 0.1);
    --shadow-search: 0 4px 20px -2px rgba(10, 25, 47, 0.08), 0 2px 6px -1px rgba(10, 25, 47, 0.03);
    --shadow-search-focus: 0 12px 30px -4px rgba(29, 78, 216, 0.16), 0 4px 10px -2px rgba(10, 25, 47, 0.05);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: var(--bg);
    color: var(--text-body);
    font-family: var(--font);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (max-width: 640px) {
    .container { padding: 0 0.85rem; }
}
@media (min-width: 1280px) {
    .container { max-width: 1220px; padding: 0 2rem; }
}

/* Header Minimalista Exacto a index.php */
.site-header {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.2s ease;
    width: 100%;
}
@media (min-width: 768px) {
    .site-header { padding: 1.1rem 0; }
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text-title);
    flex-shrink: 0;
    min-width: 0;
}
.brand-seal {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    color: #ffffff;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    box-shadow: 0 2px 8px rgba(10, 27, 53, 0.18);
}
.brand-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.brand-text {
    font-size: clamp(0.85rem, 3.8vw, 1.05rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
}
.brand-text span {
    color: var(--primary-blue);
}
.brand-subline {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-top: 2px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .header-actions { gap: 0.75rem; }
}
.nav-desktop-only {
    display: inline-flex;
}
@media (max-width: 768px) {
    .nav-desktop-only {
        display: none !important;
    }
}
@media (max-width: 480px) {
    .brand { gap: 0.45rem; }
    .brand-seal { width: 30px; height: 30px; font-size: 0.8rem; border-radius: 7px; }
    .brand-text { font-size: 0.86rem; }
    .brand-subline { font-size: 0.58rem; }
    .header-actions { gap: 0.35rem; }
}
.btn-login {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-title);
    text-decoration: none;
    white-space: nowrap;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}
@media (max-width: 480px) {
    .btn-login { padding: 0.35rem 0.5rem; font-size: 0.78rem; }
}
.btn-login:hover {
    color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.07);
}
.btn-top {
    background: var(--primary);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(10, 27, 53, 0.15);
}
@media (max-width: 480px) {
    .btn-top { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
}
.btn-top:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 27, 53, 0.22);
}
.text-mobile { display: none; }
.text-desktop { display: inline; }
@media (max-width: 640px) {
    .text-mobile { display: inline; }
    .text-desktop { display: none; }
}

/* Hero Section en Gama Clara */
.hero {
    background: radial-gradient(circle at 50% 0%, #f1f5f9 0%, #ffffff 75%);
    padding: 2.75rem 0 2.25rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
@media (max-width: 640px) {
    .hero { padding: 1.5rem 0 1.25rem; }
}
.hero-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-emerald-light);
    border: 1px solid rgba(5, 150, 105, 0.25);
    color: var(--accent-emerald);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
@media (max-width: 640px) {
    .hero-badge-live { font-size: 0.72rem; padding: 0.25rem 0.65rem; margin-bottom: 0.75rem; }
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulseAnimation 2s infinite;
}
@keyframes pulseAnimation {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(0.95); opacity: 1; }
}
.hero-title {
    font-size: clamp(1.6rem, 4.2vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-title);
    margin-bottom: 0.85rem;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 640px) {
    .hero-title { font-size: 1.4rem; margin-bottom: 0.5rem; }
}
.hero-title span {
    color: var(--primary-blue);
}
.hero-desc {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 1.6vw, 1.1rem);
    max-width: 780px;
    margin: 0 auto 1.85rem;
    line-height: 1.6;
}
@media (max-width: 640px) {
    .hero-desc { font-size: 0.82rem; margin-bottom: 1.25rem; line-height: 1.5; }
}
.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 950px;
    margin: 0 auto;
}
@media (max-width: 860px) and (min-width: 641px) {
    .hero-stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .hero-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem;
    }
}
.hero-stat-card {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 1.1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    text-align: left;
}
@media (max-width: 640px) {
    .hero-stat-card {
        padding: 0.65rem 0.75rem;
        border-radius: var(--radius-sm);
    }
}
.hero-stat-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-title);
    line-height: 1;
    margin-bottom: 0.35rem;
}
@media (max-width: 640px) {
    .hero-stat-val {
        font-size: 1.25rem;
        margin-bottom: 0.2rem;
    }
    .hero-stat-val.responsive-stat {
        font-size: 1.05rem !important;
    }
}
.hero-stat-val.gold { color: var(--accent-gold); }
.hero-stat-val.emerald { color: var(--accent-emerald); }
.hero-stat-label {
    color: var(--text-subtle);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
@media (max-width: 640px) {
    .hero-stat-label {
        font-size: 0.65rem;
        line-height: 1.25;
    }
}

/* Controles / Buscador & Filtros */
.controls-section {
    padding: 1.75rem 0 1.25rem;
}
@media (max-width: 640px) {
    .controls-section { padding: 0.85rem 0 1rem; }
}
.controls-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-search);
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 640px) {
    .controls-card {
        padding: 0.75rem;
        border-radius: var(--radius-md);
    }
}
.controls-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
}
@media (min-width: 1100px) {
    .controls-grid { grid-template-columns: 1.8fr repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 641px) and (max-width: 1099px) {
    .controls-grid { grid-template-columns: 1fr 1fr 1fr; }
    .controls-grid .search-input-wrap { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .controls-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
}
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
@media (max-width: 640px) {
    .search-input-wrap {
        grid-column: 1 / -1;
    }
}
.search-input-wrap svg {
    position: absolute;
    left: 0.85rem;
    color: var(--text-subtle);
    pointer-events: none;
}
.search-input {
    width: 100%;
    padding: 0.75rem 0.85rem 0.75rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-title);
    background: #ffffff;
    transition: all 0.2s;
    box-sizing: border-box;
}
@media (max-width: 640px) {
    .search-input {
        padding: 0.65rem 0.75rem 0.65rem 2.25rem;
        font-size: 0.84rem;
        border-radius: var(--radius-sm);
    }
}
.search-input:focus, .control-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.control-select {
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-body);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
@media (max-width: 640px) {
    .control-select {
        padding: 0.6rem 0.5rem;
        font-size: 0.78rem;
        border-radius: var(--radius-sm);
    }
    .select-span-full-mobile {
        grid-column: 1 / -1;
    }
}
.pills-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.15rem;
}
.pills-bar::-webkit-scrollbar {
    display: none;
}
.pills-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 0.25rem;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .pills-label {
        font-size: 0.72rem;
    }
}
.pill-btn {
    background: var(--bg-subtle);
    color: var(--text-body);
    border: 1px solid var(--border);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .pill-btn {
        padding: 0.3rem 0.65rem;
        font-size: 0.75rem;
    }
}
.pill-btn:hover {
    border-color: var(--border-hover);
    color: var(--primary-blue);
}
.pill-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Banner de Estrategia Freemium / Candados */
.freemium-info-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.835rem;
    color: #1e3a8a;
}
@media (max-width: 640px) {
    .freemium-info-banner {
        padding: 0.75rem 0.85rem;
        font-size: 0.78rem;
        gap: 0.6rem;
        margin-bottom: 1rem;
    }
    .freemium-info-banner .btn-upgrade-pill {
        width: 100%;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.55rem 0.85rem;
        font-size: 0.82rem;
    }
}
.freemium-info-banner strong {
    color: #0f172a;
}
.btn-upgrade-pill {
    background: var(--primary-blue);
    color: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-upgrade-pill:hover {
    background: #1e40af;
}

/* Catálogo de Tarjetas */
.catalog-section {
    padding: 1rem 0 3rem;
}
@media (max-width: 640px) {
    .catalog-section {
        padding: 0.5rem 0 2rem;
    }
}
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
@media (max-width: 640px) {
    .section-header-row {
        margin-bottom: 1rem;
    }
}
.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -0.02em;
}
@media (max-width: 640px) {
    .section-title {
        font-size: 1.2rem;
    }
}
.section-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 2px;
}
@media (max-width: 640px) {
    .section-subtitle {
        font-size: 0.8rem;
    }
}
.results-count {
    color: var(--primary-blue);
    font-weight: 700;
}
.remates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    width: 100%;
}
@media (max-width: 640px) {
    .remates-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
.remate-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    position: relative;
}
.remate-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.card-top {
    padding: 1.25rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--border);
}
.card-badges-row {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}
.badge-almoneda {
    background: #eff6ff;
    color: var(--primary-blue);
    border: 1px solid #bfdbfe;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
}
.badge-almoneda-2 {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}
.badge-ciudad {
    background: var(--bg-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
}
.badge-demo {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-locked-flag {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Badges de Fecha de Audiencia / Urgencia */
.badge-audiencia {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    letter-spacing: 0.02em;
}
.badge-audiencia.badge-urgent {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.badge-audiencia.badge-medium {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.badge-audiencia.badge-future {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.badge-audiencia.badge-concluded {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-title);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}
.card-location {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Efecto Blur y Candado */
.court-meta {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.8rem;
}
.court-meta-locked {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}
.blurred-content {
    filter: blur(4px);
    opacity: 0.45;
    user-select: none;
    pointer-events: none;
}
.blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(2px);
}
.lock-badge {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.02em;
}
.court-meta-item {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}
.court-meta-label {
    color: var(--text-subtle);
    font-weight: 600;
}
.court-meta-val {
    color: var(--text-title);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}
.price-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
}
.price-sub {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-subtle);
    margin-bottom: 0.35rem;
}
.price-val-avaluo {
    text-decoration: line-through;
    font-weight: 600;
}
.price-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.35rem;
}
.price-label-postura {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-title);
    text-transform: uppercase;
}
.price-val-postura {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.discount-pill {
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-left: 0.35rem;
}
.deposit-info {
    font-size: 0.76rem;
    color: var(--text-muted);
    border-top: 1px dashed var(--border);
    padding-top: 0.35rem;
    display: flex;
    justify-content: space-between;
}
.card-footer {
    padding: 0.85rem 1.25rem;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
@media (max-width: 640px) {
    .card-top {
        padding: 1rem 1rem 0.75rem;
    }
    .card-body {
        padding: 1rem;
        gap: 0.85rem;
    }
    .card-footer {
        padding: 0.85rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }
    .auction-date {
        font-size: 0.8rem;
    }
    .btn-view-edicto, .btn-unlock-remate {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        font-size: 0.85rem;
        padding: 0.65rem 1rem;
    }
}
.auction-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-title);
}
.btn-view-edicto {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(10, 27, 53, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.btn-view-edicto:hover {
    background: var(--primary-hover);
}
.btn-unlock-remate {
    background: linear-gradient(135deg, #1e3a8a 0%, #0a1b35 100%);
    color: #ffffff;
    border: 1px solid #1e3a8a;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(10, 27, 53, 0.18);
}
.btn-unlock-remate:hover {
    background: #040c1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 27, 53, 0.28);
}

/* Secciones Educativas / Tablas & Calculadora en Light Theme */
.info-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}
.info-card-wrap {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-subtle);
}
.comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-top: 1.5rem;
}
.comp-table th {
    background: var(--bg-subtle);
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-title);
    border-bottom: 2px solid var(--border);
}
.comp-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-body);
}
.tag-check {
    color: var(--accent-emerald);
    font-weight: 700;
}
.tag-cross {
    color: #dc2626;
    font-weight: 600;
}
.calc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 840px) {
    .calc-grid { grid-template-columns: 1.2fr 1fr; }
}
.range-slider {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: var(--radius-full);
    outline: none;
    cursor: pointer;
    accent-color: var(--primary-blue);
}
.calc-res-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.calc-res-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.calc-res-label {
    font-size: 0.8rem;
    color: var(--text-subtle);
    font-weight: 600;
    text-transform: uppercase;
}
.calc-res-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-title);
}
.calc-res-val.highlight {
    color: var(--primary-blue);
}

/* Pasos de Participación */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}
.step-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-subtle);
}
.step-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.6rem;
}
.step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 0.4rem;
}
.step-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Formulario Lead WhatsApp */
.alerts-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-search);
    max-width: 680px;
    margin: 1.5rem auto 0;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (min-width: 600px) {
    .form-row.two-col { grid-template-columns: 1fr 1fr; }
}
.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 0.35rem;
}
.form-input, .form-select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text-title);
    background: #ffffff;
    transition: all 0.15s;
}
.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.btn-submit-alert {
    width: 100%;
    background: var(--accent-emerald);
    color: #ffffff;
    border: none;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
    transition: all 0.2s;
}
.btn-submit-alert:hover {
    background: #047857;
    transform: translateY(-1px);
}
.btn-submit-alert:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.alert-feedback {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: none;
}
.alert-feedback.success {
    display: block;
    background: var(--accent-emerald-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.alert-feedback.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Modales */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 19, 34, 0.65);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.active { display: flex; }
.modal-container {
    background: #ffffff;
    border-radius: var(--radius-lg);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-subtle);
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.modal-close-btn:hover {
    color: var(--text-title);
    background: var(--bg-subtle);
}
.edicto-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    font-family: monospace;
    font-size: 0.78rem;
    color: var(--text-body);
    max-height: 180px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.45;
    margin-top: 0.35rem;
}
.print-only-banner, .print-only-instructions, .print-only-footer {
    display: none;
}

/* Footer Exacto a index.php */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    background: var(--bg);
    text-align: center;
    font-size: 0.9rem;
}
.footer-dir-row {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.footer-dir-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-title);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}
.footer-dir-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    font-size: 0.875rem;
}
.footer-dir-links a {
    color: var(--text-body);
    font-weight: 600;
    text-decoration: none;
}
.footer-dir-links a:hover {
    color: var(--primary-blue);
}
.footer-legal-links a {
    color: var(--text-body);
    font-weight: 600;
    text-decoration: underline;
    margin: 0 0.5rem;
}
.footer-legal-links a:hover {
    color: var(--primary-blue);
}

/* Impresión / PDF */
@media print {
    @page {
        size: letter portrait;
        margin: 1cm 1.2cm;
    }
    html, body {
        background: #ffffff !important;
        color: #0f172a !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    /* Ocultar toda la interfaz del sitio web, héroe, filtros, teaser, catálogo de tarjetas completas y pie */
    .site-header,
    .hero,
    .controls-section,
    .teaser-section,
    .catalog-section,
    .info-section,
    .footer,
    .btn-view-edicto,
    .btn-unlock-remate,
    .modal-close-btn,
    .modal-footer-btns,
    #unlockModal {
        display: none !important;
    }
    /* Ocultar modales por defecto */
    .modal-overlay {
        display: none !important;
        position: static !important;
        background: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    /* Solo se imprime el modal que esté activo (la ficha seleccionada) */
    .modal-overlay.active {
        display: block !important;
        position: static !important;
        background: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .modal-container {
        max-width: 100% !important;
        width: 100% !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        border: none !important;
    }
    .modal-header {
        padding: 0 0 0.5rem 0 !important;
        margin-bottom: 0.75rem !important;
        border-bottom: 1px solid #cbd5e1 !important;
    }
    .modal-body {
        padding: 0 !important;
        overflow: visible !important;
    }
    .court-meta {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        padding: 0.65rem 0.85rem !important;
        margin-bottom: 0.85rem !important;
        page-break-inside: avoid;
    }
    .price-box {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        padding: 0.65rem 0.85rem !important;
        margin-bottom: 0.85rem !important;
        page-break-inside: avoid;
    }
    .edicto-box {
        max-height: none !important;
        overflow: visible !important;
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        page-break-inside: avoid;
        white-space: pre-wrap !important;
        font-size: 8pt !important;
        color: #1e293b !important;
    }
    .print-only-banner, 
    .print-only-instructions, 
    .print-only-footer {
        display: block !important;
    }
}

/* Barra de Usuario Unificado en Header */
.user-unified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 0.25rem 0.5rem 0.25rem 0.35rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-subtle);
}
.user-unified-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), #1e3a8a);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}
.user-unified-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}
.user-unified-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-title);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-unified-plan {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-emerald);
}

/* Banner de Pago / Notificación */
.banner-pago-exitoso {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-bottom: 2px solid #10b981;
    padding: 0.9rem 1rem;
    color: #065f46;
}
.banner-pago-cancelado {
    background: #fffbeb;
    border-bottom: 2px solid #f59e0b;
    padding: 0.85rem 1rem;
    color: #92400e;
}
.banner-pago-inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: 1200px;
    margin: 0 auto;
}
.banner-pago-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.banner-pago-text {
    font-size: 0.86rem;
    line-height: 1.45;
    flex-grow: 1;
}
.banner-pago-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: inherit;
    cursor: pointer;
    padding: 0 0.5rem;
}

/* Sección Teaser / Muestra Interactiva Antes vs Después */
.teaser-section {
    padding: 2.5rem 0 1rem;
    background: #ffffff;
}
.teaser-box {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}
.teaser-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 1.75rem;
}
.teaser-eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-blue);
    display: inline-block;
    margin-bottom: 0.4rem;
}
.teaser-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-title);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}
.teaser-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
@media (max-width: 860px) {
    .teaser-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
@media (max-width: 640px) {
    .teaser-section {
        padding: 1.5rem 0;
    }
    .teaser-box {
        padding: 1rem;
        border-radius: var(--radius-md);
    }
    .teaser-title {
        font-size: 1.25rem;
    }
    .teaser-subtitle {
        font-size: 0.82rem;
    }
    .teaser-card {
        padding: 1rem;
    }
    .teaser-item {
        flex-direction: column;
        gap: 0.15rem;
        padding: 0.45rem 0;
    }
    .teaser-item-label {
        min-width: unset;
        font-size: 0.75rem;
        color: var(--text-muted);
    }
    .teaser-item-val {
        font-size: 0.82rem;
    }
    .teaser-cta-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .teaser-cta-prices {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
    }
    .teaser-price-pill {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0.75rem;
        border-radius: var(--radius-sm);
        font-size: 0.78rem;
    }
    .teaser-cta-bar .btn-top {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.65rem;
    }
}
.teaser-card {
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border);
    background: #ffffff;
    position: relative;
    box-shadow: var(--shadow-subtle);
}
.teaser-card.free {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.teaser-card.unlocked {
    background: #ffffff;
    border: 2px solid #10b981;
    box-shadow: 0 8px 24px -6px rgba(16, 185, 129, 0.15);
}
.teaser-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.85rem;
}
.teaser-card.free .teaser-card-badge {
    background: #f1f5f9;
    color: #64748b;
}
.teaser-card.unlocked .teaser-card-badge {
    background: #d1fae5;
    color: #065f46;
}
.teaser-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.84rem;
}
.teaser-item:last-child {
    border-bottom: none;
}
.teaser-item-icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.teaser-item-label {
    font-weight: 700;
    color: var(--text-title);
    min-width: 110px;
}
.teaser-item-val {
    color: var(--text-body);
    flex-grow: 1;
}
.teaser-blur-text {
    background: #e2e8f0;
    color: #94a3b8;
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-family: monospace;
    filter: blur(1.5px);
    user-select: none;
}
.teaser-cta-bar {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.teaser-cta-prices {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.teaser-price-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
}

/* Modal de Precios y Checkout */
.plan-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.25rem 0;
}
@media (max-width: 600px) {
    .plan-options-grid {
        grid-template-columns: 1fr;
    }
}
.plan-option-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #ffffff;
}
.plan-option-card:hover {
    border-color: var(--primary-blue);
}
.plan-option-card.selected {
    border-color: var(--primary-blue);
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.12);
}
.plan-option-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}
.plan-option-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-title);
}
.plan-option-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
    margin: 0.35rem 0;
}
.plan-option-price span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-subtle);
}
.plan-option-desc {
    font-size: 0.77rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.65rem;
}
.plan-option-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.76rem;
    color: var(--text-body);
}
.plan-option-features li {
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.plan-tag-recom {
    position: absolute;
    top: -10px;
    right: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.plan-tag-discount {
    background: #fef3c7;
    color: #b45309;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 0.3rem;
}
