/* Consultora Inmobiliaria y Proyectos — CIP S.A.S.
   Estilos del sitio, versión 2 (tono corporativo).
   Colores de marca: azul #1B2340 como base y amarillo #F9B31C como acento. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2?v=20261124-1") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #1b2340;
  --ink-2: #454d6b;
  --muted: #6b7390;
  --line: rgba(27, 35, 64, 0.14);
  --line-soft: rgba(27, 35, 64, 0.08);
  --amber: #f9b31c;
  --amber-ink: #7a5200;
  --navy: #1b2340;
  --navy-deep: #111730;
  --wa: #1fae54;
  --radius: 6px;
  --radius-sm: 4px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --shadow: 0 24px 48px -28px rgba(17, 23, 48, 0.45);
  /* Tokens de tema (claro por defecto) */
  --page: #ffffff;
  --alt: #f4f5f7;
  --card: #ffffff;
  --field: #ffffff;
  --field-line: rgba(27, 35, 64, 0.28);
  --ph: #e6e9f0;
  --dim: rgba(27, 35, 64, 0.18);
  --strong: #1b2340;
  --strong-h: #2a3663;
  --on-amber: #1b2340;
  --glass: rgba(255, 255, 255, 0.82);
  --glass-line: rgba(255, 255, 255, 0.7);
  --msg-bg: #fff7e0;
  --msg-ink: #4d3600;
  --cta-bg: #1b2340;
  color-scheme: light;
}

/* Tema oscuro: base casi negra con tinte azul; el azul de marca queda para portada, cabeceras y franjas */
:root[data-theme="dark"] {
  --bg: #0f1424;
  --surface: #141a2b;
  --ink: #e8ebf3;
  --ink-2: #b3bacd;
  --muted: #8890a8;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --amber-ink: #f6c55c;
  --shadow: 0 24px 48px -26px rgba(0, 0, 0, 0.75);
  --page: #0b0f1c;
  --alt: #0f1424;
  --card: #141a2b;
  --field: #0f1424;
  --field-line: rgba(255, 255, 255, 0.18);
  --ph: #1c2338;
  --dim: rgba(255, 255, 255, 0.16);
  --strong: #34437e;
  --strong-h: #415296;
  --glass: rgba(13, 18, 32, 0.84);
  --glass-line: rgba(255, 255, 255, 0.1);
  --msg-bg: rgba(249, 179, 28, 0.12);
  --msg-ink: #f6d58a;
  --cta-bg: #151d38;
  color-scheme: dark;
}
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, fill 0.4s ease !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--on-amber); }
main, .footer { overflow-x: clip; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--amber); color: var(--on-amber); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- Tipografía ---------- */
h1, h2 { font-stretch: 96%; font-weight: 600; letter-spacing: -0.024em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4.9vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.42rem); font-weight: 620; letter-spacing: -0.012em; line-height: 1.2; text-wrap: balance; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; max-width: 36em; }
.prose p { color: var(--ink-2); max-width: 66ch; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.muted { color: var(--muted); }
/* Rótulo con filete amarillo: la marca de sección de todo el sitio */
.tag { display: inline-flex; align-items: center; gap: 12px; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-2); }
.tag::before { content: ""; width: 32px; height: 2px; background: var(--amber); flex: none; }
.on-dark .tag, .tag--light { color: rgba(255, 255, 255, 0.86); }

