/* ==========================================================================
   GRUPO SION — DESIGN SYSTEM
   Tema inmobiliario · mobile-first · identidad dorada sobre grafito
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Tipografía
   4.  Layout (container, section, heads)
   5.  Botones & enlaces
   6.  Header, navegación y drawer móvil
   7.  Hero carrusel
   8.  Barra de specs
   9.  Galería + lightbox
   10. Tarjetas de proyecto
   11. Secciones editoriales (about, tour, contacto)
   12. Proyecto individual
   13. Archivos y listados
   14. Footer
   15. Motion & reveal
   16. Accesibilidad, utilidades y preferencias
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
    /* Marca */
    --gold: #f4c400;
    --gold-strong: #d6ab00;
    --gold-soft: #ffd84d;
    --gold-glow: rgba(244, 196, 0, 0.35);

    /* Neutros oscuros */
    --ink-950: #0b0e11;
    --ink-900: #0f1419;
    --ink-800: #191e23;
    --ink-700: #232a31;
    --ink-600: #2f3841;

    /* Neutros claros */
    --page-bg: #f4f5f7;
    --surface: #ffffff;
    --surface-alt: #fafbfc;
    --surface-sunken: #eef0f3;

    /* Texto */
    --text: #1d2329;
    --text-soft: #59636e;
    --text-faint: #7b8794;
    --text-on-dark: #f2f4f5;
    --text-on-dark-soft: #a9b4bf;

    /* Bordes */
    --line: #dbe0e6;
    --line-soft: #e8ebef;
    --line-dark: rgba(255, 255, 255, 0.1);

    /* Compat con estilos heredados */
    --header-solid: var(--ink-800);
    --muted: var(--text-soft);
    --accent: var(--gold);
    --accent-strong: var(--gold-strong);

    /* Radios */
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --radius-pill: 999px;

    /* Sombras */
    --shadow-xs: 0 1px 2px rgba(16, 24, 32, 0.06);
    --shadow-sm: 0 4px 14px rgba(16, 24, 32, 0.07);
    --shadow-soft: 0 18px 44px rgba(16, 24, 32, 0.09);
    --shadow-md: 0 24px 58px rgba(16, 24, 32, 0.12);
    --shadow-hover: 0 34px 78px rgba(16, 24, 32, 0.18);
    --shadow-gold: 0 18px 40px -14px rgba(244, 196, 0, 0.6);

    /* Layout */
    --container: min(1200px, 92vw);
    --container-narrow: min(820px, 92vw);
    --header-h: 72px;

    /* Escala de espaciado */
    --space-2xs: 0.35rem;
    --space-xs: 0.6rem;
    --space-sm: 1rem;
    --space-md: 1.6rem;
    --space-lg: 2.6rem;
    --space-xl: 4rem;
    --section-y: clamp(3.5rem, 8vw, 7rem);

    /* Tipografía fluida */
    --fs-eyebrow: clamp(0.68rem, 0.62rem + 0.25vw, 0.78rem);
    --fs-body: clamp(0.98rem, 0.94rem + 0.2vw, 1.06rem);
    --fs-lead: clamp(1.05rem, 0.98rem + 0.45vw, 1.25rem);
    --fs-h4: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
    --fs-h3: clamp(1.25rem, 1.1rem + 0.75vw, 1.7rem);
    --fs-h2: clamp(1.75rem, 1.35rem + 2vw, 3rem);
    --fs-h1: clamp(2.1rem, 1.5rem + 3.2vw, 4rem);
    --fs-display: clamp(2.6rem, 1.7rem + 4.6vw, 5.4rem);

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 180ms;
    --dur: 320ms;
    --dur-slow: 620ms;

    /* Capas */
    --z-header: 200;
    --z-drawer: 300;
    --z-float: 400;
    --z-lightbox: 500;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: var(--fs-body);
    font-weight: 400;
    color: var(--text);
    background: var(--page-bg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.is-locked {
    overflow: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

ul,
ol {
    margin: 0 0 1em;
    padding-left: 1.15em;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: var(--space-lg) 0;
}

::selection {
    background: var(--gold);
    color: var(--ink-900);
}

/* Scrollbar sutil */
@supports (scrollbar-width: thin) {
    * {
        scrollbar-width: thin;
        scrollbar-color: rgba(89, 99, 110, 0.35) transparent;
    }
}

*::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(89, 99, 110, 0.3);
    border: 3px solid transparent;
    border-radius: var(--radius-pill);
    background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(89, 99, 110, 0.55);
    background-clip: content-box;
}

/* Foco accesible unificado */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: var(--radius-xs);
}

