/* ════════════════════════════════════════════════════════════════════════
   INMOBILIARIAS — Index + Detalle
   ════════════════════════════════════════════════════════════════════════
   Diseño premium: cinemático, profundidad real (no sólo shadows), grid
   bento asimétrico, animaciones encadenadas, micro-interacciones en
   cada elemento interactivo. Tipografía Sora para titulares, Inter
   para body. Acento teal de la marca + violet/indigo para los acentos
   editoriales del hero.

   Scope acotado con prefijo .inm- para no contaminar globales.
   ════════════════════════════════════════════════════════════════════════ */

.inm-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 600px) {
    .inm-container { padding: 0 16px; }
}

/* Tokens locales del módulo. Acotados al hero/grid/detalle para evitar
   leakeo. Heredan de :root cuando aplican. */
.inm-hero,
.inm-grid-section,
.inm-detalle {
    --inm-teal:        #14b8a6;
    --inm-teal-light:  #5eead4;
    --inm-teal-deep:   #0f766e;
    --inm-violet:      #a78bfa;
    --inm-indigo:      #6366f1;
    --inm-ink-50:      #f8fafc;
    --inm-ink-100:     #e2e8f0;
    --inm-ink-300:     #94a3b8;
    --inm-ink-500:     #475569;
    --inm-ink-700:     #1e293b;
    --inm-ink-900:     #0f172a;
    --inm-bg:          #fbfcfd;
    --inm-bg-soft:     #f1f5f9;
    --inm-border:      rgba(15, 23, 42, 0.08);
    --inm-shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    --inm-shadow-md:   0 4px 12px rgba(15, 23, 42, 0.06), 0 10px 24px rgba(15, 23, 42, 0.06);
    --inm-shadow-lg:   0 12px 28px rgba(15, 23, 42, 0.08), 0 24px 56px rgba(15, 23, 42, 0.12);
    --inm-radius:      18px;
    --inm-radius-sm:   12px;
}

/* ════════════════════════════════════════════════════════════════════════
   HERO SHOWCASE
   ════════════════════════════════════════════════════════════════════════ */
.inm-hero {
    position: relative;
    overflow: hidden;
    color: white;
    /* El navbar es sticky; le damos aire pero sin perder el primer fold. */
    padding: clamp(80px, 12vh, 140px) 0 clamp(90px, 12vh, 130px);
    /* Foto de fondo (paisaje costero uruguayo con bandera nacional). El
       gradient teal queda DEBAJO de la foto como fallback si el archivo
       no carga — la capa de imagen va arriba. Cobertura + saturación
       suave para no opacar la legibilidad. Mobile usa la misma foto
       (la composición vertical funciona bien también).
       Convención existente del proyecto: hero-N-desktop / hero-N-mobile.
       Usamos un solo archivo principal y dejamos los breakpoints como
       futuro optimization. */
    background-color: #051a23;
    background-image:
        linear-gradient(155deg, rgba(5, 26, 35, 0.55) 0%, rgba(6, 42, 51, 0.65) 50%, rgba(4, 24, 31, 0.85) 100%),
        url('/img/hero/inmobiliarias-hero.jpg');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    isolation: isolate;
}
/* Si la imagen no carga (404, aún no subida) el linear-gradient hace de
   fallback sólido. Con `background-color` definido arriba como base
   oscura, nunca queda en blanco. */

/* Vignetting + saturación: profundidad cinemática sobre la foto. */
.inm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 35%, transparent 30%, rgba(5, 26, 35, 0.45) 75%);
    pointer-events: none;
    z-index: 1;
}

/* Fade gradient al pie del hero — transición orgánica al fondo claro de
   la sección siguiente. */
.inm-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, rgba(251, 252, 253, 0.75) 100%);
    pointer-events: none;
    z-index: 2;
}

.inm-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Aurora — un solo blob teal MUY sutil sobre la foto, para añadir
   identidad de marca sin ahogar el paisaje. Antes había 2 blobs grandes;
   con foto de fondo competían y arruinaban el feel cinematográfico. */
.inm-hero__aurora {
    position: absolute;
    width: 760px;
    height: 760px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.28;
    will-change: transform;
    mix-blend-mode: screen;
}
.inm-hero__aurora--a {
    background: radial-gradient(closest-side, rgba(20, 184, 166, 0.65), transparent 70%);
    top: -240px;
    left: -180px;
    animation: inmAurora 24s ease-in-out infinite;
}
.inm-hero__aurora--b {
    /* Segundo blob: lo dejamos pero más débil, solo añade densidad de
       color en la esquina opuesta. */
    background: radial-gradient(closest-side, rgba(167, 139, 250, 0.5), transparent 70%);
    bottom: -300px;
    right: -220px;
    animation: inmAurora 28s ease-in-out -8s infinite reverse;
    opacity: 0.22;
}
@keyframes inmAurora {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(50px, -30px, 0) scale(1.06); }
}