/* ---------- Vidrio ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
}
.glass-dark {
  background: rgba(17, 23, 48, 0.58);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--card); }
  .glass-dark { background: rgba(17, 23, 48, 0.92); }
}

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.1;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--strong); color: #fff; }
.btn--ink:hover { background: var(--strong-h); }
.btn--amber { background: var(--amber); color: var(--on-amber); }
.btn--amber:hover { background: #ffc440; }
.btn--light { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--light:hover { border-color: var(--ink); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn--ghost:hover { background: #fff; color: var(--on-amber); border-color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #17994a; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); padding-bottom: 3px; background: linear-gradient(var(--amber), var(--amber)) left bottom / 0 2px no-repeat; transition: background-size 0.4s var(--ease); }
.more svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.more:hover { background-size: 100% 2px; }
.more:hover svg { transform: translateX(4px); }
.on-dark .more { color: #fff; }

/* ---------- Franja superior y navegación ---------- */
.topbar { background: var(--navy-deep); color: rgba(255, 255, 255, 0.8); font-size: 0.88rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 24px; min-height: 40px; align-items: center; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar ul { display: flex; gap: 26px; }
@media (max-width: 820px) { .topbar span { display: none; } .topbar .wrap { justify-content: center; } .topbar li:nth-child(3) { display: none; } }

.nav { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line-soft); border-radius: 0; box-shadow: none; transition: box-shadow 0.3s; }
.nav.is-scrolled { box-shadow: 0 14px 30px -22px rgba(17, 23, 48, 0.5); }
.nav__bar { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: 44px; }
.brand__text { display: grid; line-height: 1; font-stretch: 68%; text-transform: uppercase; }
.brand__text b { font-weight: 560; font-size: 1.36rem; letter-spacing: 0.01em; }
.brand__text i { font-style: normal; font-weight: 500; font-size: 0.78rem; letter-spacing: 0.035em; color: var(--ink-2); margin-top: 2px; }
.nav__links { display: flex; align-items: stretch; gap: 4px; margin-left: auto; align-self: stretch; }
.nav__links a {
  display: flex; align-items: center; text-decoration: none; font-size: 0.97rem; font-weight: 540; color: var(--ink-2);
  padding: 0 13px; white-space: nowrap; position: relative; transition: color 0.2s;
}
.nav__links a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 620; }
.nav__cta { min-height: 46px; margin-left: 8px; }
.nav__toggle { display: none; }
.nav__only-mobile { display: none !important; }