/* ==========================================================================
   3. TIPOGRAFÍA
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.45em;
    line-height: 1.08;
    font-family: 'Anton', 'Lato', sans-serif;
    font-weight: 400;
    letter-spacing: -0.005em;
    text-wrap: balance;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

h4 {
    font-size: var(--fs-h4);
}

p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

p:last-child {
    margin-bottom: 0;
}

strong,
b {
    font-weight: 700;
}

blockquote {
    margin: var(--space-md) 0;
    padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 6px);
    border-left: 4px solid var(--gold);
    background: var(--surface-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: var(--fs-lead);
    font-style: italic;
    color: var(--text);
}

code,
pre {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 0.9em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    margin: 0 0 0.9em;
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold-strong);
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    flex: none;
}

.section-head .eyebrow,
.slide-card .eyebrow {
    color: var(--gold-strong);
}

.lead,
.entry-excerpt {
    font-size: var(--fs-lead);
    color: var(--text-soft);
    line-height: 1.6;
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.container,
.wrap {
    width: var(--container);
    margin-inline: auto;
}

.site-main {
    display: block;
    min-height: 40vh;
}

.section,
.projects,
.about,
.contact,
.projects-listing,
.property-gallery,
.tour-section,
.archive-listing,
.archive-projects,
.single-project,
.sion-calculator-section {
    padding-block: var(--section-y);
}

.section-head,
.section-heading {
    max-width: 62ch;
    margin-bottom: clamp(2rem, 4vw, 3.4rem);
}

.section-head h2,
.section-heading h2 {
    margin-bottom: 0.35em;
}

.section-head p,
.section-heading p {
    color: var(--text-soft);
    font-size: var(--fs-lead);
    margin-bottom: 0;
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head--center .eyebrow {
    justify-content: center;
}

/* Cabecera de sección con acción a la derecha */
.section-head--split {
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

@media (min-width: 860px) {
    .section-head--split {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .section-head--split > div {
        max-width: 62ch;
    }
}

/* Fondos alternos */
.section--dark {
    background: var(--ink-900);
    color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3 {
    color: #fff;
}

.section--dark p {
    color: var(--text-on-dark-soft);
}

.section--sunken {
    background: var(--surface-sunken);
}

/* ==========================================================================
   5. BOTONES
   ========================================================================== */

.button,
.button-primary,
.button-secondary,
.button-whatsapp,
.sion-filter__submit {
    --btn-bg: var(--gold);
    --btn-fg: var(--ink-900);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    padding: 0.95em 1.9em;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
        background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
        border-color var(--dur) var(--ease-out);
}

/* Barrido de brillo */
.button::before,
.button-primary::before,
.button-whatsapp::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform var(--dur-slow) var(--ease-out);
}

.button:hover::before,
.button-primary:hover::before,
.button-whatsapp:hover::before {
    transform: translateX(120%);
}

.button:hover,
.button-primary:hover,
.sion-filter__submit:hover {
    background: var(--gold-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.button:active,
.button-primary:active,
.button-secondary:active,
.button-whatsapp:active {
    transform: translateY(-1px);
}

.button-secondary {
    --btn-bg: transparent;
    --btn-fg: var(--text);
    border-color: var(--line);
}

.button-secondary:hover {
    border-color: var(--ink-800);
    background: var(--ink-800);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Variante sobre fondo oscuro */
.button-ghost {
    --btn-bg: rgba(255, 255, 255, 0.06);
    --btn-fg: #fff;
    border-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
}

.button-ghost:hover {
    background: #fff;
    color: var(--ink-900);
    border-color: #fff;
    transform: translateY(-3px);
}

.button-whatsapp {
    --btn-bg: #25d366;
    --btn-fg: #05231a;
}

.button-whatsapp:hover {
    background: #1eb555;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -14px rgba(37, 211, 102, 0.7);
}

.button svg,
.button-whatsapp svg {
    flex: none;
    transition: transform var(--dur) var(--ease-out);
}

.button:hover svg {
    transform: translateX(3px);
}

/* Enlace con flecha animada */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    text-decoration: none;
    color: var(--gold-strong);
    transition: gap var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.link-arrow::after {
    content: '→';
    transition: transform var(--dur) var(--ease-out);
}

.link-arrow:hover {
    gap: 0.85em;
    color: var(--ink-900);
}

/* ==========================================================================
   6. HEADER / NAVEGACIÓN
   ========================================================================== */

/* Barra superior de contacto */
.site-topbar {
    background: var(--ink-950);
    color: var(--text-on-dark-soft);
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-topbar__inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
    padding-block: 6px;
}

.site-topbar__items {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.site-topbar a {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    color: inherit;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}

.site-topbar a:hover {
    color: var(--gold);
}

.site-topbar svg {
    width: 14px;
    height: 14px;
    flex: none;
    opacity: 0.8;
}

.site-topbar__tagline {
    display: none;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.68rem;
    opacity: 0.75;
}

@media (min-width: 860px) {
    .site-topbar__tagline {
        display: block;
    }
}

/* Header principal */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: color-mix(in srgb, var(--ink-800) 92%, transparent);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
        border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

@supports not (backdrop-filter: blur(4px)) {
    .site-header {
        background: var(--ink-800);
    }
}

.site-header.is-scrolled {
    background: color-mix(in srgb, var(--ink-950) 96%, transparent);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* Auto-ocultar al bajar */
.site-header.is-hidden {
    transform: translateY(-100%);
}

.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

@media (min-width: 1060px) {
    :root {
        --header-h: 84px;
    }

    .header-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: clamp(1.5rem, 3vw, 3rem);
    }
}

/* Marca */
.brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo-link img {
    max-height: 46px;
    width: auto;
    transition: transform var(--dur) var(--ease-out);
}

.custom-logo-link:hover img {
    transform: scale(1.04);
}

.site-title {
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.01em;
    transition: transform var(--dur) var(--ease-out);
}

.site-title:hover {
    transform: translateY(-1px);
}

.site-title-mark {
    color: var(--text-on-dark);
    font-size: clamp(1.15rem, 1rem + 0.9vw, 1.62rem);
    line-height: 1;
}

.site-title-accent {
    position: relative;
    color: var(--gold);
    font-size: clamp(1.3rem, 1.1rem + 1vw, 1.85rem);
    line-height: 1;
}

.site-title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease-out);
}

.site-title:hover .site-title-accent::after {
    transform: scaleX(1);
}

/* Navegación de escritorio */
.primary-nav {
    display: none;
}

@media (min-width: 1060px) {
    .primary-nav {
        display: block;
    }
}

.primary-nav .menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.4rem, 1.4vw, 1.4rem);
}

.primary-nav .menu li {
    position: relative;
}

.primary-nav .menu a {
    display: block;
    position: relative;
    padding: 0.6em 0.7em;
    color: var(--text-on-dark-soft);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color var(--dur-fast) var(--ease-out);
}

.primary-nav .menu a::after {
    content: '';
    position: absolute;
    left: 0.7em;
    right: 0.7em;
    bottom: 0.15em;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--dur) var(--ease-out);
}

.primary-nav .menu a:hover,
.primary-nav .menu .current-menu-item > a,
.primary-nav .menu .current_page_item > a {
    color: #fff;
}

.primary-nav .menu a:hover::after,
.primary-nav .menu .current-menu-item > a::after,
.primary-nav .menu .current_page_item > a::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Submenús */
.primary-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--ink-800);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
        visibility var(--dur);
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(6px);
}