/* Grid blueprint — lo OCULTAMOS cuando hay foto, queda muy ruidoso encima
   de un paisaje. Si el user prefiere volverlo, basta con quitar display:none. */
.inm-hero__grid {
    display: none;
}

.inm-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 60px;
    align-items: center;
}

@media (max-width: 980px) {
    .inm-hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 0 24px;
    }
}

/* ─── COPY del hero ──────────────────────────────────────────────────── */
.inm-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 580px;
}

.inm-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 8px 16px 8px 14px;
    border-radius: 999px;
    background: rgba(94, 234, 212, 0.10);
    border: 1px solid rgba(94, 234, 212, 0.32);
    /* Texto en blanco — pedido del user para unificar copia del hero.
       El dot interno mantiene el teal para no perder el acento de marca. */
    color: white;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: inmReveal 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.inm-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--inm-teal-light);
    box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.2), 0 0 12px rgba(94, 234, 212, 0.8);
    animation: inmDotPulse 2.2s ease-in-out infinite;
}
@keyframes inmDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.78); }
}

.inm-hero__title {
    margin: 0;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(34px, 5.2vw, 60px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: white;
    text-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
    animation: inmReveal 800ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* Antes tenía un gradient teal→violet. A pedido del user lo dejamos en
   blanco sólido — toda la copia del hero unificada en blanco para
   máxima legibilidad sobre la foto del paisaje. */
.inm-hero__title-accent {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
    animation: inmReveal 800ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.inm-hero__sub {
    margin: 0;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.55;
    /* Blanco puro, igual que el resto del hero — pedido del user. */
    color: #ffffff;
    max-width: 520px;
    animation: inmReveal 800ms 160ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes inmReveal {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── STATS ─────────────────────────────────────────────────────────── */
.inm-hero__stats {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 18px 28px;
    margin-top: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    width: fit-content;
    animation: inmReveal 800ms 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.inm-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 88px;
}
.inm-hero__stat-num {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    /* Antes tenía gradient blanco→teal. Unificamos en blanco sólido a
       pedido del user — toda la copia del hero en blanco. */
    color: white;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    /* Mínimo ancho para evitar shift cuando va de 1 dígito a 2 (ej. de 9 a 10). */
    min-width: 1.5ch;
    display: inline-block;
}
.inm-hero__stat-label {
    font-size: 11.5px;
    font-weight: 600;
    /* Blanco con un toque de transparencia para que el LABEL no compita
       visualmente con el NÚMERO (más prominente), pero sigue siendo blanco. */
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.inm-hero__stat-divider {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.18), transparent);
}

@media (max-width: 480px) {
    .inm-hero__stats { padding: 14px 20px; gap: 14px; }
    .inm-hero__stat-num { font-size: 22px; }
    .inm-hero__stat-divider { height: 24px; }
}

/* ─── CTA ────────────────────────────────────────────────────────────── */
.inm-hero__cta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
    animation: inmReveal 800ms 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.inm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.005em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition:
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
        background 220ms ease,
        border-color 220ms ease,
        box-shadow 240ms ease,
        color 220ms ease;
    position: relative;
    overflow: hidden;
}
.inm-btn--sm { padding: 8px 14px; font-size: 12.5px; }
.inm-btn--primary {
    background: linear-gradient(135deg, var(--inm-teal-light), var(--inm-teal));
    color: #052e2b;
    box-shadow: 0 10px 28px -10px rgba(94, 234, 212, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.inm-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -12px rgba(94, 234, 212, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.inm-btn--primary:active { transform: translateY(0); }
.inm-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    color: white;
    backdrop-filter: blur(8px);
}
.inm-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(94, 234, 212, 0.5);
    color: var(--inm-teal-light);
}

/* Sobre fondo claro (sección grid + detalle) los ghost cambian de paleta. */
.inm-grid-section .inm-btn--ghost,
.inm-detalle .inm-btn--ghost {
    background: white;
    border-color: var(--inm-border);
    color: var(--inm-ink-700);
    backdrop-filter: none;
}
.inm-grid-section .inm-btn--ghost:hover,
.inm-detalle .inm-btn--ghost:hover {
    border-color: var(--inm-teal);
    color: var(--inm-teal-deep);
    background: rgba(94, 234, 212, 0.06);
}

/* Shine en hover sobre el primary — efecto premium. */
.inm-btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.inm-btn--primary:hover::after { transform: translateX(120%); }

/* ════════════════════════════════════════════════════════════════════════
   STAGE: CONSTELACIÓN ORBITAL (re-diseño mayo 2026)
   ════════════════════════════════════════════════════════════════════════
   Sustituye al personaje SVG que quedaba amateur. Composición tipo
   "Apple iCloud hero": un orbe central de glow + cards reales de
   inmobiliarias orbitando en distintas profundidades. Sin caracteres
   ilustrados — solo data real con tratamiento premium.
   ════════════════════════════════════════════════════════════════════════ */
.inm-hero__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 560px;
    margin-left: auto;
    perspective: 1500px;
    animation: inmReveal 1000ms 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (max-width: 980px) {
    .inm-hero__stage { margin: 0 auto; max-width: 440px; }
}

.inm-hero__stage-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform:
        translate3d(var(--tx, 0), var(--ty, 0), 0)
        rotateX(var(--rx, 0))
        rotateY(var(--ry, 0));
    transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── HALO + anillos etéreos en el centro ──────────────────────────────
   Sin core sólido (se removió en mayo 2026 — la bola teal sólida competía
   con las cards). El halo radial sugiere "foco" sin ocupar espacio visual
   y los dos anillos rotando agregan vida sin distraer. */
.inm-orbe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%) translateZ(-30px);
    pointer-events: none;
}
.inm-orbe__halo {
    position: absolute;
    inset: -90%;
    background: radial-gradient(circle at 50% 50%,
        rgba(94, 234, 212, 0.35) 0%,
        rgba(94, 234, 212, 0.12) 28%,
        transparent 60%);
    filter: blur(20px);
    animation: inmOrbePulse 5s ease-in-out infinite;
}
@keyframes inmOrbePulse {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.1); }
}
.inm-orbe__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(94, 234, 212, 0.18);
}
.inm-orbe__ring--a {
    inset: -10%;
    border-style: dashed;
    border-color: rgba(94, 234, 212, 0.22);
    animation: inmOrbeSpin 28s linear infinite;
}
.inm-orbe__ring--b {
    inset: -45%;
    border-color: rgba(167, 139, 250, 0.14);
    animation: inmOrbeSpin 44s linear infinite reverse;
}
@keyframes inmOrbeSpin {
    to { transform: rotate(360deg); }
}