@media (max-width: 1100px) {
  .nav__bar { min-height: 66px; }
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 0 16px;
    background: var(--strong); color: #fff; border: 0; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer;
  }
  .nav__toggle b { font-weight: 600; }
  .nav__toggle span { width: 16px; height: 10px; position: relative; }
  .nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 0.3s var(--ease); }
  .nav__toggle span::before { top: 0; } .nav__toggle span::after { bottom: 0; }
  .nav__toggle[aria-expanded="true"] span::before { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span::after { transform: translateY(-4px) rotate(-45deg); }
  .nav__cta { display: none; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 22px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { font-size: 1.12rem; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
  .nav__links a::after { left: 0; right: auto; width: 32px; bottom: -1px; }
  .nav__links a.nav__only-mobile { display: flex !important; justify-content: center; background: var(--amber); color: var(--on-amber); font-weight: 650; margin-top: 16px; border: 0; border-radius: var(--radius-sm); }
  .nav__links a.nav__only-mobile::after { display: none; }
}
@media (max-width: 420px) { .brand__text i { display: none; } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 8.5vw, 120px); }
.section--gray { background: var(--alt); }
.section--tight { padding-block: clamp(44px, 5.5vw, 76px); }
.section--navy { background: var(--navy-deep); color: #fff; }
.section__head { display: grid; gap: 16px; margin-bottom: clamp(30px, 4vw, 52px); justify-items: start; }
.section__head--row { grid-template-columns: 1fr auto; align-items: end; }
.section__head--row > div:first-child { display: grid; gap: 16px; justify-items: start; }
@media (max-width: 720px) { .section__head--row { grid-template-columns: 1fr; } }

/* ---------- Portada ---------- */
.hero { position: relative; color: #fff; background: var(--navy-deep); overflow: clip; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 40%; animation: hero-zoom 26s ease-out both; }
@keyframes hero-zoom { from { scale: 1.12; } to { scale: 1; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(17, 23, 48, 0.96) 0%, rgba(17, 23, 48, 0.86) 38%, rgba(17, 23, 48, 0.52) 72%, rgba(17, 23, 48, 0.4) 100%), linear-gradient(0deg, rgba(17, 23, 48, 0.7), rgba(17, 23, 48, 0) 40%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 56px); align-items: center; min-height: min(78vh, 760px); padding-block: clamp(56px, 7vw, 96px) clamp(120px, 12vw, 168px); }
.hero__copy { display: grid; gap: 26px; justify-items: start; }
.hero__copy .lead { color: rgba(255, 255, 255, 0.84); }
.hero__stage { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: end; }
.hero__turn { position: absolute; inset: 0; background-size: 600% 400%; background-repeat: no-repeat; filter: drop-shadow(0 40px 40px rgba(0, 0, 0, 0.45)); translate: 0 calc(var(--p, 0) * -24px); }
.hero__chip { position: absolute; left: -4%; bottom: 6%; z-index: 3; padding: 14px 18px 14px 14px; border-radius: var(--radius); text-decoration: none; display: grid; grid-template-columns: 64px auto; gap: 2px 14px; align-items: center; max-width: 340px; transition: background-color 0.3s, transform 0.4s var(--ease); }
.hero__chip:hover { background: rgba(17, 23, 48, 0.8); transform: translateY(-3px); }
.hero__chip img { grid-row: span 2; width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.hero__chip span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); line-height: 1.3; }
.hero__chip strong { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-bottom: 150px; }
  .hero__stage { aspect-ratio: auto; max-width: 420px; justify-self: start; display: grid; }
  .hero__turn { position: relative; inset: auto; aspect-ratio: 1; width: min(78%, 300px); justify-self: center; }
  .hero__chip { position: relative; left: auto; bottom: auto; margin-top: -18px; justify-self: start; }
}

/* Buscador sobre el borde de la portada */
.search { position: relative; z-index: 5; margin-top: clamp(-84px, -7vw, -64px); }
.search__panel { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.search__field { display: grid; gap: 2px; padding: 16px 22px; border-right: 1px solid var(--line-soft); position: relative; }
.search__field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.search__field select { border: 0; background: transparent; font-size: 1.08rem; font-weight: 600; padding: 4px 28px 4px 0; cursor: pointer; appearance: none; -webkit-appearance: none; width: 100%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%231b2340' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5l5 5 5-5'/%3E%3C/svg%3E") right center / 14px no-repeat; }
.search__field select:focus-visible { outline-offset: 6px; }
.search__panel .btn { border-radius: 0; min-height: 100%; padding-inline: 34px; font-size: 1.05rem; }
@media (max-width: 760px) { .search__panel { grid-template-columns: 1fr; } .search__field { border-right: 0; border-bottom: 1px solid var(--line-soft); } .search__panel .btn { min-height: 56px; } }

/* Cabecera de páginas internas */
.phero { position: relative; background: linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 62%, #27335f 100%); color: #fff; padding-block: clamp(44px, 6vw, 84px); overflow: clip; }
.phero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--amber) 0 22%, transparent 22%); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 32px; align-items: center; }
.phero__copy { display: grid; gap: 20px; justify-items: start; }
.phero .lead { color: rgba(255, 255, 255, 0.82); }
.phero .tag { color: rgba(255, 255, 255, 0.86); }
.phero__art { justify-self: center; width: min(100%, 320px); filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.4)); margin-block: -18px; }
.phero--ficha h1 { font-size: clamp(2rem, 3.9vw, 3.3rem); }
.phero + section.wrap { padding-top: clamp(22px, 3vw, 36px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }
.crumbs a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, 0.35); }
@media (max-width: 820px) { .phero__grid { grid-template-columns: 1fr; } .phero__art { display: none; } }

/* ---------- Texto que se enciende con el scroll ---------- */
.statement { font-size: clamp(1.45rem, 2.9vw, 2.45rem); font-weight: 560; line-height: 1.22; letter-spacing: -0.018em; max-width: 26em; text-wrap: pretty; }
.statement .w { color: var(--dim); transition: color 0.4s linear; }
.statement .w.on { color: var(--ink); }
.statement-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: clamp(24px, 5vw, 80px); align-items: start; }
.statement-main { display: grid; gap: 24px; justify-items: start; }
.statement-side { display: grid; gap: 16px; position: sticky; top: 120px; padding: 26px; border: 1px solid var(--line); border-top: 3px solid var(--amber); border-radius: var(--radius); background: var(--card); }
.statement-side img { width: 100%; max-width: 190px; }
@media (max-width: 820px) { .statement-grid { grid-template-columns: 1fr; } .statement-side { position: static; grid-template-columns: 96px 1fr; align-items: center; } }