.primary-nav .sub-menu a {
    padding: 0.7em 0.9em;
    border-radius: var(--radius-xs);
    letter-spacing: 0.05em;
    text-transform: none;
    font-size: 0.85rem;
}

.primary-nav .sub-menu a::after {
    display: none;
}

.primary-nav .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--gold);
}

/* Acciones del header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-cta {
    display: none;
    position: relative;
    text-decoration: none;
    color: var(--ink-900);
    background: var(--gold);
    border-radius: var(--radius-pill);
    padding: 0.75em 1.35em;
    font-weight: 700;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out),
        box-shadow var(--dur) var(--ease-out);
}

@media (min-width: 680px) {
    .header-cta {
        display: inline-flex;
        align-items: center;
        gap: 0.5em;
    }
}

.header-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.6) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform var(--dur-slow) var(--ease-out);
}

.header-cta:hover::before {
    transform: translateX(120%);
}

.header-cta:hover {
    background: var(--gold-strong);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* Botón hamburguesa */
.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold);
}

@media (min-width: 1060px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle__box {
    position: relative;
    width: 20px;
    height: 14px;
}

.nav-toggle__bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-out),
        width var(--dur) var(--ease-out);
}

.nav-toggle__bar:nth-child(1) {
    top: 0;
}

.nav-toggle__bar:nth-child(2) {
    top: 6px;
    width: 70%;
}

.nav-toggle__bar:nth-child(3) {
    top: 12px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-12px);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Drawer móvil */
.nav-drawer {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer);
    display: grid;
    grid-template-columns: 1fr;
    pointer-events: none;
}

.nav-drawer[hidden] {
    display: none;
}

.nav-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 12, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--dur) var(--ease-out);
}

.nav-drawer__panel {
    position: relative;
    justify-self: end;
    width: min(400px, 88vw);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: clamp(1.5rem, 5vw, 2.4rem);
    background: var(--ink-900);
    color: var(--text-on-dark);
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
}

.nav-drawer.is-open {
    pointer-events: auto;
}

.nav-drawer.is-open .nav-drawer__backdrop {
    opacity: 1;
}

.nav-drawer.is-open .nav-drawer__panel {
    transform: translateX(0);
}

.nav-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.nav-drawer__close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.nav-drawer .menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-drawer .menu a {
    display: block;
    padding: 0.85em 0.9em;
    border-radius: var(--radius-sm);
    color: var(--text-on-dark);
    text-decoration: none;
    font-family: 'Anton', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
        padding-left var(--dur) var(--ease-out);
}

.nav-drawer .menu a:hover,
.nav-drawer .menu .current-menu-item > a {
    background: rgba(244, 196, 0, 0.12);
    color: var(--gold);
    padding-left: 1.3em;
}

.nav-drawer .sub-menu {
    margin: 2px 0 6px 0.8em;
    padding-left: 0.8em;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    list-style: none;
}

.nav-drawer .sub-menu a {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    padding-block: 0.6em;
}

/* Entrada escalonada de los ítems del drawer */
.nav-drawer .menu > li {
    opacity: 0;
    transform: translateX(18px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.nav-drawer.is-open .menu > li {
    opacity: 1;
    transform: none;
}

.nav-drawer.is-open .menu > li:nth-child(1) { transition-delay: 90ms; }
.nav-drawer.is-open .menu > li:nth-child(2) { transition-delay: 140ms; }
.nav-drawer.is-open .menu > li:nth-child(3) { transition-delay: 190ms; }
.nav-drawer.is-open .menu > li:nth-child(4) { transition-delay: 240ms; }
.nav-drawer.is-open .menu > li:nth-child(5) { transition-delay: 290ms; }
.nav-drawer.is-open .menu > li:nth-child(6) { transition-delay: 340ms; }
.nav-drawer.is-open .menu > li:nth-child(7) { transition-delay: 390ms; }
.nav-drawer.is-open .menu > li:nth-child(8) { transition-delay: 440ms; }

.nav-drawer__footer {
    margin-top: auto;
    display: grid;
    gap: 0.75rem;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-drawer__footer .button,
.nav-drawer__footer .button-whatsapp {
    width: 100%;
}

.nav-drawer__contact {
    display: grid;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-on-dark-soft);
}

.nav-drawer__contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: inherit;
    text-decoration: none;
}

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

/* Barra de progreso de scroll global */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--gold-strong), var(--gold-soft));
    z-index: calc(var(--z-header) + 5);
    pointer-events: none;
    will-change: transform;
}