/* ─── PARTÍCULAS — puntos diminutos orbitando ──────────────────────── */
.inm-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform-style: preserve-3d;
}
.inm-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--sz, 3px);
    height: var(--sz, 3px);
    border-radius: 50%;
    background: var(--inm-teal-light);
    box-shadow: 0 0 8px rgba(94, 234, 212, 0.8);
    /* Posición polar usando rotación + traslación: ángulo + radio */
    transform: rotate(var(--ang, 0deg)) translateX(var(--rad, 30%)) rotate(calc(-1 * var(--ang, 0deg)));
    animation: inmParticleFloat var(--d, 8s) ease-in-out var(--delay, 0s) infinite;
    opacity: 0.7;
}
@keyframes inmParticleFloat {
    0%, 100% { opacity: 0.3; transform: rotate(var(--ang, 0deg)) translateX(var(--rad, 30%)) rotate(calc(-1 * var(--ang, 0deg))) scale(0.8); }
    50%      { opacity: 0.9; transform: rotate(var(--ang, 0deg)) translateX(calc(var(--rad, 30%) + 6%)) rotate(calc(-1 * var(--ang, 0deg))) scale(1.1); }
}

/* ─── CARDS ORBITALES ──────────────────────────────────────────────── */
.inm-orbital {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}
.inm-orbital__card {
    position: absolute;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 30px 70px -22px rgba(0, 0, 0, 0.55),
        0 2px 6px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    color: var(--inm-ink-900);
    transition:
        transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 420ms ease,
        z-index 0s 420ms;
    will-change: transform;
}

/* 5 slots posicionados con cuidado:
   - Composición triangular invertida: 2 cards arriba (a, b), 1 grande
     al centro-derecha (c), 2 abajo (d, e). Sensación orquestada, no
     racimo random.
   - Rotaciones suaves (≤ 5°) — el "ladeo extremo" que tenía antes se
     veía amateur. Profesional = sutil.
   - Profundidades Z bien distintas (0 / 50 / 90 / 130) para que el
     parallax al mouse se sienta real sin volverse mareante. */