/* ---------- Tarjetas de inmuebles ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 392px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px var(--gutter) 26px; margin-inline: calc(-1 * var(--gutter)); scroll-padding-inline: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.rail-ctrl { display: flex; gap: 8px; }
.round { width: 48px; height: 48px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); cursor: pointer; display: grid; place-items: center; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.round:hover { background: var(--strong); color: #fff; border-color: var(--strong); }
.round:disabled { opacity: 0.35; pointer-events: none; }
.round svg { width: 16px; height: 16px; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.pcard { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s; }
.pcard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--field-line); }
.pcard:hover::after { transform: scaleX(1); }
.pcard__img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--ph); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.045); }
.pcard__badge { position: absolute; left: 0; top: 16px; padding: 6px 12px; background: var(--navy); color: #fff; font-size: 0.82rem; font-weight: 600; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.pcard__body { padding: 20px 22px 22px; display: grid; gap: 4px; align-content: start; }
.pcard__place { color: var(--ink-2); font-size: 1.02rem; font-weight: 500; letter-spacing: 0; }
.pcard__price { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.018em; line-height: 1.15; }
.pcard__facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 0.92rem; color: var(--muted); }
.pcard[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filters > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters span { font-size: 0.9rem; font-weight: 600; color: var(--muted); margin-right: 6px; }
.chip { min-height: 40px; padding: 6px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); font-weight: 560; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--strong); color: #fff; border-color: var(--strong); }

/* ---------- Servicios en filas ---------- */
.svc-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.svc-layout__head { display: grid; gap: 18px; justify-items: start; position: sticky; top: 120px; }
.svc-rows { border-top: 1px solid var(--line); }
.svc-row { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 8px clamp(16px, 2.4vw, 32px); align-items: center; padding: 26px clamp(8px, 1.6vw, 24px) 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color 0.35s, padding 0.45s var(--ease); }
.svc-row::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px; background: var(--amber); transform: scaleY(0); transform-origin: top; transition: transform 0.45s var(--ease); }
.svc-row:hover { background: var(--alt); padding-left: 20px; }
.svc-row:hover::before { transform: scaleY(1); }
.svc-row img { width: 112px; height: 112px; transition: transform 0.6s var(--ease); }
.svc-row:hover img { transform: translateY(-6px) scale(1.06); }
.svc-row p { color: var(--ink-2); margin-top: 6px; max-width: 54ch; }
.svc-row__go { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.svc-row__go svg { width: 14px; height: 14px; }
.svc-row:hover .svc-row__go { background: var(--strong); color: #fff; border-color: var(--strong); }
@media (max-width: 900px) { .svc-layout { grid-template-columns: 1fr; } .svc-layout__head { position: static; } }
@media (max-width: 560px) { .svc-row { grid-template-columns: 72px minmax(0, 1fr); } .svc-row img { width: 72px; height: 72px; align-self: start; } .svc-row__go { display: none; } }

/* ---------- Franja azul: invertir en EE. UU. ---------- */
.usa { position: relative; background: var(--navy-deep); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 600px; }
.usa--boxed { border-radius: var(--radius); overflow: hidden; }
.usa__copy { padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 80px) clamp(40px, 6vw, 96px) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); display: grid; gap: 22px; align-content: center; justify-items: start; position: relative; z-index: 1; }
.usa--boxed .usa__copy { padding: clamp(32px, 5vw, 72px); }
.usa__copy .lead { color: rgba(255, 255, 255, 0.8); }
.usa__media { position: relative; min-height: 360px; overflow: hidden; }
.usa__media > img:first-child { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.usa__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--navy-deep) 0%, rgba(17, 23, 48, 0.3) 30%, rgba(17, 23, 48, 0) 60%), linear-gradient(0deg, rgba(17, 23, 48, 0.75), rgba(17, 23, 48, 0) 45%); }
.usa__cards { position: absolute; z-index: 2; left: 8%; right: 6%; bottom: 7%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.usa__cards a { border-radius: var(--radius); padding: 16px 18px; text-decoration: none; display: grid; gap: 2px; border-left: 3px solid var(--amber); transition: transform 0.4s var(--ease), background-color 0.3s; }
.usa__cards a:hover { transform: translateY(-4px); background: rgba(17, 23, 48, 0.8); }
.usa__cards span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }
.usa__cards strong { font-size: 1.3rem; font-weight: 650; }
.usa__art { position: absolute; width: clamp(110px, 13vw, 180px); right: 4%; top: 6%; z-index: 2; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.45)); }
.figure-big { font-size: clamp(3.2rem, 7vw, 5.6rem); font-stretch: 88%; font-weight: 640; letter-spacing: -0.035em; line-height: 0.95; color: var(--amber); }
.figure-note { color: rgba(255, 255, 255, 0.8); max-width: 30ch; margin-top: 6px; }
@media (max-width: 900px) { .usa { grid-template-columns: 1fr; } .usa__copy { padding-inline: var(--gutter); } .usa__media { min-height: 420px; } .usa__media::before { background: linear-gradient(180deg, var(--navy-deep) 0%, rgba(17, 23, 48, 0) 40%), linear-gradient(0deg, rgba(17, 23, 48, 0.75), rgba(17, 23, 48, 0) 45%); } }
@media (max-width: 480px) { .usa__cards { grid-template-columns: 1fr; } }