/* ==========================================================================
   7. HERO CARRUSEL
   ========================================================================== */

.property-hero-carousel {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: clamp(520px, 88svh, 880px);
    overflow: hidden;
    background: var(--ink-950);
    isolation: isolate;
}

.carousel-wrapper,
.carousel-slides {
    position: relative;
    width: 100%;
    min-height: clamp(520px, 88svh, 880px);
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 900ms var(--ease-in-out), visibility 900ms;
}

.carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
}

/* Ken Burns lento en la imagen activa */
.slide-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transition: transform 1200ms var(--ease-out);
    will-change: transform;
}

.carousel-slide.is-active .slide-background {
    animation: sion-kenburns 18s var(--ease-in-out) forwards;
}

@keyframes sion-kenburns {
    from {
        transform: scale(1.02) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1.16) translate3d(-1.5%, -1.5%, 0);
    }
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 14, 17, 0.72) 0%, rgba(11, 14, 17, 0.18) 34%, rgba(11, 14, 17, 0.86) 100%),
        linear-gradient(100deg, rgba(11, 14, 17, 0.7) 0%, rgba(11, 14, 17, 0.05) 62%);
}

/* Textura sutil de rejilla */
.property-hero-carousel::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
    opacity: 0.7;
}

.slide-content {
    position: absolute;
    inset: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--container);
    display: flex;
    align-items: flex-end;
    padding-block: clamp(4.5rem, 12vw, 8rem);
    pointer-events: none;
    z-index: 2;
}

.slide-card {
    position: relative;
    max-width: 620px;
    padding: clamp(1.6rem, 4vw, 2.8rem);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    overflow: hidden;
}

/* Filo dorado superior */
.slide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-strong), var(--gold-soft), var(--gold-strong));
    background-size: 200% 100%;
    animation: sion-sheen 4s linear infinite;
}

@keyframes sion-sheen {
    to {
        background-position: 200% 0;
    }
}

/* Animación de entrada del contenido del slide activo */
.carousel-slide.is-active .slide-card > * {
    animation: sion-slide-up 760ms var(--ease-out) backwards;
}

.carousel-slide.is-active .slide-card > *:nth-child(1) { animation-delay: 120ms; }
.carousel-slide.is-active .slide-card > *:nth-child(2) { animation-delay: 200ms; }
.carousel-slide.is-active .slide-card > *:nth-child(3) { animation-delay: 280ms; }
.carousel-slide.is-active .slide-card > *:nth-child(4) { animation-delay: 360ms; }
.carousel-slide.is-active .slide-card > *:nth-child(5) { animation-delay: 440ms; }
.carousel-slide.is-active .slide-card > *:nth-child(6) { animation-delay: 520ms; }

@keyframes sion-slide-up {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.slide-card .eyebrow {
    color: var(--gold-strong);
}

.slide-card h1 {
    color: var(--text);
    font-size: clamp(1.9rem, 1.3rem + 3vw, 3.4rem);
    margin-bottom: 0.25em;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 0.45em;
    font-weight: 700;
    color: var(--ink-700);
    margin-bottom: 0.7em;
}

.project-location::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-glow);
    flex: none;
}

.project-excerpt {
    color: var(--text-soft);
    font-size: var(--fs-body);
    margin-bottom: 1.1em;
}

.project-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35em;
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
    color: var(--ink-900);
    margin-bottom: 1.1em;
    line-height: 1;
}

.project-price::before {
    content: '';
    width: 3px;
    align-self: stretch;
    background: var(--gold);
    border-radius: 2px;
}

/* Controles */
.carousel-nav {
    position: absolute;
    left: 50%;
    bottom: clamp(1.5rem, 5vw, 3rem);
    transform: translateX(-50%);
    width: var(--container);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    z-index: 6;
}

.carousel-prev,
.carousel-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
        transform var(--dur) var(--ease-spring), border-color var(--dur) var(--ease-out);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink-900);
    transform: scale(1.08);
}

.carousel-prev:active,
.carousel-next:active {
    transform: scale(0.96);
}

/* Indicadores tipo barra con progreso */
.carousel-indicators {
    position: absolute;
    left: 50%;
    bottom: clamp(1.5rem, 5vw, 3rem);
    transform: translateX(-50%);
    width: var(--container);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 6;
}

.indicator {
    position: relative;
    width: 46px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    overflow: hidden;
    transition: width var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}

.indicator::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.55);
}

.indicator.is-active {
    width: 76px;
}

.indicator.is-active::after {
    animation: sion-indicator 6s linear forwards;
}

@keyframes sion-indicator {
    to {
        transform: scaleX(1);
    }
}

.property-hero-carousel.is-paused .indicator.is-active::after {
    animation-play-state: paused;
}

/* Indicación de scroll */
.hero-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: clamp(1.5rem, 5vw, 3rem);
    transform: translateX(-50%);
    z-index: 5;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-decoration: none;
}

@media (min-width: 1100px) {
    .hero-scroll-cue {
        display: flex;
    }
}