/* Slot A — top-left, mid depth */
.inm-slot--a {
    top: 6%;
    left: 4%;
    width: 56%;
    transform: rotate(-3deg) translateZ(50px);
    animation: inmOrbitalA 11s ease-in-out infinite;
    z-index: 3;
}
@keyframes inmOrbitalA {
    0%, 100% { transform: rotate(-3deg) translate3d(0, 0, 50px); }
    50%      { transform: rotate(-3.5deg) translate3d(-6px, -8px, 62px); }
}

/* Slot B — top-right, deeper (back) */
.inm-slot--b {
    top: 14%;
    right: -2%;
    width: 54%;
    transform: rotate(4deg) translateZ(20px);
    animation: inmOrbitalB 13s ease-in-out -3s infinite;
    z-index: 2;
    opacity: 0.95;
}
@keyframes inmOrbitalB {
    0%, 100% { transform: rotate(4deg) translate3d(0, 0, 20px); }
    50%      { transform: rotate(3.5deg) translate3d(8px, -6px, 35px); }
}

/* Slot C — center, MAIN focus (frente y más grande) */
.inm-slot--c {
    top: 42%;
    left: 50%;
    margin-left: -32%;
    width: 64%;
    transform: rotate(-2deg) translateZ(130px);
    animation: inmOrbitalC 10s ease-in-out -1s infinite;
    z-index: 5;
}
@keyframes inmOrbitalC {
    0%, 100% { transform: rotate(-2deg) translate3d(0, 0, 130px); }
    50%      { transform: rotate(-3deg) translate3d(4px, -10px, 142px); }
}

/* Slot D — bottom-left, mid-front */
.inm-slot--d {
    bottom: 10%;
    left: 0%;
    width: 56%;
    transform: rotate(3deg) translateZ(80px);
    animation: inmOrbitalD 12s ease-in-out -5s infinite;
    z-index: 4;
}
@keyframes inmOrbitalD {
    0%, 100% { transform: rotate(3deg) translate3d(0, 0, 80px); }
    50%      { transform: rotate(2deg) translate3d(-4px, 6px, 92px); }
}

/* Slot E — bottom-right, back */
.inm-slot--e {
    bottom: 4%;
    right: 6%;
    width: 52%;
    transform: rotate(-4deg) translateZ(40px);
    animation: inmOrbitalE 14s ease-in-out -7s infinite;
    z-index: 2;
    opacity: 0.93;
}
@keyframes inmOrbitalE {
    0%, 100% { transform: rotate(-4deg) translate3d(0, 0, 40px); }
    50%      { transform: rotate(-5deg) translate3d(6px, 8px, 50px); }
}

.inm-orbital__card:hover {
    box-shadow:
        0 40px 90px -25px rgba(94, 234, 212, 0.6),
        0 4px 14px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.inm-orbital__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
}

.inm-orbital__logo {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--inm-teal-light), var(--inm-teal));
    color: white;
    box-shadow: 0 4px 12px -2px rgba(20, 184, 166, 0.4);
}
.inm-orbital__logo img { width: 100%; height: 100%; object-fit: cover; }
.inm-orbital__fallback {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

.inm-orbital__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}
.inm-orbital__name {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--inm-ink-900);
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inm-orbital__meta {
    font-size: 11.5px;
    color: var(--inm-ink-500);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.inm-orbital__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--inm-teal);
    box-shadow: 0 0 6px rgba(20, 184, 166, 0.6);
    animation: inmOrbitalDot 2.4s ease-in-out infinite;
}
@keyframes inmOrbitalDot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

/* Skeleton de orbital cards */
.inm-orbital__skeleton {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}
.inm-orbital__skel-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: inmShimmer 1.6s linear infinite;
}
.inm-orbital__skel-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.inm-orbital__skel-lines span {
    height: 9px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: inmShimmer 1.6s linear infinite;
}
.inm-orbital__skel-lines span:first-child { width: 70%; }
.inm-orbital__skel-lines span:last-child { width: 45%; height: 7px; }
@keyframes inmShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── SCROLL DOWN indicator (pie del hero) ──────────────────────────── */
.inm-hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* Blanco con leve transparencia para no robar atención al título, pero
       sigue siendo blanco — coherente con el resto del hero. */
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    z-index: 3;
    transition: color 240ms ease, transform 240ms ease;
}
.inm-hero__scroll:hover {
    color: #ffffff;
    transform: translateX(-50%) translateY(-2px);
}
.inm-hero__scroll-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    animation: inmScrollBob 2.4s ease-in-out infinite;
    transition: border-color 240ms ease, background 240ms ease;
}
.inm-hero__scroll:hover .inm-hero__scroll-arrow {
    border-color: rgba(94, 234, 212, 0.5);
    background: rgba(94, 234, 212, 0.08);
}
@keyframes inmScrollBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(5px); }
}
@media (max-width: 768px) {
    .inm-hero__scroll { display: none; } /* el hero ya termina abrupto en mobile */
}

