/* =========================================================
   ADMINSA - Administradora de Inmuebles SAHE SAC
   Hoja de estilos principal
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --navy: #0f2a44;
  --navy-2: #163a5c;
  --navy-3: #0a1e31;
  --gold: #c9a961;
  --gold-2: #b8954a;
  --gold-soft: #f4ecd9;
  --ink: #1d2733;
  --muted: #5f6b7a;
  --line: #e6e9ee;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 42, 68, .08);
  --shadow-lg: 0 20px 50px rgba(15, 42, 68, .16);
  --ff-serif: "Playfair Display", Georgia, serif;
  --ff-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* clip evita el scroll lateral sin romper el header "sticky" */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -60px; background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: 8px; z-index: 1000; }
.skip-link:focus { top: 1rem; }

/* ---------- Utilidades ---------- */
.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #fff; }
.eyebrow {
  display: inline-flex; align-items: flex-start; gap: .6rem; line-height: 1.6;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-2);
}
/* la rayita queda alineada con la primera línea aunque el texto haga salto */
.eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; margin-top: calc(.8em - 1px); background: currentColor; }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow::after { content: ""; flex: none; width: 28px; height: 2px; margin-top: calc(.8em - 1px); background: currentColor; }
.title {
  font-family: var(--ff-serif); font-weight: 600; color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; margin: .7rem 0 1rem;
}
.section--navy .title { color: #fff; }
.lead { color: var(--muted); font-size: 1.08rem; }
.section--navy .lead { color: rgba(255,255,255,.75); }
.text-gold { color: var(--gold); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px rgba(201,169,97,.35); }
.btn--gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { border: 1.5px solid currentColor; }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- Header ---------- */
.topbar { background: var(--navy-3); color: rgba(255,255,255,.8); font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; }
.topbar__info, .topbar__social { display: flex; gap: 1.4rem; align-items: center; }
.topbar a { display: inline-flex; align-items: center; gap: .4rem; transition: color .2s; }
.topbar a:hover { color: var(--gold); }
.topbar svg { width: 15px; height: 15px; }

.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
/* El desenfoque va en un pseudo-elemento: si se aplica al header, este se vuelve
   el contenedor de los elementos "fixed" y el menú móvil queda recortado */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(15,42,68,.08); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .3s; }
.header.is-scrolled .header__inner { height: 70px; }