.hero-scroll-cue__line {
    width: 1px;
    height: 46px;
    background: linear-gradient(180deg, transparent, var(--gold));
    position: relative;
    overflow: hidden;
}

.hero-scroll-cue__line::after {
    content: '';
    position: absolute;
    top: -46px;
    left: 0;
    width: 100%;
    height: 46px;
    background: var(--gold);
    animation: sion-scroll-cue 2.4s var(--ease-in-out) infinite;
}

@keyframes sion-scroll-cue {
    to {
        transform: translateY(92px);
    }
}

/* Franja de filtros bajo el hero */
.sion-hero-filter {
    position: relative;
    z-index: 8;
    margin-top: clamp(-4.5rem, -6vw, -2.5rem);
    padding-bottom: var(--space-lg);
}

/* ==========================================================================
   8. BARRA DE SPECS
   ========================================================================== */

.property-specs {
    background: var(--ink-900);
    color: var(--text-on-dark);
    padding-block: clamp(2rem, 5vw, 3.4rem);
    position: relative;
    overflow: hidden;
}

.property-specs::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -10%;
    width: 45%;
    height: 220%;
    background: radial-gradient(circle, rgba(244, 196, 0, 0.14), transparent 62%);
    pointer-events: none;
}

.specs-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius);
    overflow: hidden;
}

@media (min-width: 760px) {
    .specs-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.specs-grid article {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: clamp(1.2rem, 3vw, 2rem) 1rem;
    background: var(--ink-900);
    text-align: center;
    transition: background-color var(--dur) var(--ease-out);
}

.specs-grid article:hover {
    background: var(--ink-800);
}

.specs-grid strong {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
    line-height: 1;
    color: var(--gold);
    font-weight: 400;
}

.specs-grid span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-on-dark-soft);
}

/* ==========================================================================
   9. GALERÍA + LIGHTBOX
   ========================================================================== */

.property-gallery {
    background: var(--surface);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 760px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: clamp(180px, 26vw, 300px);
    }

    .gallery-item.is-large {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface-sunken);
    cursor: zoom-in;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform 900ms var(--ease-out), filter var(--dur) var(--ease-out);
}

@media (min-width: 760px) {
    .gallery-item img {
        aspect-ratio: auto;
    }
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(11, 14, 17, 0.55));
    opacity: 0;
    transition: opacity var(--dur) var(--ease-out);
}

/* Icono de lupa */
.gallery-item::before {
    content: '';
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230f1419' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 18px no-repeat;
    opacity: 0;
    transform: translateY(10px) scale(0.85);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring);
}

.gallery-item:hover,
.gallery-item:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gallery-item:hover img,
.gallery-item.is-active img {
    transform: scale(1.07);
}

.gallery-item:hover::after,
.gallery-item:hover::before,
.gallery-item:focus-within::before {
    opacity: 1;
}

.gallery-item:hover::before {
    transform: translateY(0) scale(1);
}

/* Lightbox */
.sion-lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-lightbox);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(6, 9, 12, 0.94);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
}

.sion-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.sion-lightbox__figure {
    position: relative;
    margin: 0;
    max-width: min(1180px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.sion-lightbox__img {
    max-width: 100%;
    max-height: 82svh;
    width: auto;
    border-radius: var(--radius);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    transform: scale(0.94);
    opacity: 0;
    transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur) var(--ease-out);
}

.sion-lightbox.is-open .sion-lightbox__img {
    transform: scale(1);
    opacity: 1;
}

.sion-lightbox__counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.sion-lightbox__btn {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
        transform var(--dur) var(--ease-spring);
}

.sion-lightbox__btn:hover {
    background: var(--gold);
    color: var(--ink-900);
    border-color: var(--gold);
    transform: scale(1.08);
}

.sion-lightbox__btn--close {
    top: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);
}

.sion-lightbox__btn--prev {
    left: clamp(0.5rem, 2vw, 2rem);
    top: 50%;
    transform: translateY(-50%);
}

.sion-lightbox__btn--next {
    right: clamp(0.5rem, 2vw, 2rem);
    top: 50%;
    transform: translateY(-50%);
}

.sion-lightbox__btn--prev:hover,
.sion-lightbox__btn--next:hover {
    transform: translateY(-50%) scale(1.08);
}

/* ==========================================================================
   10. TARJETAS DE PROYECTO
   ========================================================================== */

.projects-listing {
    background: var(--page-bg);
}

.project-cards,
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.2rem, 2.6vw, 2rem);
}

@media (min-width: 640px) {
    .project-cards,
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1080px) {
    .project-cards,
    .project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
    transform-style: preserve-3d;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
        border-color var(--dur) var(--ease-out);
    will-change: transform;
}

.project-card:hover {
    border-color: rgba(244, 196, 0, 0.5);
    box-shadow: var(--shadow-hover);
}

.project-card figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: var(--surface-sunken);
}

.project-card figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 900ms var(--ease-out);
}

.project-card:hover figure img {
    transform: scale(1.08);
}

/* Velo degradado en la imagen */
.project-card figure::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(11, 14, 17, 0.5));
    opacity: 0;
    transition: opacity var(--dur) var(--ease-out);
}

.project-card:hover figure::after {
    opacity: 1;
}

/* Badge de estado */
.sion-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.45em 0.95em;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    color: var(--ink-900);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    box-shadow: var(--shadow-sm);
}

