/* =====================================================
   TUHOME INMOBILIARIA — PUBLIC.CSS
   Paleta basada en el logo: fondo pizarra oscuro,
   naranja cálido y verde como acentos.
   ===================================================== */

:root {
    --bg-dark: #14151f;
    --bg-surface: #1d1f2b;
    --bg-surface-2: #262838;
    --bg-elevated: #2e3142;
    --orange: #f2650c;
    --orange-light: #ff8a3d;
    --green: #1f9ee0;
    --green-light: #5fc3ef;
    --white: #f5f5f7;
    --text-muted: #a9acc0;
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-brand: 0 20px 45px -12px rgba(242, 101, 12, 0.35);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --transition: all 0.25s cubic-bezier(.4,0,.2,1);
    --font-heading: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body.public-body {
    background: radial-gradient(ellipse at top, #1a1c29 0%, var(--bg-dark) 60%);
    color: var(--white);
    font-family: var(--font-body);
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .navbar-logo, .btn-primary-tuhome, .btn-outline-tuhome, .navbar-btn {
    font-family: var(--font-heading);
}
body.public-body::before,
body.public-body::after {
    content: '';
    position: fixed;
    width: 480px; height: 480px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}
body.public-body::before { background: var(--orange); top: -100px; left: -140px; }
body.public-body::after { background: var(--green); bottom: -140px; right: -120px; }
body.public-body > *:not(.modal-overlay):not(.whatsapp-flotante):not(.navbar-tuhome) { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

.container-tuhome {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- NAVBAR ---------- */
.navbar-tuhome {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(20, 21, 31, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1240px;
    margin: 0 auto;
}

.navbar-logo { display: flex; align-items: center; gap: 8px; }
.navbar-logo img { height: 40px; display: block; }

.navbar-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.navbar-links a {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
}

.navbar-links > a:not(.navbar-btn):hover {
    color: var(--orange-light);
    background: rgba(242, 101, 12, 0.08);
}

.navbar-link-btn {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: none;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.navbar-link-btn:hover {
    color: var(--orange-light);
    background: rgba(242, 101, 12, 0.08);
}

/* ---------- RULETA DE FRASES ---------- */
.ruleta-frases {
    text-align: center;
    padding: 13px 20px;
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: background 0.7s ease;
}
.ruleta-frases span { transition: opacity 0.35s ease; }
.ruleta-frases span.fundido { opacity: 0; }
.ruleta-color-1 { background: linear-gradient(135deg, #f2650c, #ff8a3d); }
.ruleta-color-2 { background: linear-gradient(135deg, #1f9ee0, #5fc3ef); }
.ruleta-color-3 { background: linear-gradient(135deg, #3d7bff, #6fa8ff); }
.ruleta-color-4 { background: linear-gradient(135deg, #a24dff, #c98bff); }
.ruleta-color-5 { background: linear-gradient(135deg, #ff4d8d, #ff85b3); }

.navbar-cta {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(242, 101, 12, 0.35);
}

.navbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.navbar-btn-outline {
    background: transparent;
    border: 1px solid var(--border-soft);
    color: var(--green-light) !important;
    padding: 7px 12px;
}
.navbar-btn-outline:hover {
    color: var(--green-light);
    border-color: var(--green);
    background: rgba(31, 158, 224, 0.08);
}
.navbar-btn-cta {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(242, 101, 12, 0.35);
}
.navbar-btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(242, 101, 12, 0.45); }

/* ---------- MODALES (contacto / confirmaciones) ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 14, 0.78);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}
.modal-overlay.abierto { display: flex; }
.modal-card {
    background: linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-surface-2) 100%);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 38px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 70px -15px rgba(0,0,0,0.55);
}
.modal-cerrar {
    position: absolute;
    top: 14px;
    right: 18px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1;
    transition: var(--transition);
}
.modal-cerrar:hover { color: var(--orange-light); }
.modal-card h3 { margin: 6px 0 10px; font-size: 1.3rem; }
.modal-mensaje { color: var(--text-muted); margin-bottom: 26px; line-height: 1.6; }
.modal-botones { display: flex; flex-direction: column; gap: 14px; }
.btn-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 999px;
    font-weight: 700;
    transition: var(--transition);
}
.btn-modal:hover { transform: translateY(-2px); }
.btn-modal-whatsapp { background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4); }
.btn-modal-whatsapp:hover { box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5); }
.btn-modal-email {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    box-shadow: 0 8px 22px rgba(242, 101, 12, 0.4);
}
.btn-modal-email:hover { box-shadow: 0 12px 28px rgba(242, 101, 12, 0.5); }

/* ---------- MODAL DE PREGUNTAS FRECUENTES (acordeón) ---------- */
.modal-card-faq {
    max-width: 640px;
    text-align: left;
    max-height: 85vh;
    overflow-y: auto;
}
.modal-card-faq h3 { text-align: center; margin-bottom: 20px; }
.faq-categoria { margin-bottom: 22px; }
.faq-categoria-titulo {
    display: flex; align-items: center; gap: 8px;
    color: var(--green-light); font-weight: 700; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.03em;
    margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border-soft);
}
.faq-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 8px;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: var(--transition);
    margin-left: 12px;
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(180deg); color: var(--orange-light); }
.faq-item p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 12px 0 2px;
}

.faq-contacto {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
}
.faq-contacto p {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.faq-contacto p i { color: var(--orange-light); }
.faq-contacto .modal-botones { flex-direction: row; }

@media (max-width: 600px) {
    .faq-contacto .modal-botones { flex-direction: column; }
}

.navbar-burger {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---------- TÍTULO DE PLATAFORMA (solo inicio, sin fondo, con degradado) ---------- */
.titulo-plataforma-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 20px 4px;
    text-align: center;
}
.titulo-plataforma-simple i {
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--orange), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.titulo-plataforma-simple h1 {
    margin: 0;
    font-size: clamp(1.15rem, 2.6vw, 1.6rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 45%, var(--green-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- HERO ---------- */
.hero-tuhome {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(180deg, rgba(20,21,31,0.4), rgba(20,21,31,0.95)),
        url('../img/hero-bg.jpg') center/cover no-repeat;
    background-color: var(--bg-surface);
}

/* ---------- BANNER DE ALCANCE / ESCALA (imagen decorativa) ---------- */
.banner-alcance {
    position: relative;
    background: linear-gradient(0deg, rgba(20,21,31,0.88), rgba(20,21,31,0.72)), url('../img/banner-alcance.jpg') center/cover no-repeat;
    padding: 70px 20px;
    text-align: center;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}
.banner-alcance-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(20,21,31,0.5) 100%);
    pointer-events: none;
}
.banner-alcance-contenido { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.banner-alcance-contenido .eyebrow {
    color: var(--orange-light); text-transform: uppercase; font-weight: 700;
    letter-spacing: 0.08em; font-size: 0.8rem; display: inline-flex; align-items: center; gap: 8px;
}
.banner-alcance-contenido h2 {
    font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin: 12px 0 14px; color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.banner-alcance-contenido p {
    color: #d8d8e2; font-size: 1rem; margin-bottom: 34px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.banner-alcance-stats {
    display: flex; justify-content: center; gap: 50px; flex-wrap: wrap;
}
.banner-alcance-stats div { display: flex; flex-direction: column; align-items: center; }
.banner-alcance-stats strong {
    font-size: 2.1rem; font-weight: 800; color: #fff; font-family: var(--font-heading);
    text-shadow: 0 4px 16px rgba(242,101,12,0.4);
}
.banner-alcance-stats span { color: var(--text-muted); font-size: 0.82rem; margin-top: 4px; }

@media (max-width: 600px) {
    .banner-alcance { padding: 50px 18px; }
    .banner-alcance-stats { gap: 28px; }
    .banner-alcance-stats strong { font-size: 1.6rem; }
}

/* ---------- HERO CARRUSEL (grande, estilo showroom) ---------- */
.hero-carrusel-wrap {
    position: relative;
    width: 100%;
    height: clamp(460px, 68vh, 620px);
    overflow: hidden;
    background: var(--bg-dark);
}
.hero-carrusel-viewport { width: 100%; height: 100%; overflow: hidden; }
.hero-carrusel-track { display: flex; height: 100%; transition: transform 0.7s cubic-bezier(.4,0,.2,1); }
.hero-carrusel-slide {
    min-width: 100%; height: 100%;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.hero-slide-degradado { background: linear-gradient(135deg, #1c1e2c, #262838 60%, #1c1e2c); }
.hero-slide-degradado::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(251,191,36,0.18), transparent 55%),
                radial-gradient(circle at 75% 70%, rgba(242,101,12,0.14), transparent 55%);
}

.hero-slide-content {
    position: relative; z-index: 2; text-align: center; max-width: 720px; padding: 0 24px;
}
.hero-slide-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(242,101,12,0.16); border: 1px solid rgba(242,101,12,0.4); color: var(--orange-light);
    padding: 7px 16px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; margin-bottom: 18px;
}
.hero-slide-eyebrow.acento-2 { background: rgba(129,140,248,0.16); border-color: rgba(129,140,248,0.4); color: #a5b4fc; }
.hero-slide-eyebrow.acento-3 { background: rgba(251,191,36,0.16); border-color: rgba(251,191,36,0.4); color: #fbbf24; }
.hero-slide-eyebrow.acento-4 { background: rgba(251,113,133,0.16); border-color: rgba(251,113,133,0.4); color: #fb7185; }

.hero-slide-content h1 {
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    font-weight: 800; line-height: 1.15; margin: 0 0 16px; color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.hero-slide-content h1 span { color: var(--orange-light); }
.hero-slide-content p {
    color: #e4e4ec; font-size: 1.1rem; margin: 0 auto 30px; max-width: 560px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-slide-content .btn-primary-tuhome { border: none; cursor: pointer; }

.hero-carrusel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(10,10,15,0.55); border: 1px solid rgba(255,255,255,0.15); color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5; font-size: 1.1rem; transition: var(--transition);
    backdrop-filter: blur(4px);
}
.hero-carrusel-arrow:hover { background: var(--orange); border-color: var(--orange); }
.hero-arrow-prev { left: 22px; }
.hero-arrow-next { right: 22px; }

.hero-carrusel-pausa {
    position: absolute; bottom: 24px; left: 24px; z-index: 5;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(10,10,15,0.55); border: 1px solid rgba(255,255,255,0.15); color: #fff;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    backdrop-filter: blur(4px); transition: var(--transition);
}
.hero-carrusel-pausa:hover { background: rgba(10,10,15,0.8); }

.hero-carrusel-dots {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 5;
}
.hero-carrusel-dots .dot-hero {
    width: 26px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.35); cursor: pointer; transition: var(--transition);
}
.hero-carrusel-dots .dot-hero.activo { background: var(--orange); }

@media (max-width: 768px) {
    .hero-carrusel-wrap { height: 78vh; min-height: 500px; }
    .hero-carrusel-arrow { width: 38px; height: 38px; font-size: 0.9rem; }
    .hero-arrow-prev { left: 10px; }
    .hero-arrow-next { right: 10px; }
}

.hero-content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px;
}

.hero-content h1 span { color: var(--orange-light); }

.hero-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 560px;
    margin-bottom: 30px;
}

.btn-primary-tuhome {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 60%, #ffb066 100%);
    color: #fff;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(242, 101, 12, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.btn-primary-tuhome:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(242, 101, 12, 0.5), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-primary-tuhome:active { transform: translateY(-1px); }

.btn-outline-tuhome {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(31,158,224,0.06);
    border: 1.5px solid var(--green);
    color: var(--green-light);
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-tuhome:hover { background: rgba(31, 158, 224, 0.16); transform: translateY(-2px); }

/* ---------- BUSCADOR ---------- */
.buscador-card {
    background: rgba(29, 31, 43, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 25px 60px -15px rgba(0,0,0,0.5);
    margin-top: 30px;
    position: relative;
    z-index: 10;
}

.buscador-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 14px;
}

.buscador-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.buscador-field select {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    color: var(--white);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    appearance: none;
}

.buscador-field select:focus { outline: 2px solid var(--orange); }

.visitas-sitio-badge {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    max-width: fit-content; margin: 26px auto 0;
    background: linear-gradient(135deg, rgba(242,101,12,0.12), rgba(31,158,224,0.12));
    border: 1px solid rgba(242,101,12,0.3);
    padding: 16px 34px; border-radius: 999px;
    box-shadow: 0 10px 30px rgba(242,101,12,0.18);
}
.visitas-sitio-badge i {
    font-size: 2rem;
    background: linear-gradient(135deg, #ffd452, #4ade80);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255,212,82,0.4));
}
.visitas-sitio-badge strong {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #ffd452, #4ade80);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

@media (max-width: 480px) {
    .visitas-sitio-badge { padding: 12px 24px; gap: 12px; }
    .visitas-sitio-badge i { font-size: 1.5rem; }
    .visitas-sitio-badge strong { font-size: 1.9rem; }
}

.btn-buscar {
    background: linear-gradient(135deg, var(--green), var(--green-light));
    border: none;
    color: #0d1a06;
    font-weight: 700;
    padding: 0 26px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
}

.btn-buscar:hover { filter: brightness(1.08); }

/* ---------- SECCIONES ---------- */
.seccion { padding: 70px 0; }
.seccion-header { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.seccion-header .eyebrow {
    color: var(--green-light);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}
.seccion-header h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 8px 0 12px; position: relative; display: inline-block; }
.seccion-header h2::after {
    content: '';
    display: block;
    width: 56px; height: 4px; border-radius: 4px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, var(--orange), var(--green));
}
.seccion-header p { color: var(--text-muted); }

/* ---------- TARJETAS DE PROPIEDAD (estilo premium) ---------- */
.grid-propiedades {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.card-propiedad {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-propiedad:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px -14px rgba(0,0,0,0.5);
    border-color: rgba(242, 101, 12, 0.35);
}
.card-propiedad:hover .card-propiedad-img img,
.card-propiedad:hover .card-propiedad-img { filter: brightness(1.04); }

.card-propiedad-img {
    height: 230px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: var(--transition);
}
.card-propiedad-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,21,31,0) 45%, rgba(20,21,31,0.75) 100%);
}

.badge-operacion {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: rgba(20,21,31,0.55);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.badge-operacion i { color: var(--orange-light); font-size: 0.7rem; }

.badge-destacado {
    position: absolute;
    top: 52px;
    left: 14px;
    z-index: 2;
    background: linear-gradient(135deg, var(--green), var(--green-light));
    color: #0d1a06;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(31,158,224,0.4);
}

.sello-vendido {
    position: absolute; inset: 0; z-index: 3;
    display: flex; align-items: center; justify-content: center;
    background: rgba(10,10,15,0.35);
}
.sello-vendido span {
    color: #ff2d2d;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 4px solid #ff2d2d;
    padding: 8px 22px;
    border-radius: 10px;
    transform: rotate(-12deg);
    background: rgba(20,21,31,0.55);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    box-shadow: 0 0 0 4px rgba(255,45,45,0.15);
}

.card-stats-fila {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin: 12px 0;
}
.card-stats-fila span {
    display: flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--text-muted);
    background: var(--bg-elevated); padding: 5px 10px; border-radius: 8px;
}
.card-stats-fila i { color: var(--green-light); font-size: 0.78rem; }
.card-stats-fila .stat-propietario {
    color: var(--orange-light); font-weight: 700;
    background: rgba(242,101,12,0.1); border: 1px solid rgba(242,101,12,0.25);
}
.card-stats-fila .stat-propietario i { color: var(--orange-light); }

.card-propiedad-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; position: relative; }
.card-propiedad-body h3 {
    font-size: 1.05rem; margin: 0 0 6px; font-weight: 700; line-height: 1.35;
    display: flex; align-items: center; gap: 8px;
}
.card-propiedad-body h3 i { color: var(--orange-light); font-size: 0.9rem; flex-shrink: 0; }
.card-propiedad-precio {
    color: var(--orange-light); font-size: 1.4rem; font-weight: 800; margin: 4px 0 2px;
    font-family: var(--font-heading);
    display: flex; align-items: center; gap: 8px;
}
.card-propiedad-precio i { font-size: 1rem; opacity: 0.85; }
.card-propiedad-loc { color: var(--text-muted); font-size: 0.86rem; display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.card-propiedad-body .btn-ver { margin-top: auto; width: 100%; justify-content: center; }

/* ---------- CARD PROPIEDAD — estilo anuncio (precio flotante + iconos circulares) ---------- */
.card-propiedad-precio-flotante {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #1c1005; padding: 8px 14px; border-radius: 10px;
    font-weight: 800; font-size: 0.95rem; line-height: 1.1;
    box-shadow: 0 8px 20px rgba(242,101,12,0.45);
    display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.card-propiedad-precio-flotante i { font-size: 0.8rem; opacity: 0.85; }

.card-propiedad-loc-flotante {
    position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
    background: rgba(10,10,15,0.6); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 10px;
    padding: 9px 12px; color: #fff; font-size: 0.8rem;
    display: flex; align-items: center; gap: 8px;
}
.card-propiedad-loc-flotante i { color: var(--orange-light); flex-shrink: 0; }
.card-propiedad-loc-flotante span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card-caracteristicas {
    display: flex; align-items: stretch; margin: 4px 0 16px;
    padding: 12px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
}
.card-caracteristica { flex: 1; text-align: center; position: relative; }
.card-caracteristica:not(:first-child)::before {
    content: ''; position: absolute; left: 0; top: 8%; bottom: 8%; width: 1px; background: var(--border-soft);
}
.card-caracteristica i {
    width: 32px; height: 32px; border-radius: 50%;
    border: 2px solid var(--orange); color: var(--orange-light);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 6px; font-size: 0.8rem;
}
.card-caracteristica span { display: block; font-weight: 800; font-size: 0.92rem; }
.card-caracteristica small { display: block; color: var(--text-muted); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.02em; margin-top: 1px; }

@media (max-width: 480px) {
    .card-caracteristicas { flex-wrap: wrap; }
    .card-caracteristica { flex: 1 1 50%; margin-bottom: 10px; }
}

/* ---------- CARRUSEL ---------- */
.carrusel-wrap { position: relative; overflow: hidden; border-radius: var(--radius); }
.carrusel-track { display: flex; transition: transform 0.5s ease; }
.carrusel-slide { min-width: 100%; }
.carrusel-controles { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.carrusel-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-soft); cursor: pointer; }
.carrusel-dot.activo { background: var(--orange); width: 24px; border-radius: 6px; }

.destacadas-track { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 10px; }
.destacadas-track::-webkit-scrollbar { height: 6px; }
.destacadas-track::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 6px; }
.destacadas-track .card-propiedad { min-width: 280px; }

/* ---------- CARRUSEL DE DESTACADAS (moderno, centrado) ---------- */
.carrusel-destacadas-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 820px;
    margin: 0 auto;
}
.carrusel-destacadas-viewport { flex: 1; overflow: hidden; border-radius: var(--radius); }
.carrusel-destacadas-track { display: flex; transition: transform 0.5s cubic-bezier(.4,0,.2,1); }
.carrusel-destacadas-slide { min-width: 100%; padding: 4px; }

.card-destacada {
    background: var(--bg-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-top: 4px solid transparent;
    box-shadow: var(--shadow-soft);
}
.card-destacada-img {
    height: 340px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.card-destacada-body { padding: 24px 28px 28px; }
.card-destacada-body h3 { font-size: 1.2rem; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.card-destacada-precio { font-size: 1.5rem; font-weight: 800; margin: 8px 0; display: flex; align-items: center; gap: 8px; }

.badge-operacion-moderno {
    position: absolute; top: 16px; left: 16px;
    display: flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 999px;
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    color: #fff; backdrop-filter: blur(4px);
}

/* Acentos modernos con matices (no colores planos primarios) */
.acento-1 { border-top-color: #2dd4bf; }
.acento-2 { border-top-color: #818cf8; }
.acento-3 { border-top-color: #fbbf24; }
.acento-4 { border-top-color: #fb7185; }
.badge-operacion-moderno.acento-1 { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.badge-operacion-moderno.acento-2 { background: linear-gradient(135deg, #4338ca, #818cf8); }
.badge-operacion-moderno.acento-3 { background: linear-gradient(135deg, #b45309, #fbbf24); color:#2a1a02; }
.badge-operacion-moderno.acento-4 { background: linear-gradient(135deg, #be123c, #fb7185); }
.card-destacada.acento-1 .card-destacada-precio { color: #2dd4bf; }
.card-destacada.acento-2 .card-destacada-precio { color: #a5b4fc; }
.card-destacada.acento-3 .card-destacada-precio { color: #fbbf24; }
.card-destacada.acento-4 .card-destacada-precio { color: #fb7185; }

.carrusel-nav-btn {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    background: var(--bg-elevated); border: 1px solid var(--border-soft); color: var(--white);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: var(--transition); font-size: 1rem;
}
.carrusel-nav-btn:hover { background: var(--orange); border-color: var(--orange); }

.carrusel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.carrusel-dots .dot-destacada {
    width: 9px; height: 9px; border-radius: 50%; background: var(--border-soft); cursor: pointer; transition: var(--transition);
}
.carrusel-dots .dot-destacada.activo { background: var(--orange); width: 26px; border-radius: 6px; }

@media (max-width: 640px) {
    .carrusel-destacadas-wrap { gap: 8px; }
    .carrusel-nav-btn { width: 36px; height: 36px; font-size: 0.85rem; }
    .card-destacada-img { height: 220px; }
}

/* ---------- TESTIMONIOS ---------- */
.testimonio-card {
    background: var(--bg-surface-2);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.testimonio-card p.frase { font-size: 1.2rem; font-style: italic; color: var(--white); }
.testimonio-card .autor { color: var(--green-light); font-weight: 600; margin-top: 12px; }

/* ---------- PLANES ---------- */
.grid-planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card-plan {
    background: linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-surface-2) 100%);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}
.card-plan:hover { border-color: rgba(242,101,12,0.4); transform: translateY(-6px); box-shadow: var(--shadow-brand); }
.card-plan.destacado { border: 1.5px solid var(--orange); box-shadow: 0 0 0 4px rgba(242,101,12,0.08); }
.card-plan.destacado::before {
    content: 'MÁS ELEGIDO'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--orange), var(--orange-light)); color: #fff;
    font-size: 0.65rem; font-weight: 800; letter-spacing: 0.05em; padding: 5px 16px; border-radius: 999px;
    box-shadow: 0 6px 16px rgba(242,101,12,0.4);
}
.card-plan h3 { font-size: 1.25rem; margin-bottom: 6px; font-weight: 700; }
.card-plan .precio { font-size: 2.2rem; font-weight: 800; color: var(--orange-light); margin: 14px 0; font-family: var(--font-heading); }
.card-plan .dias { color: var(--text-muted); margin-bottom: 20px; font-size: 0.88rem; }

.precio-fichas { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 20px; }
.ficha-precio {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border-soft);
}
.ficha-precio .ficha-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.ficha-precio .ficha-valor { display: block; font-weight: 700; font-size: 1.3rem; }
.ficha-bob { background: var(--bg-elevated); }
.ficha-bob .ficha-valor { color: var(--white); }
.ficha-usd {
    background: linear-gradient(135deg, rgba(31,158,224,0.18), rgba(95,195,239,0.1));
    border-color: var(--green);
}
.ficha-usd .ficha-valor { color: var(--green-light); font-size: 1.6rem; }
.ficha-usd .ficha-label { color: var(--green-light); }
.ficha-oculta { display: none !important; }

.precio-planes { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 22px; }
.ficha-precio {
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ficha-precio .ficha-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); }
.ficha-precio .ficha-valor { font-weight: 800; }
.ficha-bob { background: var(--bg-elevated); border: 1px solid var(--border-soft); }
.ficha-bob .ficha-valor { font-size: 1.15rem; color: var(--white); }
.ficha-usd {
    background: linear-gradient(135deg, rgba(31,158,224,0.18), rgba(95,195,239,0.1));
    border: 1.5px solid var(--green);
}
.ficha-usd .ficha-valor { font-size: 1.5rem; color: var(--green-light); }
.ficha-usd .ficha-label { color: var(--green-light); opacity: 0.85; }

/* ---------- PASOS "CÓMO PUBLICAR" ---------- */
.grid-pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.paso-card { text-align: center; padding: 20px; }
.paso-numero {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--green));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.3rem; margin: 0 auto 16px;
}

/* ---------- FOOTER ---------- */
.footer-tuhome {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-soft);
    padding: 50px 0 24px;
    margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-tuhome img.logo-footer { height: 44px; margin-bottom: 14px; }
.footer-tuhome p { color: var(--text-muted); font-size: 0.9rem; }
.footer-tuhome h4 { margin-bottom: 14px; font-size: 1rem; }
.footer-tuhome ul { list-style: none; padding: 0; margin: 0; }
.footer-tuhome ul li { margin-bottom: 10px; }
.footer-tuhome ul li a { color: var(--text-muted); transition: var(--transition); }
.footer-tuhome ul li a:hover { color: var(--orange-light); }

.footer-redes { display: flex; gap: 10px; margin-top: 16px; }
.footer-red-icono {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.05rem; transition: var(--transition);
}
.footer-red-icono:hover { transform: translateY(-3px); }
.footer-red-whatsapp { background: #25d366; }
.footer-red-correo { background: linear-gradient(135deg, var(--orange), var(--orange-light)); }
.footer-red-facebook { background: #1877f2; }
.footer-red-instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }
.footer-red-tiktok { background: #000; }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ---------- WHATSAPP FLOTANTE ---------- */
.whatsapp-flotante {
    position: fixed;
    bottom: 26px;
    right: 26px;
    background: #25d366;
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    z-index: 200;
    transition: var(--transition);
}
.whatsapp-flotante:hover { transform: scale(1.08); }

/* ---------- DETALLE DE PROPIEDAD ---------- */
.galeria-principal { border-radius: var(--radius); overflow: hidden; height: 460px; position: relative; }
.galeria-principal img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.galeria-miniaturas { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.galeria-miniaturas img {
    width: 90px; height: 70px; object-fit: cover; border-radius: var(--radius-sm);
    cursor: pointer; opacity: 0.6; transition: var(--transition); border: 2px solid transparent;
}
.galeria-miniaturas img.activa { opacity: 1; border-color: var(--orange); }

.lightbox-overlay {
    display: none;
    position: fixed; inset: 0; background: rgba(10, 10, 15, 0.92);
    z-index: 999; align-items: center; justify-content: center;
}
.lightbox-overlay.abierto { display: flex; }
.lightbox-overlay img { max-width: 90%; max-height: 85%; border-radius: 8px; }
.lightbox-cerrar { position: absolute; top: 24px; right: 34px; font-size: 2rem; color: #fff; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.4rem; color: #fff; cursor: pointer; padding: 10px 18px; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.propietario-destacado {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, rgba(242,101,12,0.14), rgba(31,158,224,0.14));
    border: 1px solid rgba(242,101,12,0.3);
    border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px;
}
.propietario-destacado i { font-size: 2rem; color: var(--orange-light); flex-shrink: 0; }
.propietario-destacado small { display: block; color: #d8d8e2; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.propietario-destacado strong { display: block; font-size: 1.25rem; font-weight: 800; font-family: var(--font-heading); color: #ffffff; }

.materiales-destacado {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-elevated); border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 16px;
}
.materiales-destacado i { font-size: 1.4rem; color: var(--green-light); flex-shrink: 0; }
.materiales-destacado small { display: block; color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; }
.materiales-destacado span { display: block; font-weight: 700; font-size: 0.98rem; }

.detalle-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: start; }
.info-propiedad { background: var(--bg-surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border-soft); }
.info-propiedad .precio-grande { font-size: 2rem; font-weight: 800; color: var(--orange-light); }
.caracteristicas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; margin: 20px 0; }
.caracteristica { text-align: center; background: var(--bg-elevated); border-radius: var(--radius-sm); padding: 16px 10px; }
.caracteristica i { color: var(--green-light); font-size: 1.3rem; display: block; margin-bottom: 6px; }
.caracteristica span { display: block; font-weight: 700; }
.caracteristica small { color: var(--text-muted); }

.mapa-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-soft); }
.mapa-embed iframe { width: 100%; height: 320px; border: 0; }

.mapa-tarjeta {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    background: var(--bg-surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
    padding: 22px 24px;
}
.mapa-tarjeta-icono {
    width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.mapa-tarjeta strong { display: block; margin-bottom: 4px; }
.mapa-tarjeta p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.mapa-tarjeta .btn-outline-tuhome { margin-left: auto; }

.btn-whatsapp-detalle {
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 14px; border-radius: var(--radius-sm); font-weight: 700; margin-top: 16px;
}

/* ---------- FORMULARIO PÚBLICO (publicar) ---------- */
.form-publicar-wrap {
    max-width: 760px; margin: 60px auto; padding: 0 20px;
}
.form-publicar-header { text-align: center; margin-bottom: 28px; }
.form-publicar-header h2 {
    font-size: 2.1rem; margin: 12px 0 16px; display: flex; align-items: center; justify-content: center; gap: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 50%, var(--green-light) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.form-publicar-header h2 i { -webkit-text-fill-color: var(--orange-light); }
.form-publicar-header p { color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.plan-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, var(--orange), var(--orange-light)); color: #fff;
    padding: 6px 14px; border-radius: 999px; font-size: 0.85rem;
}
.plan-chip-dias {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg-elevated); border: 1px solid var(--border-soft);
    padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; color: var(--text-muted);
}
.form-publicar-card {
    background: var(--bg-surface); border: 1px solid var(--border-soft);
    border-radius: var(--radius); padding: 40px;
    box-shadow: var(--shadow-soft);
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--orange), var(--green)) 1;
    counter-reset: seccion-form;
}

.form-check-terminos {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-top: 22px;
}
.form-check-terminos input[type="checkbox"] {
    width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--orange);
}
.form-check-terminos label {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}
.form-check-terminos label a { color: var(--orange-light); font-weight: 600; }
.btn-releer-terminos {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--bg-elevated); border: 1px solid var(--border-soft); color: var(--green-light);
    padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 600;
    cursor: pointer; margin-left: 4px; transition: var(--transition);
}
.btn-releer-terminos:hover { border-color: var(--green); background: rgba(31,158,224,0.1); }
.btn-primary-tuhome:disabled {
    opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none !important;
}

.form-seccion-titulo {
    font-size: 1.15rem; color: var(--green-light); margin: 34px 0 18px; font-weight: 700;
    padding-bottom: 10px; border-bottom: 1px solid var(--border-soft);
    display: flex; align-items: center; gap: 10px;
    counter-increment: seccion-form;
}
.form-seccion-titulo::before {
    content: counter(seccion-form);
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff; font-weight: 800; font-size: 0.82rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(242,101,12,0.35);
}
.form-seccion-titulo:first-child { margin-top: 0; }
.form-grupo { margin-bottom: 18px; }
.form-grupo label { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; font-weight: 600; font-size: 0.9rem; }
.form-grupo label i:first-child { color: var(--orange-light); width: 14px; }
.form-grupo input, .form-grupo select, .form-grupo textarea {
    width: 100%; background: var(--bg-elevated); border: 1px solid var(--border-soft);
    color: var(--white); padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit;
    transition: var(--transition);
}
.form-grupo input:focus, .form-grupo select:focus, .form-grupo textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,101,12,0.15); }
.form-grupo textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.alerta-error { background: rgba(255, 80, 80, 0.12); border: 1px solid #ff5050; color: #ffb3b3; padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; }
.alerta-exito { background: rgba(31, 158, 224, 0.12); border: 1px solid var(--green); color: var(--green-light); padding: 14px 18px; border-radius: var(--radius-sm); }

/* Dropzone de fotos interactivo */
.dropzone-fotos {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    border: 2px dashed var(--border-soft); border-radius: var(--radius);
    padding: 40px 20px; cursor: pointer; text-align: center; transition: var(--transition);
    background: var(--bg-elevated);
}
.dropzone-fotos:hover, .dropzone-fotos.arrastrando { border-color: var(--orange); background: rgba(242,101,12,0.06); }
.dropzone-icono { font-size: 2.4rem; color: var(--orange-light); margin-bottom: 6px; }
.dropzone-fotos strong { font-size: 1rem; }
.dropzone-fotos span { color: var(--text-muted); font-size: 0.85rem; }

.preview-fotos-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 14px;
}
.preview-foto-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.preview-foto-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-foto-item.es-portada { outline: 2px solid var(--orange); outline-offset: 2px; }
.preview-foto-badge-portada {
    position: absolute; top: 4px; left: 4px; z-index: 2;
    background: linear-gradient(135deg, var(--orange), var(--orange-light)); color: #1c1005;
    font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em;
    padding: 3px 7px; border-radius: 999px; display: flex; align-items: center; gap: 4px;
}
.preview-foto-hacer-portada {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
    background: rgba(10,10,15,0.7); color: #fff; border: none; border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.62rem; font-weight: 600; padding: 5px 4px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    transition: var(--transition);
}
.preview-foto-hacer-portada:hover { background: var(--orange); color: #1c1005; }
.preview-foto-quitar {
    position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
    background: rgba(220,50,50,0.85); color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 0.7rem;
    transition: var(--transition);
}
.preview-foto-quitar:hover { background: #d63c3c; transform: scale(1.1); }

/* ---------- LOGIN ADMIN ---------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #1c1e2c 0%, #14151f 55%, #191b28 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.login-blob {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.35;
    z-index: 0;
}
.login-blob-naranja { background: var(--orange); top: -120px; left: -100px; }
.login-blob-verde { background: var(--green); bottom: -140px; right: -100px; }

.login-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 44px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-card img { height: 90px; margin-bottom: 20px; }
.login-card form { width: 100%; }

.login-card-moderna {
    border: 1px solid rgba(242, 101, 12, 0.3);
    box-shadow: 0 25px 70px rgba(0,0,0,0.55), 0 0 60px rgba(242,101,12,0.1), 0 0 60px rgba(31,158,224,0.08);
}
.login-logo-grande { height: 140px !important; margin-bottom: 8px !important; filter: drop-shadow(0 10px 24px rgba(242,101,12,0.3)); }
.login-input-grupo { width: 100%; text-align: left; }
.login-input-grupo label { display: flex; align-items: center; gap: 8px; }
.login-input-grupo label i { color: var(--orange-light); width: 14px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
    .buscador-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Navbar: solo logo + botón "Publica con Nosotros" + hamburguesa quedan
       visibles; el resto de enlaces se agrupan en el panel desplegable. */
    .navbar-links {
        position: fixed; top: 60px; left: 0; right: 0;
        background: var(--bg-surface);
        flex-direction: column; align-items: stretch;
        padding: 20px; gap: 10px;
        transform: translateY(-150%);
        transition: var(--transition);
        border-bottom: 1px solid var(--border-soft);
        box-shadow: 0 20px 40px -12px rgba(0,0,0,0.5);
        z-index: 150;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    .navbar-links.abierto { transform: translateY(0); }
    .navbar-links a,
    .navbar-links .navbar-link-btn { width: 100%; justify-content: flex-start; }
    .navbar-burger { display: block; }

    /* Título + carrusel: se reduce un poco la altura del carrusel para que
       el buscador quede más cerca y la primera pantalla no se sienta tan pesada. */
    .titulo-plataforma-simple { padding: 16px 16px 0; }

    /* Buscador + contador de visitas: se tratan como una sección propia,
       igual que en escritorio, con su propio "cuadro" y separación clara
       respecto al carrusel de arriba y a "Destacadas" de abajo. */
    .container-tuhome.seccion-buscador {
        background: var(--bg-surface);
        border-top: 1px solid var(--border-soft);
        border-bottom: 1px solid var(--border-soft);
        padding-top: 28px;
        padding-bottom: 32px;
        margin-bottom: 8px;
    }
    .buscador-card { margin-top: 0; padding: 20px; }
    .buscador-grid { grid-template-columns: 1fr; gap: 12px; }
    .visitas-sitio-badge { margin-top: 22px; }

    .seccion { padding: 44px 0; }
    .seccion-header { margin-bottom: 28px; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .galeria-principal { height: 280px; }

    /* Detalle de propiedad: una sola columna para que no se corte
       el precio, las características ni el botón de WhatsApp. */
    .detalle-layout { grid-template-columns: 1fr; gap: 24px; }
    .info-propiedad { padding: 22px; }
}

@media (max-width: 480px) {
    .hero-carrusel-wrap { height: clamp(500px, 78vh, 560px); }
    .navbar-actions .navbar-btn-cta { padding: 8px 12px; font-size: 0.78rem; gap: 5px; }
    .navbar-logo img { height: 32px; }

    /* Contenido de cada slide más compacto para que entre completo sin
       cortarse dentro del carrusel, sin importar qué tan largo sea el texto. */
    .hero-slide-content { padding: 0 18px; max-width: 94%; }
    .hero-slide-eyebrow { font-size: 0.7rem; padding: 5px 12px; margin-bottom: 12px; }
    .hero-slide-content h1 { font-size: clamp(1.4rem, 6.5vw, 1.9rem); margin: 0 0 10px; }
    .hero-slide-content p {
        font-size: 0.9rem; margin: 0 auto 20px;
        display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    }
    .hero-slide-content .btn-primary-tuhome { padding: 11px 22px; font-size: 0.9rem; }
    .hero-carrusel-arrow { width: 34px; height: 34px; font-size: 0.8rem; }
    .hero-carrusel-dots { bottom: 14px; }
}