/* ════════════════════════════════════════════════════════════════════════
   GRID FILTRABLE
   ════════════════════════════════════════════════════════════════════════ */
.inm-grid-section {
    background: var(--inm-bg);
    padding: clamp(60px, 9vh, 100px) 0 clamp(80px, 12vh, 140px);
    position: relative;
    color: var(--inm-ink-900);
}
.inm-grid-section::before {
    /* Halo teal pinned al top que se desvanece hacia abajo — same
       lenguaje editorial que el home (.home-canvas__aurora). */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 320px;
    background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(94, 234, 212, 0.18), transparent 70%);
    pointer-events: none;
}

.inm-grid-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.inm-grid-title {
    margin: 0;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--inm-ink-900);
}
.inm-grid-sub {
    margin: 8px 0 0;
    font-size: 15px;
    color: var(--inm-ink-500);
    line-height: 1.5;
}

/* ─── TOOLBAR (estática arriba del grid) ─────────────────────────────
   Antes era sticky con top:76px para que quedara a mano al scrollear,
   pero el sticky se montaba feo encima de las cards al bajar (z-index
   issue contra los hover halos). Decisión: dejarla estática — el grid
   no es tan largo como para necesitarla siempre visible. */
.inm-toolbar {
    position: static;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin-bottom: 32px;
    background: #ffffff;
    border: 1px solid var(--inm-border);
    border-radius: 16px;
    box-shadow: var(--inm-shadow-sm);
}
@media (max-width: 720px) {
    .inm-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

.inm-search {
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: white;
    border: 1px solid var(--inm-border);
    border-radius: 12px;
    color: var(--inm-ink-500);
    transition: border-color 220ms ease, box-shadow 220ms ease;
}
.inm-search:focus-within {
    border-color: var(--inm-teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}
.inm-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    height: 42px;
    font-size: 14px;
    color: var(--inm-ink-900);
    font-family: inherit;
}
.inm-search input::placeholder { color: var(--inm-ink-300); }
.inm-search__clear {
    border: 0;
    background: transparent;
    color: var(--inm-ink-300);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    transition: background 200ms ease, color 200ms ease;
}
.inm-search__clear:hover {
    background: rgba(15, 23, 42, 0.06);
    color: var(--inm-ink-700);
}

.inm-toolbar__chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.inm-chip {
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--inm-border);
    color: var(--inm-ink-700);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 220ms ease,
        border-color 220ms ease,
        color 220ms ease,
        transform 180ms ease;
    font-family: inherit;
    white-space: nowrap;
}
.inm-chip:hover {
    border-color: var(--inm-teal);
    color: var(--inm-teal-deep);
    transform: translateY(-1px);
}
.inm-chip.is-active {
    background: var(--inm-ink-900);
    border-color: var(--inm-ink-900);
    color: white;
}

/* ─── GRID DE CARDS (bento asimétrico) ──────────────────────────────── */
.inm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.inm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--inm-radius);
    border: 1px solid var(--inm-border);
    box-shadow: var(--inm-shadow-sm);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition:
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 320ms ease,
        border-color 320ms ease;
    isolation: isolate;
}
.inm-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--inm-shadow-lg);
    border-color: rgba(20, 184, 166, 0.3);
}
.inm-card::before {
    /* Halo teal que aparece detrás de la card en hover */
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: var(--inm-radius);
    background: linear-gradient(135deg, var(--inm-teal-light), transparent 60%);
    opacity: 0;
    z-index: -1;
    transition: opacity 320ms ease;
}
.inm-card:hover::before { opacity: 0.5; }