.sion-badge--inline {
    position: static;
    background: var(--ink-800);
    color: #fff;
    box-shadow: none;
}

.sion-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    flex: none;
}

.sion-badge--pre-venta::before {
    background: #f59e0b;
}

.sion-badge--construccion::before {
    background: #3b82f6;
}

.sion-badge--entrega-inmediata::before {
    background: #22c55e;
}

.project-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.55rem;
    padding: clamp(1.3rem, 3vw, 1.8rem);
}

.project-content h3 {
    margin: 0;
    font-size: var(--fs-h3);
    line-height: 1.12;
}

.project-content h3 a {
    text-decoration: none;
    background-image: linear-gradient(var(--gold), var(--gold));
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: left 92%;
    transition: background-size var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.project-card:hover .project-content h3 a {
    background-size: 100% 2px;
}

.project-content .project-location {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--text-soft);
    font-weight: 600;
}

.project-content > p {
    color: var(--text-soft);
    font-size: 0.92rem;
    margin-bottom: 0;
}

.project-content > a:last-child {
    margin-top: auto;
    padding-top: 0.6rem;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    text-decoration: none;
    color: var(--gold-strong);
    transition: gap var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.project-content > a:last-child::after {
    content: '→';
    transition: transform var(--dur) var(--ease-out);
}

.project-content > a:last-child:hover {
    gap: 0.85em;
    color: var(--ink-900);
}

.sion-card__price {
    margin: 0;
    font-family: 'Anton', sans-serif;
    font-size: 1.35rem;
    color: var(--ink-900);
    line-height: 1.1;
}

.sion-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.2rem 0;
    padding: 0;
    list-style: none;
}

.sion-card__specs li {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.35em 0.8em;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface-alt);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-soft);
}

.sion-card__specs:empty,
.sion-card__benefits:empty {
    display: none;
}

.sion-card__benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sion-card__benefits li {
    padding: 0.3em 0.7em;
    border-radius: var(--radius-xs);
    background: rgba(244, 196, 0, 0.16);
    color: #7a6100;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.sion-card__benefits--lg li {
    font-size: 0.76rem;
    padding: 0.45em 0.95em;
}

/* Estado vacío */
.sion-empty,
.not-found {
    padding: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text-soft);
}

.not-found {
    margin-block: var(--section-y);
}

.project-cards > .sion-empty,
.project-grid > .sion-empty,
.sion-news-grid > .sion-empty {
    grid-column: 1 / -1;
}

.sion-results-count {
    margin-bottom: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.section-head .sion-results-count {
    margin-bottom: 0;
}

.archive-projects .sion-filter,
.archive-listing .sion-filter {
    margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
}

/* ==========================================================================
   11. SECCIONES EDITORIALES
   ========================================================================== */

/* About */
.about {
    background: var(--surface);
}

.about-grid,
.about-grid.container {
    display: grid;
    gap: clamp(1.6rem, 4vw, 3.2rem);
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
    }
}

.metrics-grid,
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.metrics-grid > *,
.metrics > * {
    padding: clamp(1.1rem, 3vw, 1.8rem);
    background: var(--surface);
    text-align: center;
    transition: background-color var(--dur) var(--ease-out);
}

.metrics-grid > *:hover,
.metrics > *:hover {
    background: var(--surface-alt);
}

.metrics-grid strong,
.metrics strong {
    display: block;
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
    color: var(--ink-900);
    line-height: 1;
}

.metrics-grid span,
.metrics span {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-soft);
}

/* Sección de tour / WhatsApp */
.tour-section {
    position: relative;
    background: var(--ink-900);
    color: var(--text-on-dark);
    overflow: hidden;
}

.tour-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -8%;
    width: 46%;
    height: 180%;
    background: radial-gradient(circle, rgba(244, 196, 0, 0.16), transparent 62%);
    pointer-events: none;
}

.tour-section h2 {
    color: #fff;
}

.tour-section p {
    color: var(--text-on-dark-soft);
}

.tour-grid {
    position: relative;
    display: grid;
    gap: clamp(1.8rem, 4vw, 3.4rem);
    align-items: center;
}

@media (min-width: 900px) {
    .tour-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.tour-whatsapp-card {
    position: relative;
    padding: clamp(1.6rem, 4vw, 2.6rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.tour-whatsapp-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 211, 102, 0.55);
}

.whatsapp-card-content {
    position: relative;
    display: grid;
    gap: 0.8rem;
    justify-items: start;
}

.whatsapp-card-content h3 {
    color: #fff;
    margin: 0;
}

.whatsapp-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: var(--radius);
    background: rgba(37, 211, 102, 0.16);
    border: 1px solid rgba(37, 211, 102, 0.32);
    color: #25d366;
    margin-bottom: 0.3rem;
}

.icon-whatsapp-banner {
    width: 38px;
    height: 38px;
    animation: sion-float 5s var(--ease-in-out) infinite;
}

@keyframes sion-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

/* Contacto */
.contact {
    background: var(--surface);
}

.contact-panel {
    display: grid;
    gap: clamp(1.6rem, 4vw, 3rem);
}

@media (min-width: 900px) {
    .contact-panel {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: start;
    }
}

.contact-copy p {
    color: var(--text-soft);
}

.contact-form {
    display: grid;
    gap: 0.9rem;
    padding: clamp(1.4rem, 3.5vw, 2.2rem);
    background: var(--surface-alt);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-form label {
    display: grid;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--text-soft);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.85em 1em;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
    transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-glow);
}