/* ---------- Paneles, dos columnas ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--amber); border-radius: var(--radius); padding: clamp(26px, 3.2vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-content: start; }
.panel > * { grid-column: 1; justify-self: start; }
.panel p:not(.tag) { color: var(--ink-2); max-width: 52ch; }
.panel h2 { font-size: clamp(1.6rem, 2.5vw, 2.15rem); }
.panel__art { grid-column: 2; grid-row: 1 / span 4; width: clamp(96px, 11vw, 150px); align-self: center; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .panel { grid-template-columns: 1fr; } .panel__art { grid-column: 1; grid-row: auto; width: 96px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 88px); align-items: center; }
.split--flip > :first-child { order: 2; }
.split__copy { display: grid; gap: 18px; justify-items: start; }
.split__media { position: relative; }
.split__media > img:first-child { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.split__media::before { content: ""; position: absolute; left: -14px; top: -14px; width: 38%; height: 38%; border-left: 3px solid var(--amber); border-top: 3px solid var(--amber); }
.split__art { position: absolute; width: 34%; right: -4%; bottom: -10%; filter: drop-shadow(0 22px 22px rgba(17, 23, 48, 0.3)); }
.split--flip .split__art { right: auto; left: -4%; }
@media (max-width: 1280px) { .split__art { right: -2%; } .split--flip .split__art { left: -2%; right: auto; } }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } .split__media::before { left: -8px; top: -8px; } }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: paso; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.step { background: var(--card); padding: 28px; display: grid; gap: 8px; align-content: start; counter-increment: paso; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color 0.3s; }
.step:hover { background: var(--alt); }
.step::before { content: "0" counter(paso); font-size: 0.95rem; font-weight: 650; color: var(--amber-ink); padding-bottom: 10px; margin-bottom: 6px; border-bottom: 2px solid var(--amber); justify-self: start; min-width: 36px; }
.step p { color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Ficha de inmueble ---------- */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; position: relative; }
.mosaic button, .gallery button { padding: 0; border: 0; background: var(--ph); cursor: zoom-in; overflow: hidden; display: block; }
.mosaic button:first-child { grid-row: span 2; }
.mosaic img, .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.mosaic button:hover img, .gallery button:hover img { transform: scale(1.04); }
.mosaic--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 16 / 9; }
.mosaic--2 { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr; }
.mosaic--2 button:first-child { grid-row: auto; }
.mosaic .mosaic__all { position: absolute; right: 16px; bottom: 16px; border-radius: var(--radius-sm); padding: 11px 18px; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.8); cursor: pointer; background: rgba(255, 255, 255, 0.86); color: var(--on-amber); overflow: visible; }
.mosaic .mosaic__all:hover { background: #fff; }
@media (max-width: 720px) { .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; aspect-ratio: 1 / 1; } .mosaic button:first-child { grid-row: auto; grid-column: span 2; } .mosaic button:not(.mosaic__all):nth-child(n + 4) { display: none; } .mosaic--1, .mosaic--2 { aspect-ratio: 4 / 3; } .mosaic--2 { grid-template-rows: 1fr; } .mosaic--2 button:first-child { grid-column: auto; } }