.inm-card__banner {
    position: relative;
    height: 112px;
    background:
        radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.4), transparent 50%),
        linear-gradient(135deg, var(--inm-teal-deep), var(--inm-teal));
}
.inm-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.inm-card__logo {
    /* Logo flotante 50/50 banner/body — overlap intencional para profundidad */
    position: absolute;
    top: 78px;
    left: 22px;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: white;
    border: 3px solid white;
    box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: grid;
    place-items: center;
}
.inm-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.inm-card__fallback {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--inm-teal-deep);
    background: linear-gradient(135deg, var(--inm-teal-light), var(--inm-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.inm-card__body {
    padding: 50px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.inm-card__name {
    margin: 0;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--inm-ink-900);
    line-height: 1.2;
    /* line-clamp para que dos líneas se vea ordenado */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.inm-card__location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12.5px;
    color: var(--inm-ink-500);
    font-weight: 500;
}
.inm-card__location-empty { color: var(--inm-ink-300); }
.inm-card__desc {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--inm-ink-500);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.inm-card__footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--inm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.inm-card__count {
    font-size: 12.5px;
    color: var(--inm-ink-500);
}
.inm-card__count strong {
    color: var(--inm-ink-900);
    font-weight: 700;
    font-family: 'Sora', 'Inter', sans-serif;
}
/* Sello "Verificada" — reemplaza al contador en cards públicas para no
   exponer inventario competitivo. Pill teal pequeño + check icon. */
.inm-card__badge-verif {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--inm-teal-deep);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid rgba(20, 184, 166, 0.22);
}
.inm-card__badge-verif svg { color: var(--inm-teal); }
.inm-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--inm-teal-deep);
    font-size: 12.5px;
    font-weight: 700;
    transition: gap 220ms ease;
}
.inm-card:hover .inm-card__cta { gap: 9px; }

/* ─── SKELETONS del grid ─────────────────────────────────────────────── */
.inm-card--skeleton {
    pointer-events: none;
}
.inm-card__skel-banner {
    height: 112px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: inmShimmer 1.6s linear infinite;
}
.inm-card__skel-logo {
    position: absolute;
    top: 78px;
    left: 22px;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: inmShimmer 1.6s linear infinite;
    border: 3px solid white;
}
.inm-card__skel-line {
    height: 12px;
    margin: 8px 22px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: inmShimmer 1.6s linear infinite;
}
.inm-card__skel-line:first-of-type { margin-top: 56px; }
.inm-card__skel-line--lg { height: 16px; width: 70%; }

/* ─── EMPTY state ────────────────────────────────────────────────────── */
.inm-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 70px 24px;
    text-align: center;
    background: white;
    border-radius: var(--inm-radius);
    border: 1px dashed var(--inm-border);
    color: var(--inm-ink-500);
}
.inm-empty svg { color: var(--inm-ink-300); }
.inm-empty h3 {
    margin: 0;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 20px;
    color: var(--inm-ink-900);
    font-weight: 700;
}
.inm-empty p { margin: 0; font-size: 14px; }

/* ════════════════════════════════════════════════════════════════════════
   DETALLE
   ════════════════════════════════════════════════════════════════════════ */
.inm-detalle {
    background: var(--inm-bg);
    color: var(--inm-ink-900);
    min-height: 100vh;
    padding-bottom: 80px;
}

.inm-detalle__hero {
    position: relative;
    height: 360px;
    color: white;
    overflow: hidden;
    isolation: isolate;
}
@media (max-width: 720px) { .inm-detalle__hero { height: 300px; } }

.inm-detalle__banner-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.06);
    filter: saturate(110%);
}
.inm-detalle__banner-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(94, 234, 212, 0.45), transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.35), transparent 55%),
        linear-gradient(135deg, #051a23, #062a33);
    z-index: 0;
}
.inm-detalle__hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to top, rgba(5, 26, 35, 0.85) 0%, rgba(5, 26, 35, 0.55) 50%, rgba(5, 26, 35, 0.35) 100%);
}

.inm-detalle__hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 24px;
}

.inm-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}
.inm-breadcrumbs a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 200ms ease;
}
.inm-breadcrumbs a:hover { color: var(--inm-teal-light); }
.inm-breadcrumbs__current { color: white; font-weight: 600; }