/* Cajas embebidas */
.embed-box,
.video-box,
.virtual-tour-embed {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink-800);
    box-shadow: var(--shadow-md);
    aspect-ratio: 16 / 9;
}

.embed-box iframe,
.video-box iframe,
.virtual-tour-embed iframe,
.project-details-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.virtual-tour-box {
    display: grid;
    gap: var(--space-md);
}

.virtual-tour-head h2,
.virtual-tour-head h3 {
    margin-bottom: 0.3em;
}

.virtual-tour-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
}

/* Proceso / pasos */
.process {
    display: grid;
    gap: clamp(1rem, 2.4vw, 1.6rem);
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    counter-reset: sion-step;
    list-style: none;
    padding: 0;
    margin: 0;
}

.process > * {
    position: relative;
    padding: clamp(1.4rem, 3vw, 2rem);
    padding-top: clamp(2.6rem, 5vw, 3.2rem);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.process > *::before {
    counter-increment: sion-step;
    content: counter(sion-step, decimal-leading-zero);
    position: absolute;
    top: clamp(1rem, 2.4vw, 1.4rem);
    left: clamp(1.4rem, 3vw, 2rem);
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    color: var(--gold-strong);
    letter-spacing: 0.08em;
}

.process > *:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   12. PROYECTO INDIVIDUAL
   ========================================================================== */

.single-project {
    background: var(--page-bg);
}

.single-project-grid {
    display: grid;
    gap: clamp(1.6rem, 4vw, 3rem);
}

@media (min-width: 1000px) {
    .single-project-grid {
        grid-template-columns: 1.35fr 0.65fr;
        align-items: start;
    }
}

.hero {
    position: relative;
    background: var(--ink-900);
    color: var(--text-on-dark);
    overflow: hidden;
}

.hero-inner {
    position: relative;
    display: grid;
    gap: clamp(1.6rem, 4vw, 3rem);
    padding-block: clamp(3rem, 8vw, 6rem);
    align-items: center;
}

@media (min-width: 960px) {
    .hero-inner {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

.hero-content h1 {
    color: #fff;
}

.hero-content p {
    color: var(--text-on-dark-soft);
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-weight: 700;
    color: var(--gold-strong);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
}

.hero-price {
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
    color: var(--ink-900);
    line-height: 1;
    margin-bottom: 0.6em;
}

.hero .hero-location,
.hero .hero-price,
.section--dark .hero-location,
.section--dark .hero-price {
    color: var(--gold);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: var(--space-md);
}

.hero-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hero-panel {
    padding: clamp(1.3rem, 3vw, 1.9rem);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.hero-panel-title {
    margin: 0 0 0.6em;
    font-family: 'Anton', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
}

.project-meta-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-meta-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: 0.75em 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink-900);
}

.project-meta-list li:last-child {
    border-bottom: 0;
}

.project-meta-list strong,
.project-meta-list li > span {
    color: var(--text-soft);
    font-weight: 600;
}

.project-details-box {
    display: grid;
    gap: clamp(1.2rem, 3vw, 2rem);
    margin-top: clamp(1.6rem, 4vw, 2.6rem);
    padding: clamp(1.3rem, 3vw, 1.9rem);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.project-type {
    display: inline-flex;
    padding: 0.35em 0.9em;
    border-radius: var(--radius-pill);
    background: var(--ink-800);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* Contenido editorial */
.entry-content,
.content-default {
    max-width: 74ch;
}

.container.content-default {
    padding-block: var(--section-y);
}

.entry-content > * + *,
.content-default > * + * {
    margin-top: 1.1em;
}

.entry-content h2,
.entry-content h3,
.content-default h2,
.content-default h3 {
    margin-top: 1.8em;
}

.entry-content img,
.content-default img {
    border-radius: var(--radius);
}

.entry-content a,
.content-default a {
    color: var(--gold-strong);
    text-decoration-color: rgba(214, 171, 0, 0.45);
    transition: color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out);
}

.entry-content a:hover,
.content-default a:hover {
    color: var(--ink-900);
    text-decoration-color: var(--ink-900);
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-faint);
}

/* ==========================================================================
   13. ARCHIVOS Y LISTADOS
   ========================================================================== */

.archive-listing,
.archive-projects {
    background: var(--page-bg);
}

/* Paginación */
.pagination,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(2rem, 5vw, 3.4rem);
}

.pagination .page-numbers,
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.9em;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-soft);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all var(--dur-fast) var(--ease-out);
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
    border-color: var(--gold);
    color: var(--ink-900);
    transform: translateY(-2px);
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink-900);
}

/* Avisos */
.notice {
    padding: 1em 1.2em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface-alt);
    font-size: 0.92rem;
}

.notice-success {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.1);
    color: #14532d;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */

.site-footer {
    position: relative;
    background: var(--ink-950);
    color: var(--text-on-dark-soft);
    padding-top: clamp(3rem, 7vw, 5rem);
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.site-footer::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 90%;
    background: radial-gradient(ellipse, rgba(244, 196, 0, 0.09), transparent 68%);
    pointer-events: none;
}

.footer-inner {
    position: relative;
    display: grid;
    gap: clamp(1.8rem, 4vw, 3rem);
    padding-bottom: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 720px) {
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1020px) {
    .footer-inner {
        grid-template-columns: 1.45fr 1fr 1fr 1.15fr;
    }
}