.ficha { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.ficha__main { display: grid; gap: clamp(32px, 4vw, 52px); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact { background: var(--card); padding: 16px 18px; display: grid; gap: 2px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact dt { font-size: 0.88rem; color: var(--muted); }
.fact dd { font-size: 1.18rem; font-weight: 620; line-height: 1.25; }
.buybox { position: sticky; top: 104px; border-radius: var(--radius); border: 1px solid var(--line); border-top: 3px solid var(--amber); padding: 28px; display: grid; gap: 14px; background: var(--card); box-shadow: var(--shadow); }
.buybox__price { font-size: 2.1rem; font-weight: 650; letter-spacing: -0.025em; line-height: 1.05; }
.buybox .btn { width: 100%; }
.buybox__list { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.97rem; }
.buybox__list a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 980px) { .ficha { grid-template-columns: 1fr; } .buybox { position: static; order: -1; } }

.gallery { columns: 3 240px; column-gap: 10px; }
.gallery button { width: 100%; margin-bottom: 10px; border-radius: var(--radius-sm); break-inside: avoid; }
.gallery img { height: auto; }
@media (max-width: 560px) { .gallery { columns: 2; column-gap: 8px; } .gallery button { margin-bottom: 8px; } }
.list-info { display: grid; gap: 0; border-top: 1px solid var(--line); }
.list-info li { padding: 18px 4px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.list-info strong { color: var(--ink); }

/* Lightbox */
.lb { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(13, 17, 34, 0.94); color: #fff; }
.lb::backdrop { background: rgba(13, 17, 34, 0.6); }
.lb__stage { position: absolute; inset: 64px 72px 64px; display: grid; place-items: center; }
.lb__stage img { max-width: calc(100vw - 144px); max-height: calc(100dvh - 128px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); }
.lb__btn { position: absolute; width: 50px; height: 50px; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb__btn:hover { background: var(--amber); color: var(--on-amber); border-color: var(--amber); }
.lb__btn svg { width: 18px; height: 18px; }
.lb__close { right: 16px; top: 12px; } .lb__prev { left: 12px; top: 50%; translate: 0 -50%; } .lb__next { right: 12px; top: 50%; translate: 0 -50%; }
.lb__count { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); }
@media (max-width: 640px) { .lb__stage { inset: 70px 8px 70px; } .lb__stage img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 140px); } .lb__prev, .lb__next { top: auto; bottom: 10px; translate: none; } }

/* ---------- Formularios ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: clamp(22px, 3.2vw, 40px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--amber); }
.field { display: grid; gap: 7px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; padding: 0; }
.field .hint { font-size: 0.86rem; color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--field-line); background: var(--field);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(249, 179, 28, 0.45); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; font-weight: 560; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; min-width: 46px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--field); border: 1px solid var(--field-line); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.seg input:checked + span { background: var(--strong); color: #fff; border-color: var(--strong); }
.seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.form__note { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
.form__msg { grid-column: 1 / -1; padding: 14px 18px; border-left: 3px solid var(--amber); background: var(--msg-bg); color: var(--msg-ink); }
.form__msg[hidden] { display: none; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.form-side { display: grid; gap: 20px; position: sticky; top: 112px; justify-items: start; }
.form-side img.photo { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 940px) { .form-grid { grid-template-columns: 1fr; } .form-side { position: static; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ccard { background: var(--card); padding: 28px; display: grid; gap: 6px; align-content: start; text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color 0.3s; position: relative; }
.ccard::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
a.ccard:hover { background: var(--alt); }
a.ccard:hover::after { transform: scaleX(1); }
.ccard span { color: var(--muted); font-size: 0.93rem; }
.ccard strong { font-size: 1.22rem; font-weight: 620; line-height: 1.25; overflow-wrap: anywhere; }
.ccard svg { width: 28px; height: 28px; margin-bottom: 10px; color: var(--amber-ink); }
.ccard--ink { background: var(--strong); color: #fff; }
.ccard--ink span { color: rgba(255, 255, 255, 0.72); }
.ccard--ink svg { color: var(--amber); }
a.ccard--ink:hover { background: var(--strong-h); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .contact-grid { grid-template-columns: 1fr; } }

/* Llamado final */
.cta { position: relative; background: var(--cta-bg); color: #fff; border-radius: var(--radius); padding: clamp(32px, 5vw, 72px); overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--amber); }
.cta__copy { display: grid; gap: 20px; justify-items: start; position: relative; z-index: 1; }
.cta .lead { color: rgba(255, 255, 255, 0.82); }
.cta__art { width: clamp(140px, 19vw, 250px); filter: drop-shadow(0 26px 26px rgba(0, 0, 0, 0.4)); }
.cta--light { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.cta--light .lead { color: var(--ink-2); }
.cta--light .cta__art { filter: drop-shadow(0 22px 22px rgba(17, 23, 48, 0.25)); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } .cta__art { justify-self: end; margin-top: -26px; width: 130px; } }

.datalist { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.datalist dd { font-size: 1.05rem; }

.banner { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 8; }
.banner img { width: 100%; height: 112%; object-fit: cover; }
.trio { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.trio figure { min-width: 0; border-radius: var(--radius); overflow: hidden; height: clamp(240px, 30vw, 420px); }
.trio img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.trio figure:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .banner { aspect-ratio: 4 / 3; } .trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .trio figure:first-child { grid-column: span 2; } .trio figure { height: 200px; } }

/* Política */
.legal { max-width: 78ch; }
.legal h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-top: 2.2em; padding-top: 1em; border-top: 1px solid var(--line); line-height: 1.15; }
.legal h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.legal h3 { margin-top: 1.8em; }
.legal p { margin-top: 0.9em; color: var(--ink-2); text-wrap: pretty; }

/* ---------- Pie ---------- */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.76); padding-block: clamp(48px, 6vw, 80px) 28px; border-top: 4px solid var(--amber); }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer h2 { font-size: 0.95rem; font-stretch: 100%; font-weight: 600; letter-spacing: 0.01em; color: rgba(255, 255, 255, 0.58); margin-bottom: 14px; }
.footer li + li { margin-top: 9px; }
.footer .brand__text b { color: #fff; } .footer .brand__text i { color: rgba(255, 255, 255, 0.7); }
.footer__about { display: grid; gap: 16px; align-content: start; max-width: 34ch; }
.footer__base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 0.9rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Botón flotante de WhatsApp (vidrio) ---------- */
.wa {
  position: fixed; right: clamp(14px, 2.2vw, 26px); bottom: clamp(14px, 2.2vw, 26px); z-index: 90;
  display: inline-flex; align-items: center; height: 62px; padding: 6px; border-radius: 14px; text-decoration: none; color: var(--ink);
  transition: transform 0.45s var(--ease);
}
.wa__icon { position: relative; width: 50px; height: 50px; border-radius: 10px; display: grid; place-items: center; flex: none; background: linear-gradient(160deg, #35d373, #17a34a); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 8px 18px -8px rgba(23, 163, 74, 0.8); }
.wa__icon::before { content: ""; position: absolute; inset: -6px; border-radius: 14px; border: 2px solid rgba(31, 174, 84, 0.5); animation: wa-ring 3.6s ease-out infinite; pointer-events: none; }
@keyframes wa-ring { 0% { transform: scale(0.92); opacity: 0.9; } 70%, 100% { transform: scale(1.3); opacity: 0; } }
.wa__icon svg { width: 28px; height: 28px; fill: #fff; }
.wa__label { display: grid; line-height: 1.15; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 0.5s var(--ease), opacity 0.35s, padding 0.5s var(--ease); }
.wa__label b { font-weight: 650; } .wa__label small { font-size: 0.82rem; color: var(--ink-2); }
.wa:hover, .wa:focus-visible, .wa.is-open { transform: translateY(-3px); }
.wa:hover .wa__label, .wa:focus-visible .wa__label, .wa.is-open .wa__label { max-width: 220px; opacity: 1; padding: 0 16px 0 12px; }

/* ---------- Movimiento ---------- */
.floaty { animation: floaty 9s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal="left"] { transform: translateX(-32px); }
.js [data-reveal="right"] { transform: translateX(32px); }
.js [data-reveal="zoom"] { transform: scale(0.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Filete que se dibuja al entrar en pantalla */
.js .section__head h2, .js .statement-main h2, .js .svc-layout__head h2 { position: relative; padding-bottom: 20px; }
.js .section__head h2::after, .js .statement-main h2::after, .js .svc-layout__head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) 0.25s; }
.js .section__head h2.is-in::after, .js .statement-main h2.is-in::after, .js .svc-layout__head h2.is-in::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(26px); }
  .js [data-reveal].is-in { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .floaty, .wa__icon::before, .hero__bg img { animation: none; }
  .statement .w { color: var(--ink); }
  .js .section__head h2::after, .js .statement-main h2::after, .js .svc-layout__head h2::after { transform: scaleX(1); }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Idioma y tema ---------- */
.nav__tools { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--alt); }
.switch a { min-width: 38px; min-height: 36px; display: grid; place-items: center; padding: 0 8px; border-radius: 3px; font-size: 0.86rem; font-weight: 650; letter-spacing: 0.04em; text-decoration: none; color: var(--muted); transition: background-color 0.25s, color 0.25s; }
.switch a:hover { color: var(--ink); }
.switch a[aria-current="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 -2px 0 var(--amber); cursor: default; }
.theme-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--alt); color: var(--ink); cursor: pointer; transition: border-color 0.25s, background-color 0.25s; }
.theme-btn:hover { border-color: var(--amber); }
.theme-btn svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: transform 0.5s var(--ease), opacity 0.3s; }
.theme-btn .i-sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
:root[data-theme="dark"] .theme-btn .i-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }
:root[data-theme="dark"] .theme-btn .i-sun { opacity: 1; transform: none; color: var(--amber); }
@media (max-width: 1100px) {
  .nav__tools { margin-left: auto; }
  .nav__toggle { margin-left: 8px !important; }
}
@media (max-width: 440px) {
  .brand__text { display: none; }
  .nav__toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nav__toggle { padding: 0 14px; }
  .switch a { min-width: 34px; }
}

/* Ajustes del tema oscuro */
:root[data-theme="dark"] .nav { border-bottom-color: rgba(255, 255, 255, 0.08); }
:root[data-theme="dark"] .pcard__badge { background: rgba(17, 23, 48, 0.88); }
:root[data-theme="dark"] .split__media > img:first-child,
:root[data-theme="dark"] .pcard__img img,
:root[data-theme="dark"] .trio img,
:root[data-theme="dark"] .banner img { filter: brightness(0.92) saturate(0.95); }
:root[data-theme="dark"] .footer { background: #080b16; }
:root[data-theme="dark"] .topbar { background: #080b16; }
:root[data-theme="dark"] .usa__media::before { background: linear-gradient(90deg, var(--navy-deep) 0%, rgba(17, 23, 48, 0.3) 30%, rgba(17, 23, 48, 0) 60%), linear-gradient(0deg, rgba(17, 23, 48, 0.8), rgba(17, 23, 48, 0) 45%); }
@media (prefers-reduced-motion: reduce) { .theme-btn svg { transition: none; } }

:root[data-theme="dark"] .search__field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23e8ebf3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5l5 5 5-5'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .search__field select option { background: #141a2b; color: #e8ebf3; }
.pcard__price small, .hero__chip strong small, .buybox__price small { font-size: 0.55em; font-weight: 650; letter-spacing: 0.04em; color: var(--muted); }
.hero__chip strong small { color: rgba(255, 255, 255, 0.7); }