.inm-detalle__identidad {
    display: flex;
    align-items: end;
    gap: 24px;
}
@media (max-width: 720px) {
    .inm-detalle__identidad {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

.inm-detalle__logo {
    flex-shrink: 0;
    width: 124px;
    height: 124px;
    border-radius: 24px;
    background: white;
    border: 4px solid white;
    box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: grid;
    place-items: center;
    transform: translateY(20px); /* sticking out under the hero edge */
}
.inm-detalle__logo img { width: 100%; height: 100%; object-fit: cover; }
.inm-detalle__fallback {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 56px;
    font-weight: 800;
    color: var(--inm-teal-deep);
    background: linear-gradient(135deg, var(--inm-teal-light), var(--inm-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 720px) {
    .inm-detalle__logo {
        width: 84px;
        height: 84px;
        border-radius: 18px;
        transform: none;
    }
    .inm-detalle__fallback { font-size: 38px; }
}

.inm-detalle__titulo-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.inm-detalle__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(94, 234, 212, 0.18);
    border: 1px solid rgba(94, 234, 212, 0.4);
    color: var(--inm-teal-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    width: fit-content;
}
.inm-detalle__nombre {
    margin: 0;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: white;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
.inm-detalle__meta {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
    flex-wrap: wrap;
}
.inm-detalle__meta-count strong {
    color: var(--inm-teal-light);
    font-weight: 700;
}
.inm-detalle__meta-sep {
    opacity: 0.4;
}
.inm-detalle__meta-loc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ─── LAYOUT body (sidebar + main) ───────────────────────────────────── */
.inm-detalle__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    margin-top: 56px;
}
@media (max-width: 1020px) {
    .inm-detalle__layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.inm-detalle__main {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.inm-detalle__bloque {
    background: white;
    border: 1px solid var(--inm-border);
    border-radius: var(--inm-radius);
    padding: 28px;
    box-shadow: var(--inm-shadow-sm);
}
.inm-detalle__h2 {
    margin: 0 0 16px;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--inm-ink-900);
    letter-spacing: -0.015em;
}
.inm-detalle__desc {
    margin: 0;
    font-size: 15.5px;
    color: var(--inm-ink-700);
    line-height: 1.7;
    white-space: pre-line;
}

.inm-detalle__zonas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.inm-zona-chip {
    display: inline-flex;
    padding: 7px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.18), rgba(94, 234, 212, 0.08));
    border: 1px solid rgba(20, 184, 166, 0.3);
    color: var(--inm-teal-deep);
    font-size: 13px;
    font-weight: 600;
}

/* ─── PUBLICACIONES ─────────────────────────────────────────────────── */
.inm-detalle__pubs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.inm-detalle__pubs-header .inm-detalle__h2 { margin: 0; }

.inm-detalle__pubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.inm-pub-card {
    display: flex;
    flex-direction: column;
    background: var(--inm-bg-soft);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms ease, border-color 280ms ease;
}
.inm-pub-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--inm-shadow-md);
    border-color: rgba(20, 184, 166, 0.3);
}
.inm-pub-card__img {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #cbd5e1;
    overflow: hidden;
}
.inm-pub-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.inm-pub-card:hover .inm-pub-card__img img { transform: scale(1.06); }
.inm-pub-card__img-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--inm-teal-deep), var(--inm-teal));
}
.inm-pub-card__op {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.7);
    color: white;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    backdrop-filter: blur(6px);
}

.inm-pub-card__body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.inm-pub-card__precio {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--inm-ink-900);
    letter-spacing: -0.02em;
}
.inm-pub-card__titulo {
    margin: 2px 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--inm-ink-700);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.inm-pub-card__detalle {
    font-size: 12px;
    color: var(--inm-ink-500);
}
.inm-pub-card__loc {
    margin-top: 4px;
    font-size: 12px;
    color: var(--inm-ink-500);
    font-weight: 500;
}

.inm-detalle__pubs-empty {
    padding: 32px;
    text-align: center;
    color: var(--inm-ink-500);
    font-size: 14px;
    border: 1px dashed var(--inm-border);
    border-radius: 12px;
}
.inm-detalle__pubs-footer {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

/* ─── SIDEBAR ────────────────────────────────────────────────────────── */
.inm-detalle__side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 90px;
    align-self: start;
}
@media (max-width: 1020px) {
    .inm-detalle__side { position: static; }
}

.inm-detalle__contacto,
.inm-detalle__horarios,
.inm-detalle__mapa {
    background: white;
    border: 1px solid var(--inm-border);
    border-radius: var(--inm-radius);
    padding: 22px;
    box-shadow: var(--inm-shadow-sm);
}

.inm-side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--inm-ink-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.inm-side-title svg { color: var(--inm-teal); }

.inm-contacto-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--inm-ink-700);
    text-decoration: none;
    font-size: 14px;
    transition: color 220ms ease;
}
.inm-contacto-row + .inm-contacto-row {
    border-top: 1px solid var(--inm-border);
}
.inm-contacto-row:hover { color: var(--inm-teal-deep); }
.inm-contacto-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--inm-teal-deep);
    display: grid;
    place-items: center;
    transition: background 220ms ease, transform 220ms ease;
}
.inm-contacto-row:hover .inm-contacto-icon {
    background: var(--inm-teal);
    color: white;
    transform: scale(1.05) rotate(-3deg);
}
.inm-contacto-text {
    flex: 1;
    word-break: break-word;
    font-weight: 500;
}

.inm-redes {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--inm-border);
}
.inm-red {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--inm-bg-soft);
    color: var(--inm-ink-700);
    display: grid;
    place-items: center;
    text-decoration: none;
    transition:
        background 220ms ease,
        color 220ms ease,
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.inm-red:hover {
    background: var(--inm-ink-900);
    color: white;
    transform: translateY(-2px);
}