.footer-title,
.footer-heading {
    margin: 0 0 0.9em;
    font-family: 'Anton', sans-serif;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold);
}

.footer-brand .footer-title {
    font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
    letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 0.5em;
}

.footer-brand p {
    color: var(--text-on-dark-soft);
    font-size: 0.93rem;
    max-width: 42ch;
}

.footer-links .menu,
.footer-nav .menu,
.footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.footer-links .menu a,
.footer-nav .menu a,
.footer-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: var(--text-on-dark-soft);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.footer-links .menu a::before,
.footer-nav .menu a::before,
.footer-list a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--dur) var(--ease-out);
}

.footer-links .menu a:hover,
.footer-nav .menu a:hover,
.footer-list a:hover {
    color: var(--gold);
}

.footer-links .menu a:hover::before,
.footer-nav .menu a:hover::before,
.footer-list a:hover::before {
    width: 14px;
}

/* Contacto del footer */
.footer-contact {
    display: grid;
    gap: 0.7rem;
    font-size: 0.92rem;
}

.footer-contact a,
.footer-contact span {
    display: flex;
    align-items: flex-start;
    gap: 0.65em;
    color: var(--text-on-dark-soft);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-contact svg {
    width: 17px;
    height: 17px;
    flex: none;
    margin-top: 3px;
    color: var(--gold);
}

/* Redes sociales */
.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    color: var(--text-on-dark-soft);
    transition: all var(--dur) var(--ease-out);
}

.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink-900);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

/* Pie legal */
.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-bottom__inner {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    text-align: center;
    padding-block: 1.4rem;
    font-size: 0.8rem;
    color: rgba(169, 180, 191, 0.75);
}

@media (min-width: 760px) {
    .footer-bottom__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.copyright {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(169, 180, 191, 0.75);
}

/* Botón volver arriba */
.to-top {
    position: fixed;
    right: clamp(1rem, 3vw, 1.6rem);
    bottom: calc(clamp(1rem, 3vw, 1.6rem) + 76px);
    z-index: var(--z-float);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink-900);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
        visibility var(--dur), background-color var(--dur) var(--ease-out);
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
}

/* ==========================================================================
   15. MOTION & REVEAL
   ========================================================================== */

.motion-reveal,
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
    will-change: opacity, transform;
}

.motion-reveal.is-visible,
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

/* Variantes direccionales */
.motion-reveal--left {
    transform: translateX(-40px);
}

.motion-reveal--right {
    transform: translateX(40px);
}

.motion-reveal--zoom {
    transform: scale(0.94);
}

.motion-reveal--left.is-visible,
.motion-reveal--right.is-visible,
.motion-reveal--zoom.is-visible {
    transform: none;
}

/* Retardos escalonados */
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 280ms; }
.reveal-delay-4 { transition-delay: 380ms; }
.reveal-delay-5 { transition-delay: 480ms; }
.reveal-delay-6 { transition-delay: 580ms; }

/* Stagger automático dentro de grids */
[data-stagger] > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

[data-stagger].is-visible > * {
    opacity: 1;
    transform: none;
}

[data-stagger].is-visible > *:nth-child(1) { transition-delay: 60ms; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 140ms; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 220ms; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 300ms; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 380ms; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: 460ms; }
[data-stagger].is-visible > *:nth-child(7) { transition-delay: 540ms; }
[data-stagger].is-visible > *:nth-child(8) { transition-delay: 620ms; }

/* Título con revelado por máscara */
.reveal-mask {
    display: block;
    overflow: hidden;
}

.reveal-mask > span {
    display: block;
    transform: translateY(100%);
    transition: transform 820ms var(--ease-out);
}

.reveal-mask.is-visible > span {
    transform: none;
}

/* ==========================================================================
   16. ACCESIBILIDAD, UTILIDADES Y PREFERENCIAS
   ========================================================================== */

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: calc(var(--z-lightbox) + 10);
    padding: 0.8em 1.4em;
    border-radius: var(--radius-sm);
    background: var(--gold);
    color: var(--ink-900);
    font-weight: 700;
    text-decoration: none;
    transition: top var(--dur) var(--ease-out);
}

.skip-link:focus {
    top: 1rem;
}

.is-dismissible {
    cursor: pointer;
}

/* Imagen con placeholder de carga */
img[loading='lazy'] {
    background: linear-gradient(100deg, var(--surface-sunken) 30%, #e4e7eb 50%, var(--surface-sunken) 70%);
    background-size: 200% 100%;
    animation: sion-shimmer 1.6s linear infinite;
}

img[loading='lazy'].is-loaded {
    background: none;
    animation: none;
}

@keyframes sion-shimmer {
    to {
        background-position: -200% 0;
    }
}

/* Preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .motion-reveal,
    .reveal-on-scroll,
    [data-stagger] > *,
    .reveal-mask > span,
    .nav-drawer .menu > li {
        opacity: 1 !important;
        transform: none !important;
    }

    .carousel-slide.is-active .slide-background {
        animation: none;
        transform: scale(1.02);
    }
}

/* Impresión */
@media print {
    .site-header,
    .site-topbar,
    .nav-drawer,
    .scroll-progress,
    .to-top,
    .sion-wa-float,
    .carousel-nav,
    .carousel-indicators,
    .hero-scroll-cue,
    .site-footer {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .motion-reveal,
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}