.logo { display: flex; align-items: center; gap: .6rem; flex: none; }
.logo__icon { width: auto; height: 46px; transition: height .3s, transform .4s var(--ease); }
.logo__word { width: auto; height: 32px; transition: height .3s; }
.logo:hover .logo__icon { transform: translateY(-2px) scale(1.04); }
.header.is-scrolled .logo__icon { height: 40px; }
.header.is-scrolled .logo__word { height: 28px; }
.footer__logo { display: inline-block; }
.footer__logo img { width: 200px; height: auto; }
.nav { display: flex; align-items: center; }
.nav__list { display: flex; gap: .3rem; align-items: center; }
.nav-backdrop { display: none; }
.nav__link {
  position: relative; padding: .55rem .9rem; font-size: .92rem; font-weight: 500; color: var(--ink);
  border-radius: 8px; transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--navy); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.header__cta { margin-left: 1rem; padding: .75rem 1.4rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { content: ""; left: 0; top: -7px; }
.nav-toggle span::after { content: ""; left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 38%, rgba(255,255,255,.35) 65%, rgba(15,42,68,.15) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__content { max-width: 620px; padding: 4rem 0 6rem; }
.hero__title {
  font-family: var(--ff-serif); font-weight: 600; color: var(--navy);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1.05; margin: 1rem 0 1.4rem;
}
.hero__title em { font-style: italic; color: var(--gold-2); }
.hero__text { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__badge {
  position: absolute; right: 6%; bottom: 18%; background: #fff; border-radius: var(--radius);
  padding: 1.2rem 1.5rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 1rem;
  animation: float 5s ease-in-out infinite;
}
.hero__badge strong { font-family: var(--ff-serif); font-size: 2.2rem; color: var(--navy); line-height: 1; }
.hero__badge span { font-size: .85rem; color: var(--muted); line-height: 1.3; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Page hero (páginas internas) */
.page-hero { position: relative; padding: clamp(5rem, 10vw, 7.5rem) 0 clamp(4rem, 8vw, 6rem); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,30,49,.95) 0%, rgba(15,42,68,.82) 55%, rgba(15,42,68,.55) 100%); }
.page-hero .title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero .eyebrow { color: var(--gold); }
.breadcrumb { display: flex; gap: .5rem; font-size: .9rem; color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }

/* ---------- Franja azul ---------- */
.strip { background: var(--navy); color: #fff; position: relative; z-index: 2; }
.strip__grid { display: grid; grid-template-columns: repeat(3, 1fr) auto; }
.strip__item { display: flex; align-items: center; gap: 1rem; padding: 1.6rem 1.8rem; border-right: 1px solid rgba(255,255,255,.1); }
.strip__item:first-child { padding-left: 0; }
.strip__icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(201,169,97,.15); color: var(--gold); }
.strip__icon svg { width: 22px; height: 22px; }
.strip__item small { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.strip__item strong { font-weight: 600; font-size: .98rem; }
.strip__item a:hover { color: var(--gold); }
.strip__cta { background: var(--gold); color: var(--navy); display: flex; align-items: center; gap: .7rem; padding: 0 2.2rem; font-weight: 700; letter-spacing: .04em; transition: background .25s; }
.strip__cta:hover { background: var(--gold-2); }
.strip__cta svg { width: 20px; height: 20px; }

/* ---------- Tarjetas de servicio ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 1.8rem; text-align: center; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card::before { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 68px; height: 68px; margin: 0 auto 1.3rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--navy); transition: background .4s, color .4s, transform .4s var(--ease);
}
.card__icon svg { width: 30px; height: 30px; }
.card:hover .card__icon { background: var(--navy); color: var(--gold); transform: rotate(-8deg) scale(1.05); }
.card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: .7rem; font-weight: 600; }
.card p { font-size: .92rem; color: var(--muted); margin-bottom: 1.2rem; }
.card__link { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--gold-2); letter-spacing: .04em; text-transform: uppercase; }
.card__link svg { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .card__link svg { transform: translateX(4px); }

/* ---------- Sobre nosotros (home) ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr .9fr; gap: 3rem; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow-lg); }
.about__year {
  position: absolute; right: -1.4rem; bottom: 2rem; background: var(--navy); color: #fff; padding: 1.1rem 1.3rem;
  border-radius: 14px; text-align: center; box-shadow: var(--shadow-lg); border-bottom: 4px solid var(--gold);
}
.about__year strong { display: block; font-family: var(--ff-serif); font-size: 1.9rem; color: var(--gold); line-height: 1; }
.about__year span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.about__text p { color: var(--muted); margin-bottom: 1.4rem; }

/* Acordeón */
.accordion { display: flex; flex-direction: column; gap: .9rem; }
.acc { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.acc.is-open { box-shadow: var(--shadow); border-color: var(--gold); }
.acc__btn { width: 100%; display: flex; align-items: center; gap: .9rem; padding: 1.05rem 1.2rem; text-align: left; font-weight: 600; color: var(--navy); }
.acc__ico { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--navy); }
.acc__ico svg { width: 18px; height: 18px; }
.acc__chev { margin-left: auto; width: 20px; height: 20px; transition: transform .3s var(--ease); color: var(--muted); }
.acc.is-open .acc__chev { transform: rotate(180deg); color: var(--gold-2); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p, .acc__panel ul { padding: 0 1.2rem 1.2rem; color: var(--muted); font-size: .93rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { padding: .35rem .8rem; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .82rem; font-weight: 500; color: var(--navy); }

/* ---------- Lo que brindamos ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.feature {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 2.3rem 2rem; transition: background .35s, transform .35s var(--ease), border-color .35s;
}
.feature:hover { background: rgba(255,255,255,.08); transform: translateY(-6px); border-color: rgba(201,169,97,.5); }
.feature__num { font-family: var(--ff-serif); font-size: 3rem; color: rgba(201,169,97,.35); line-height: 1; float: right; }
.feature__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--gold); color: var(--navy); margin-bottom: 1.4rem; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: .7rem; }
.feature p { color: rgba(255,255,255,.72); font-size: .95rem; }

/* ---------- Contadores ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,.12); }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--ff-serif); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--gold); line-height: 1.1; }
.stat span { color: rgba(255,255,255,.75); font-size: .92rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; border-radius: 26px; overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: var(--navy); color: #fff; isolation: isolate;
}
.cta-banner__bg { position: absolute; inset: 0; z-index: -2; }
.cta-banner__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cta-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy) 30%, rgba(15,42,68,.6)); }
.cta-banner h2 { font-family: var(--ff-serif); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; font-weight: 600; }
.cta-banner p { color: rgba(255,255,255,.75); margin-top: .6rem; }

/* ---------- Clientes ---------- */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.2rem; }
.client {
  aspect-ratio: 3/2; border: 1.5px dashed #cfd5dd; border-radius: 14px; display: grid; place-items: center;
  color: #9aa5b3; font-size: .85rem; text-align: center; padding: 1rem; background: #fff; transition: border-color .3s, color .3s, transform .3s;
}
.client svg { display: block; width: 30px; height: 30px; margin: 0 auto .4rem; }
.client img { max-height: 70px; width: auto; object-fit: contain; }
.client:hover { border-color: var(--gold); color: var(--navy); transform: translateY(-4px); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 1.2rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee .client { width: 200px; }
@keyframes marquee { to { transform: translateX(calc(-50% - .6rem)); } }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--gold-soft); border-radius: 26px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.newsletter .title { margin: .5rem 0 .3rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.subscribe { display: flex; gap: .6rem; background: #fff; padding: .45rem; border-radius: 999px; box-shadow: var(--shadow); }
.subscribe input { flex: 1; min-width: 0; border: 0; outline: 0; padding: .7rem 1.1rem; background: transparent; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: .7rem; padding-left: 1rem; }

/* ---------- Página Nosotros ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 5/4; object-fit: cover; }
.split__media::before { content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.prose p { color: var(--muted); margin-bottom: 1.1rem; }
.prose strong { color: var(--navy); }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.mv__card { background: #fff; border-radius: var(--radius); padding: 2.4rem; box-shadow: var(--shadow); border-top: 4px solid var(--gold); transition: transform .35s var(--ease); }
.mv__card:hover { transform: translateY(-6px); }
.mv__card .feature__icon { background: var(--navy); color: var(--gold); }
.mv__card h3 { font-family: var(--ff-serif); font-size: 1.7rem; color: var(--navy); margin-bottom: .7rem; font-weight: 600; }
.mv__card p { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.value {
  text-align: center; padding: 1.8rem 1rem; border-radius: var(--radius); background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); transition: transform .35s var(--ease), background .35s;
}
.value:hover { transform: translateY(-6px); background: var(--gold); color: var(--navy); }
.value__ico { width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: rgba(201,169,97,.18); color: var(--gold); transition: background .35s, color .35s; }
.value:hover .value__ico { background: var(--navy); }
.value__ico svg { width: 24px; height: 24px; }
.value h3 { font-size: 1rem; font-weight: 600; }

/* Timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.timeline::before { content: ""; position: absolute; top: 22px; left: 0; right: 0; height: 2px; background: var(--line); }
.tl { position: relative; padding-top: 3.5rem; }
.tl::before { content: ""; position: absolute; top: 12px; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px var(--gold-soft); }
.tl strong { font-family: var(--ff-serif); font-size: 1.6rem; color: var(--navy); }
.tl p { color: var(--muted); font-size: .95rem; }

/* ---------- Página Servicios ---------- */
.svc-tabs { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 3rem; }
.svc-tab { padding: .7rem 1.3rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--navy); background: #fff; transition: all .25s; display: inline-flex; gap: .5rem; align-items: center; }
.svc-tab svg { width: 18px; height: 18px; }
.svc-tab:hover { border-color: var(--gold); }
.svc-tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.svc { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; scroll-margin-top: 110px; }
.svc + .svc { margin-top: clamp(4rem, 8vw, 6rem); padding-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.svc:nth-of-type(even) .svc__media { order: 2; }
.svc__media { position: sticky; top: 110px; }
.svc__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.svc__num { position: absolute; top: -1.2rem; left: -1.2rem; width: 70px; height: 70px; border-radius: 18px; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-family: var(--ff-serif); font-size: 1.8rem; font-weight: 700; box-shadow: var(--shadow-lg); }
.checklist { display: grid; gap: .7rem; margin: 1.2rem 0 1.8rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--muted); }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a44' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 1rem; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10,30,49,.7); backdrop-filter: blur(4px); }
.modal__dialog {
  position: relative; width: min(760px, 100%); max-height: 88vh; overflow: auto; background: #fff; border-radius: 22px;
  box-shadow: var(--shadow-lg); transform: translateY(30px) scale(.97); transition: transform .4s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__head { position: sticky; top: 0; background: var(--navy); color: #fff; padding: 1.6rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; z-index: 1; }
.modal__head small { color: var(--gold); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.modal__head h3 { font-family: var(--ff-serif); font-size: 1.5rem; font-weight: 600; }
.modal__close { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; flex: none; transition: background .2s, transform .3s; }
.modal__close:hover { background: var(--gold); color: var(--navy); transform: rotate(90deg); }
.modal__close svg { width: 20px; height: 20px; }
.modal__body { padding: 1.8rem 2rem 2.2rem; }
.modal__body > p { font-weight: 600; color: var(--navy); margin-bottom: 1rem; }
.modal__list { counter-reset: item; display: grid; gap: .65rem; }
.modal__list li { counter-increment: item; display: flex; gap: 1rem; padding: .85rem 1rem; border-radius: 12px; background: var(--bg-soft); color: var(--ink); font-size: .94rem; opacity: 0; transform: translateY(10px); }
.modal.is-open .modal__list li { animation: itemIn .45s var(--ease) forwards; }
.modal__list li::before { content: counter(item, decimal-leading-zero); font-family: var(--ff-serif); font-weight: 700; color: var(--gold-2); flex: none; }
@keyframes itemIn { to { opacity: 1; transform: none; } }
body.no-scroll { overflow: hidden; }

/* ---------- Trabajos ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.work { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: zoom-in; transition: opacity .35s, transform .35s; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover img { transform: scale(1.08); }
.work__info { position: absolute; inset: auto 0 0 0; padding: 1.4rem; color: #fff; background: linear-gradient(transparent, rgba(10,30,49,.92)); transform: translateY(30%); opacity: .9; transition: transform .4s var(--ease), opacity .4s; }
.work:hover .work__info { transform: none; opacity: 1; }
.work__info small { color: var(--gold); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.work__info h3 { font-size: 1.1rem; font-weight: 600; }
.work.is-hidden { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 600; background: rgba(10,30,49,.97); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 80vh; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 1rem; }
.lightbox .modal__close { position: absolute; top: 1.2rem; right: 1.2rem; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: background .2s; }
.lightbox__nav:hover { background: var(--gold); color: var(--navy); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__prev { left: 1.2rem; } .lightbox__next { right: 1.2rem; }

.notice { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.4rem; border-radius: 14px; background: var(--gold-soft); color: var(--navy); margin-bottom: 2.5rem; font-size: .93rem; }
.notice svg { width: 24px; height: 24px; flex: none; color: var(--gold-2); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.info-list { display: grid; gap: 1rem; margin: 2rem 0; }
.info { display: flex; gap: 1rem; padding: 1.2rem 1.3rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.info:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.info__ico { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.info__ico svg { width: 22px; height: 22px; }
.info h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.info a, .info p { display: block; color: var(--navy); font-weight: 600; }
.info a:hover { color: var(--gold-2); }
.form-card { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: clamp(1.8rem, 4vw, 3rem); border-top: 5px solid var(--gold); }
.form-card h2 { font-family: var(--ff-serif); color: var(--navy); font-size: 1.9rem; font-weight: 600; margin: .4rem 0 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { position: relative; display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.field input, .field textarea {
  border: 1.5px solid var(--line); border-radius: 12px; padding: .85rem 1rem; background: var(--bg-soft); outline: 0;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(201,169,97,.15); }
.field.has-error input, .field.has-error textarea { border-color: #d64545; }
.field__error { font-size: .78rem; color: #d64545; min-height: 1em; }
.form-card .btn { margin-top: 1.4rem; width: 100%; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-3); color: rgba(255,255,255,.72); font-size: .93rem; }
.footer__news { border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__news .container { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding: 2.8rem 0; }
.footer__news h2 { font-family: var(--ff-serif); color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; }
.footer__news p { color: rgba(255,255,255,.6); }
.footer__news .subscribe { flex: 1; max-width: 480px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); box-shadow: none; }
.footer__news .subscribe input { color: #fff; }
.footer__news .subscribe input::placeholder { color: rgba(255,255,255,.5); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 2.5rem; padding: 4rem 0 3rem; }
.footer .logo__name { color: #fff; }
.footer .logo__tag { color: rgba(255,255,255,.5); }
.footer__about { margin: 1.2rem 0 1.5rem; }
.footer h3 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 1.3rem; position: relative; padding-bottom: .7rem; }
.footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--gold); }
.footer__links li + li { margin-top: .55rem; }
.footer__links a { display: inline-flex; align-items: center; gap: .5rem; transition: color .2s, transform .2s; }
.footer__links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .6; }
.footer__links a:hover { color: var(--gold); transform: translateX(4px); }
.footer__contact li { display: flex; gap: .8rem; align-items: flex-start; }
.footer__contact li + li { margin-top: 1rem; }
.footer__contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 4px; }
.footer__contact a { display: block; transition: color .2s; }
.footer__contact a:hover { color: var(--gold); }
.social { display: flex; gap: .6rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; transition: background .25s, color .25s, transform .25s; }
.social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
.fb-feed { border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.fb-feed__head { display: flex; gap: .8rem; align-items: center; padding: 1rem; background: #1877f2; color: #fff; }
.fb-feed__head svg { width: 26px; height: 26px; }
.fb-feed__head strong { display: block; font-size: .95rem; }
.fb-feed__head small { opacity: .85; font-size: .78rem; }
.fb-feed__body { padding: 1rem; font-size: .85rem; }
.fb-feed__body .btn { margin-top: .8rem; padding: .6rem 1.1rem; font-size: .82rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.4rem 0; font-size: .84rem; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Flotantes ---------- */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90; width: 50px; height: 50px; border-radius: 50%;
  background: var(--navy); color: var(--gold); display: grid; place-items: center; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--navy); }
.to-top svg { width: 22px; height: 22px; }
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 700; transform: translate(-50%, 150%);
  background: var(--navy); color: #fff; padding: 1rem 1.4rem; border-radius: 14px; box-shadow: var(--shadow-lg);
  display: flex; gap: .7rem; align-items: center; border-left: 4px solid var(--gold); transition: transform .45s var(--ease); max-width: calc(100% - 2rem);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast svg { width: 22px; height: 22px; color: var(--gold); flex: none; }

/* ---------- Animación de aparición ---------- */
/* Solo se ocultan si JS está activo (clase .js puesta en el <head>) */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr 1fr; }
  .about__side { grid-column: 1 / -1; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .strip__grid { grid-template-columns: 1fr 1fr; }
  .strip__item:nth-child(2) { border-right: 0; }
  .strip__item:nth-child(3) { padding-left: 0; }
  .strip__cta { padding: 1.4rem 2rem; justify-content: center; }
}
@media (max-width: 900px) {
  .topbar__info a:nth-child(3) { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; height: 100vh; height: 100dvh; width: min(340px, 86vw);
    background: #fff; padding: 6rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
    box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .4s var(--ease), visibility .4s; z-index: 99;
    display: flex; flex-direction: column; align-items: stretch; overflow-y: auto; overscroll-behavior: contain; visibility: hidden;
  }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__link { display: block; padding: .95rem 1rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--gold-2); }
  .header__cta { margin: 1.5rem 0 0; }
  .nav-toggle { z-index: 101; }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(10,30,49,.5); z-index: 98; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  /* oscurece también el logo del header mientras el menú está abierto */
  .header::after { content: ""; position: absolute; inset: 0; background: rgba(10,30,49,.5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; pointer-events: none; }
  .nav-open .header::after { opacity: 1; visibility: visible; }
  .hero::before { background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 60%, rgba(255,255,255,.6) 100%); }
  .hero__badge { display: none; }
  .features, .mv, .split, .contact, .newsletter, .svc { grid-template-columns: 1fr; }
  .svc:nth-of-type(even) .svc__media { order: 0; }
  .svc__media { position: relative; top: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { top: 0; bottom: 0; left: 10px; right: auto; width: 2px; height: auto; }
  .tl { padding: 0 0 0 3rem; }
  .tl::before { top: 6px; }
  .split__media::before { display: none; }
}
@media (max-width: 640px) {
  .topbar { display: none; }
  :root { --header-h: 70px; }
  .hero { min-height: auto; }
  .hero__content { padding: 3.5rem 0 4.5rem; }
  .cards, .about, .gallery, .form-grid, .footer__grid, .strip__grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .strip__item { padding: 1.1rem 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .strip__cta { margin: 0 -1.25rem; }
  .about__year { right: 1rem; }
  .subscribe { flex-direction: column; border-radius: 18px; }
  .subscribe .btn { width: 100%; }
  .modal__head, .modal__body { padding-inline: 1.3rem; }
  .lightbox__nav { top: auto; bottom: 1.2rem; transform: none; }
}
@media (max-width: 400px) {
  .logo__icon, .header.is-scrolled .logo__icon { height: 36px; }
  .logo__word, .header.is-scrolled .logo__word { height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