.inm-detalle__horarios p {
    margin: 0;
    font-size: 14px;
    color: var(--inm-ink-700);
    line-height: 1.6;
    white-space: pre-line;
}

.inm-detalle__direccion {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: var(--inm-ink-700);
    font-weight: 500;
    line-height: 1.5;
}
.inm-detalle__map-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--inm-border);
    aspect-ratio: 4 / 3;
    background: var(--inm-bg-soft);
}
.inm-detalle__map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.inm-detalle__map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--inm-teal-deep);
    text-decoration: none;
}
.inm-detalle__map-link:hover { text-decoration: underline; }

/* ─── ESTADOS de carga / vacío del detalle ───────────────────────────── */
.inm-detalle-loading,
.inm-detalle-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    gap: 18px;
    text-align: center;
    color: var(--inm-ink-500);
    padding: 40px 24px;
}
.inm-detalle-empty h1 {
    margin: 0;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--inm-ink-900);
}
.inm-detalle-empty p { margin: 0; max-width: 460px; font-size: 15px; }

.inm-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(20, 184, 166, 0.2);
    border-top-color: var(--inm-teal);
    border-radius: 50%;
    animation: inmSpin 0.8s linear infinite;
}
@keyframes inmSpin {
    to { transform: rotate(360deg); }
}

/* ════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL (cooperar con scroll-reveal.js global)
   ════════════════════════════════════════════════════════════════════════
   scroll-reveal.js global agrega .is-visible cuando el elemento entra
   al viewport (NO .is-revealed — ese fue un bug inicial). Nuestra variante:
   traducción + fade con delay encadenado vía --reveal-delay (lo seteamos
   inline en las cards para que el grid "se desplegue" con un stagger natural).

   Failsafe: si scroll-reveal.js no carga (caso raro), aplicamos .is-visible
   automáticamente vía animation-delay y la animación termina visible — así
   nunca queda el contenido fantasmal escondido por siempre.
   ════════════════════════════════════════════════════════════════════════ */
.inm-grid-section [data-reveal],
.inm-detalle [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    /* Failsafe — si el JS no marca .is-visible en 2.5s, animation force-show. */
    animation: inmRevealFailsafe 700ms cubic-bezier(0.22, 1, 0.36, 1) 2.5s forwards;
}
@keyframes inmRevealFailsafe {
    to { opacity: 1; transform: translateY(0); }
}
.inm-grid-section [data-reveal].is-visible,
.inm-detalle [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: none; /* el JS ganó, cancelamos el failsafe */
}

/* Si el browser no soporta scroll-reveal o el JS no cargó, no queremos
   ocultar todo permanentemente — fallback que muestra después de 1.5s. */
@media (prefers-reduced-motion: reduce) {
    .inm-grid-section [data-reveal],
    .inm-detalle [data-reveal],
    .inm-hero__copy > *,
    .inm-hero__stage {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
    .inm-hero__aurora,
    .inm-orbe__halo,
    .inm-orbe__ring,
    .inm-orbe__core,
    .inm-particle,
    .inm-orbital__card,
    .inm-orbital__dot,
    .inm-hero__scroll-arrow { animation: none !important; }
}

/* ════════════════════════════════════════════════════════════════════════
   AJUSTES RESPONSIVE
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .inm-hero {
        padding: clamp(70px, 11vh, 100px) 0 56px;
    }
    .inm-hero__inner { gap: 36px; }
    .inm-hero__stage { max-width: 360px; }
    /* En mobile: solo mostramos las 3 cards más prominentes para no
       saturar el viewport chico. Las del fondo (c, e) las ocultamos. */
    .inm-slot--c, .inm-slot--e { display: none; }
    .inm-orbital__link { padding: 12px 14px; gap: 10px; }
    .inm-orbital__logo { width: 40px; height: 40px; border-radius: 10px; }
    .inm-orbital__fallback { font-size: 16px; }
    .inm-orbital__name { font-size: 12.5px; }
    .inm-orbital__meta { font-size: 10.5px; }

    .inm-grid { gap: 16px; }
    .inm-card__banner { height: 100px; }
    .inm-card__logo { width: 60px; height: 60px; border-radius: 14px; top: 70px; }
    .inm-card__body { padding: 44px 18px 16px; }
    .inm-card__name { font-size: 15.5px; }

    .inm-detalle__hero { height: 240px; }
    .inm-detalle__bloque,
    .inm-detalle__contacto,
    .inm-detalle__horarios,
    .inm-detalle__mapa { padding: 18px; }
}
