/* ═══════════════════════════════════════════════════════════
   MARKXS — hoja de estilos única
   Paleta:  #2D5C7E azul profundo · #7FB7D6 celeste · #EAD9C1 cera
            #F7F3EE crema (fondo) · #1E2A36 azul carbón (texto)
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Tokens ───────────────────────────────────────────── */
:root {
  --blue:      #2D5C7E;
  --blue-dark: #244B67;
  --sky:       #7FB7D6;
  --sky-soft:  #A9CFE5;
  --wax:       #EAD9C1;
  --wax-deep:  #DCC5A5;
  --cream:     #F7F3EE;
  --cream-lift:#FFFCF8;
  --ink:       #1E2A36;

  /* Los tres tonos de texto secundario cumplen contraste AA (4.5:1)
     sobre el crema del sitio. No bajar estos valores. */
  --ink-70: rgba(30, 42, 54, .78);   /* texto corrido    ~6.6:1 */
  --ink-55: rgba(30, 42, 54, .70);   /* texto secundario ~5.4:1 */
  --ink-40: rgba(30, 42, 54, .66);   /* notas y meta     ~4.7:1 */
  --line:   rgba(30, 42, 54, .10);
  --line-2: rgba(30, 42, 54, .16);

  --wa:      #25D366;
  --wa-dark: #1EA854;

  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:  "Space Mono", ui-monospace, "Courier New", monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 2px 10px rgba(30, 42, 54, .05);
  --shadow-md: 0 14px 40px -18px rgba(30, 42, 54, .28);
  --shadow-lg: 0 40px 90px -40px rgba(45, 92, 126, .45);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io:  cubic-bezier(.65, 0, .35, 1);

  --nav-h: 78px;
  --wrap:  1200px;
  --pad:   clamp(1.15rem, 4vw, 3rem);
}

/* ── 2. Reset / base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }

::selection { background: var(--sky); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ── 3. Reveal (scroll) ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Defensa: un elemento con .reveal + data-split nunca debe quedar invisible */
.reveal[data-split] { opacity: 1; transform: none; }

.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.6em) rotate(1.2deg);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.split-word.is-in { opacity: 1; transform: none; }

/* ── 4. Splash ───────────────────────────────────────────── */
/* En visitas repetidas se retira sin transición ni animación */
.splash.sin-animar { transition: none; animation: none; }

.splash {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-content: center; gap: 1.6rem; justify-items: center;
  background: var(--cream);
  transition: opacity .7s var(--ease-out), visibility .7s;
  /* Seguridad: se oculta sola a los 3.5s aunque el JS falle */
  animation: splashSafety .01s 3.5s forwards;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.splash-inner { display: flex; align-items: center; justify-content: center; }
.splash-logo {
  width: min(230px, 58vw); height: auto;
  animation: splashPop .9s var(--ease-out) both;
}
@keyframes splashPop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.splash-bar { width: 120px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; animation: splashLoad 1.5s var(--ease-io) both; }
@keyframes splashLoad { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── 5. Botones ──────────────────────────────────────────── */
.btn {
  --btn-bg: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .9rem 1.5rem;
  border: 0; border-radius: 999px;
  font-family: var(--font-sans); font-size: .95rem; font-weight: 600;
  letter-spacing: -.005em; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.ico-wa { fill: currentColor; }

.btn-primary {
  background: var(--blue); color: var(--cream-lift);
  box-shadow: 0 10px 26px -14px rgba(45, 92, 126, .9);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-3px); box-shadow: 0 20px 38px -18px rgba(45, 92, 126, .95); }
.btn-primary:active { transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); transform: translateY(-3px); }
.btn-ghost .ico-arrow { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn-ghost:hover .ico-arrow { transform: translateX(4px); }

.btn-wa { background: var(--wa); color: #06301a; box-shadow: 0 8px 22px -12px rgba(37, 211, 102, .95); }
.btn-wa:hover { background: var(--wa-dark); color: #fff; transform: translateY(-3px); }

.btn-block { width: 100%; padding-block: 1.05rem; font-size: 1rem; }

/* ── 6. Header / navegación ──────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(247, 243, 238, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out),
              box-shadow .4s var(--ease-out), height .4s var(--ease-out);
}
.nav.is-stuck {
  height: 66px;
  background: rgba(247, 243, 238, .88);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(30, 42, 54, .6);
}
@supports (backdrop-filter: blur(14px)) {
  .nav.is-stuck { background: rgba(247, 243, 238, .72); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
}

.nav-inner {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-inline: var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark {
  border-radius: 9px;
  transition: transform .5s var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-word {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 1.02rem; letter-spacing: .26em; color: var(--ink);
}

.nav-menu { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav-list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }

.nav-link {
  position: relative;
  font-size: .95rem; font-weight: 500; color: var(--ink-70);
  padding-block: .3rem;
  transition: color .3s var(--ease-out);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--blue);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--blue); font-weight: 600; }

.nav-wa { padding: .68rem 1.2rem; font-size: .9rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1.5px solid var(--line-2); border-radius: 50%;
  cursor: pointer; place-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 17px; height: 1.7px; background: var(--ink); border-radius: 2px;
  transition: transform .4s var(--ease-out), opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.4px) rotate(-45deg); }

/* ── 7. Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vh, 4.5rem));
  padding-bottom: clamp(4rem, 10vh, 7rem);
  overflow: clip;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.orb {
  position: absolute; right: -8%; top: 6%;
  width: min(58vw, 720px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(169, 207, 229, .85), transparent 58%),
    radial-gradient(circle at 66% 72%, rgba(234, 217, 193, .9), transparent 62%),
    radial-gradient(circle at 50% 50%, rgba(45, 92, 126, .16), transparent 70%);
  filter: blur(46px);
  animation: orbDrift 22s ease-in-out infinite alternate;
}
@keyframes orbDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 4%, 0) scale(1.07); }
}

.ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(45, 92, 126, .13);
}
.ring-1 { right: 2%;  top: 14%; width: min(44vw, 540px); aspect-ratio: 1; }
.ring-2 { right: 12%; top: 26%; width: min(28vw, 340px); aspect-ratio: 1; border-color: rgba(45, 92, 126, .2); border-style: dashed; }

.horizon-line {
  position: absolute; left: 0; right: 0; top: 62%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 92, 126, .22) 22%, rgba(45, 92, 126, .22) 78%, transparent);
}
.grid-veil {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45, 92, 126, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 92, 126, .05) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 15%, transparent 72%);
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .4rem .95rem .4rem .4rem;
  background: rgba(255, 252, 248, .8);
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .84rem; font-weight: 500; color: var(--ink-70);
  box-shadow: var(--shadow-sm);
}
.badge-tag {
  padding: .18rem .6rem; border-radius: 999px;
  background: var(--blue); color: var(--cream-lift);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

.hero-title {
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.028em;
  text-wrap: balance;
  max-width: 15ch;
}
.hero-title em {
  display: inline-block;
  font-style: italic;
  font-weight: 300;
  color: var(--blue);
}

.hero-sub {
  margin-top: 1.55rem;
  max-width: 52ch;
  font-size: clamp(1.02rem, .98rem + .3vw, 1.15rem);
  color: var(--ink-70);
}

.hero-cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-cards {
  margin-top: clamp(2.4rem, 5vh, 3.4rem);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
  max-width: 520px;
}
.stat-card {
  padding: 1.35rem 1.4rem;
  background: var(--cream-lift);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s;
}
.stat-card:hover { transform: translateY(-5px); border-color: rgba(45, 92, 126, .3); box-shadow: var(--shadow-md); }
.stat-num {
  display: block;
  font-family: var(--font-serif); font-size: 2.05rem; font-weight: 500;
  line-height: 1; color: var(--blue); letter-spacing: -.03em;
}
.stat-card p { margin-top: .55rem; font-size: .92rem; color: var(--ink-70); line-height: 1.5; }

/* Hero visual: maqueta de navegador + móvil */
.hero-visual { position: relative; min-height: 380px; }

.mock {
  position: relative; z-index: 2;
  background: var(--cream-lift);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out);
}
.mock-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .75rem 1rem;
  background: rgba(45, 92, 126, .06);
  border-bottom: 1px solid var(--line);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--wax-deep); }
.mock-bar i:nth-child(2) { background: var(--sky-soft); }
.mock-bar i:nth-child(3) { background: rgba(45, 92, 126, .35); }
.mock-bar span {
  margin-left: .7rem; padding: .18rem .7rem;
  background: var(--cream); border-radius: 999px;
  font-family: var(--font-mono); font-size: .68rem; color: var(--ink-55);
}
/* La ventana del hero muestra un proyecto real del portafolio */
.mock { display: block; text-decoration: none; color: inherit; }
.mock-bar { display: flex; }
.mock-shot {
  display: block; width: 100%; height: auto; aspect-ratio: 8 / 5;
  object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.mock:hover .mock-shot { transform: scale(1.04); }
.mock-pie {
  display: block; padding: .7rem 1rem;
  background: var(--cream-lift); border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .06em; color: var(--ink-55);
}

.mock-phone {
  position: absolute; z-index: 3; right: -4%; bottom: -12%;
  width: 138px; padding: 9px;
  background: var(--ink); border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.mock-phone-screen {
  background: var(--cream-lift); border-radius: 14px;
  overflow: hidden; min-height: 200px;
}
.mock-phone-screen img {
  width: 100%; height: 200px; object-fit: cover; object-position: 30% center;
  display: block;
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  z-index: 2;
  display: grid; justify-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-40);
}
.scroll-hint i { display: block; width: 1px; height: 34px; background: linear-gradient(var(--ink-40), transparent); }
.scroll-hint:hover { color: var(--blue); }

/* ── 8. Secciones genéricas ──────────────────────────────── */
.section { position: relative; padding-block: clamp(4.5rem, 11vh, 8rem); }

.section-head { max-width: 700px; margin-bottom: clamp(2.6rem, 5vw, 4rem); }

.kicker {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
}
.kicker-sm { font-size: .72rem; color: var(--ink-55); }

.section-title {
  margin-top: 1rem;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 400; line-height: 1.06; letter-spacing: -.025em;
  text-wrap: balance;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--blue); }

.section-sub {
  margin-top: 1.2rem; max-width: 56ch;
  color: var(--ink-70); font-size: 1.03rem;
}

/* ── 9. Servicios ────────────────────────────────────────── */
.section-servicios { background: var(--cream); }
.section-servicios::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(234, 217, 193, .28), transparent 42%);
  pointer-events: none;
}
.section-servicios > .wrap { position: relative; z-index: 1; }

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.1rem, 2vw, 1.6rem);
}

.service-card {
  position: relative; overflow: hidden;
  padding: clamp(1.6rem, 2.4vw, 2.1rem);
  background: var(--cream-lift);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 auto auto 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky), var(--wax));
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(45, 92, 126, .26); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  position: absolute; top: 1.3rem; right: 1.5rem;
  font-family: var(--font-mono); font-size: .78rem; color: var(--ink-40);
}
.service-ico {
  width: 52px; height: 52px; display: grid; place-content: center;
  border-radius: var(--r-md);
  background: rgba(127, 183, 214, .2);
  color: var(--blue);
  transition: background-color .45s var(--ease-out), transform .45s var(--ease-out);
}
.service-ico svg { width: 25px; height: 25px; }
.service-card:hover .service-ico { background: var(--blue); color: var(--cream-lift); transform: rotate(-6deg); }

.service-card h3 { margin-top: 1.35rem; font-size: 1.5rem; }
.service-card > p { margin-top: .8rem; color: var(--ink-70); font-size: .98rem; }

.check-list { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); display: grid; gap: .7rem; }
.check-list li {
  position: relative; padding-left: 1.75rem;
  font-size: .93rem; color: var(--ink-70);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 15px; height: 8px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
  border-radius: 1px;
}

.also { margin-top: clamp(2.6rem, 5vw, 3.8rem); }
.pill-list { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .65rem; }
.pill-list li {
  padding: .58rem 1.15rem;
  background: rgba(234, 217, 193, .5);
  border: 1px solid rgba(220, 197, 165, .8);
  border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--ink-70);
  transition: transform .35s var(--ease-out), background-color .35s, color .35s, border-color .35s;
}
.pill-list li:hover { transform: translateY(-3px); background: var(--blue); border-color: var(--blue); color: var(--cream-lift); }

/* ── 9b. Proceso ─────────────────────────────────────────── */
.section-proceso { background: var(--cream-lift); }

.proceso-lista {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0;
  counter-reset: paso;
}
.paso {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
  padding: clamp(1.6rem, 3.5vw, 2.4rem) 0;
  border-top: 1px solid var(--line);
}
.paso:last-child { border-bottom: 1px solid var(--line); }

.paso-num {
  font-family: var(--font-mono); font-size: .82rem; font-weight: 700;
  letter-spacing: .06em; color: var(--blue);
  padding-top: .3rem;
  position: relative;
}
.paso-num::after {
  content: ""; position: absolute;
  left: 50%; top: 2.2rem; bottom: -2.6rem;
  width: 1px; background: var(--line);
}
.paso:last-child .paso-num::after { display: none; }

.paso h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.15; margin-bottom: .6rem;
}
.paso p { margin-bottom: .6rem; max-width: 62ch; }
.paso p:last-child { margin-bottom: 0; }
.paso-dato {
  font-family: var(--font-mono); font-size: .76rem;
  letter-spacing: .04em; color: var(--blue);
}

@media (max-width: 560px) {
  .paso { grid-template-columns: 1fr; gap: .5rem; }
  .paso-num::after { display: none; }
}

/* ── 10. Portafolio ──────────────────────────────────────── */
.section-portafolio { background: linear-gradient(180deg, var(--cream), #F1EDE7 60%, var(--cream)); }

.folio-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.1rem, 2vw, 1.6rem);
}

.folio-card {
  background: var(--cream-lift);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: .8rem .8rem 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s;
}
.folio-card:hover { transform: translateY(-8px); border-color: rgba(45, 92, 126, .26); box-shadow: var(--shadow-md); }

.folio-card { display: block; text-decoration: none; color: inherit; }

.folio-shot {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  border: 1px solid rgba(30, 42, 54, .1);
  background: var(--cream);
}
.folio-shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.folio-card:hover .folio-shot img { transform: scale(1.05); }
.folio-shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 1s var(--ease-out);
}
.folio-card:hover .folio-shot::after { transform: translateX(120%); }

.folio-nota {
  margin-top: 1.8rem;
  font-size: .93rem; color: var(--ink-55);
  max-width: 62ch;
}
.folio-nota strong { color: var(--ink); font-weight: 600; }

.folio-meta .tag { white-space: nowrap; }
.folio-card:hover .tag { background: var(--blue); color: var(--cream); border-color: var(--blue); }

.folio-meta {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.1rem .55rem 0;
}
.folio-meta h3 { font-size: 1.28rem; }
.folio-meta p { margin-top: .28rem; font-size: .88rem; color: var(--ink-40); }

.tag {
  flex: none;
  padding: .34rem .8rem; border-radius: 999px;
  background: rgba(45, 92, 126, .1);
  color: var(--blue);
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

.folio-close {
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.8rem;
  padding: clamp(1.9rem, 4vw, 3rem);
  border-radius: var(--r-xl);
  background: linear-gradient(125deg, var(--blue) 0%, #35688B 55%, #47809F 100%);
  color: var(--cream-lift);
  box-shadow: var(--shadow-lg);
  overflow: hidden; position: relative;
}
.folio-close::before {
  content: ""; position: absolute; right: -12%; top: -60%;
  width: 480px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 217, 193, .28), transparent 66%);
  pointer-events: none;
}
.folio-close > div { position: relative; max-width: 46ch; }
.folio-close h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 400; }
.folio-close h3 em { font-style: italic; font-weight: 300; color: var(--wax); }
.folio-close p { margin-top: .8rem; color: rgba(247, 243, 238, .82); font-size: 1rem; }
.folio-close .btn-primary { position: relative; background: var(--cream-lift); color: var(--blue); }
.folio-close .btn-primary:hover { background: var(--wax); color: var(--ink); }

/* ── 10b. Precios ────────────────────────────────────────── */
.section-precios { background: var(--cream); }

.precio-bloque {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
  background: var(--cream-lift);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}

.precio-cifra {
  display: flex; flex-direction: column; gap: .35rem;
  padding-right: clamp(1rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
}
.precio-desde {
  font-family: var(--font-mono); font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-40);
}
.precio-num {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1;
  letter-spacing: -.03em; color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.precio-nota { font-size: .86rem; color: var(--ink-40); }
.precio-texto p { margin-bottom: 1rem; }
.precio-texto p:last-child { margin-bottom: 0; }
.precio-texto strong { font-weight: 600; color: var(--ink); }

.precio-factores { margin-top: clamp(2.2rem, 5vw, 3.2rem); }
.factor-list {
  list-style: none; margin: 1.2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .9rem clamp(1.2rem, 3vw, 2.4rem);
}
.factor-list li {
  font-size: .93rem; color: var(--ink-55);
  padding-top: .85rem; border-top: 1px solid var(--line);
}
.factor-list span {
  display: block; font-family: var(--font-sans); font-weight: 600;
  font-size: .98rem; color: var(--ink); margin-bottom: .2rem;
}

/* ── 10c. Preguntas frecuentes ───────────────────────────── */
.faq-list {
  display: grid; gap: .7rem;
  max-width: 52rem;
}
.faq {
  background: var(--cream-lift);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 1.3rem;
  transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.faq[open] { border-color: rgba(45, 92, 126, .3); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 2rem 1.15rem 0;
  position: relative;
  font-family: var(--font-sans); font-weight: 600; font-size: 1.02rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .2rem; top: 50%;
  width: 11px; height: 11px; margin-top: -7px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform .35s var(--ease-out);
}
.faq[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.faq p {
  margin: 0; padding: 0 0 1.3rem;
  font-size: .95rem; color: var(--ink-70);
  max-width: 62ch;
}

/* ── 11. Contacto ────────────────────────────────────────── */
.section-contacto { background: var(--cream); }

.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.2rem, 2.6vw, 2.2rem); align-items: start;
}

.contact-form-card {
  padding: clamp(1.7rem, 3vw, 2.6rem);
  background: var(--cream-lift);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}
.contact-form-card h3 { font-size: 1.85rem; font-style: italic; font-weight: 400; color: var(--blue); }
.form-sub { margin-top: .6rem; color: var(--ink-70); font-size: .96rem; }

.wa-form { margin-top: 1.9rem; display: grid; gap: 1.15rem; }
.field { display: grid; gap: .5rem; }
.field label {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-55);
}
.field input, .field textarea {
  width: 100%;
  padding: .92rem 1.05rem;
  background: var(--cream);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-md);
  font-size: .98rem;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-40); }
.field input:focus, .field textarea:focus {
  outline: none;
  background: var(--cream-lift);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(127, 183, 214, .28);
}
.field.has-error input, .field.has-error textarea { border-color: #C0563F; box-shadow: 0 0 0 4px rgba(192, 86, 63, .14); }

.form-note { min-height: 1.3em; font-size: .87rem; color: var(--ink-55); text-align: center; }
.form-note.is-error { color: #A8452F; }
.form-note.is-ok { color: #1D7A46; }

.contact-info { display: grid; gap: clamp(1rem, 2vw, 1.3rem); }
.info-card {
  padding: 1.5rem 1.6rem;
  background: rgba(234, 217, 193, .34);
  border: 1px solid rgba(220, 197, 165, .7);
  border-radius: var(--r-lg);
  transition: transform .45s var(--ease-out), background-color .45s, border-color .45s;
}
.info-card:hover { transform: translateX(6px); background: rgba(234, 217, 193, .55); border-color: var(--wax-deep); }
.info-ico {
  width: 42px; height: 42px; display: grid; place-content: center;
  border-radius: var(--r-sm);
  background: var(--cream-lift); color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.info-ico svg { width: 21px; height: 21px; }
.info-card h3 { margin-top: 1rem; font-size: 1.22rem; }
.info-card p { margin-top: .55rem; font-size: .93rem; color: var(--ink-70); }

/* ── 12. Footer ──────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(247, 243, 238, .78);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.6rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.brand-footer { display: inline-block; }
.brand-footer img {
  width: 172px; height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
  transition: transform .5s var(--ease-out);
}
.brand-footer:hover img { transform: translateY(-4px); }
.footer-claim { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--wax); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .93rem; }
.footer-nav a { color: rgba(247, 243, 238, .72); transition: color .3s; }
.footer-nav a:hover { color: var(--sky); }

.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(247, 243, 238, .12);
  font-size: .86rem; color: rgba(247, 243, 238, .68);
}

/* ── 13. Botón flotante de WhatsApp ──────────────────────── */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 110;
  width: 56px; height: 56px;
  display: grid; place-content: center;
  background: var(--wa); color: #06301a;
  border-radius: 50%;
  box-shadow: 0 14px 32px -12px rgba(37, 211, 102, .85);
  opacity: 0; transform: translateY(18px) scale(.85); pointer-events: none;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), background-color .3s;
}
.wa-float.is-in { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--wa-dark); color: #fff; transform: translateY(-4px) scale(1.05); }
.wa-float svg { width: 27px; height: 27px; fill: currentColor; }

/* ── 14. Responsive ──────────────────────────────────────── */
/* Portátiles y tablets: el mockup sigue al lado del título, algo más
   angosto y con el texto ganando espacio. */
@media (max-width: 1024px) and (min-width: 561px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: clamp(1.5rem, 3.5vw, 3rem);
  }
  .hero-title { font-size: clamp(2rem, 4.6vw, 3.4rem); }
  .hero-visual { min-height: 0; }
  .mock-phone { display: none; }
}

/* Móviles: en pantallas estrechas el mockup pasa debajo; a dos columnas
   el título quedaría partido en demasiadas líneas. */
@media (max-width: 560px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  /* el teléfono decorativo se amontona con la ventana en pantallas chicas */
  .mock-phone { display: none; }
  .hero-title { max-width: 18ch; }
  .hero-visual { max-width: 520px; }
}

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

/* El precio y su explicación se apilan: a dos columnas la cifra
   no entra y se parte en varias líneas. */
@media (max-width: 760px) {
  .precio-bloque { grid-template-columns: 1fr; }
  .precio-cifra {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 1.3rem;
  }
}

@media (max-width: 880px) {
  .nav-toggle { display: grid; }
  .nav-menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.1rem var(--pad) 1.6rem;
    background: rgba(247, 243, 238, .97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(30, 42, 54, .7);
    transform: translateY(-14px);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility .35s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .nav-wa { margin-top: 1.1rem; width: 100%; }
}

@media (max-width: 640px) {
  :root { --nav-h: 70px; }
  .hero { min-height: auto; padding-bottom: 4.5rem; }
  .hero-cards { grid-template-columns: 1fr; max-width: none; }
  .hero-cta .btn { width: 100%; }
  .scroll-hint { display: none; }
  .mock-phone { width: 108px; right: -2%; bottom: -8%; }
  .folio-close { flex-direction: column; align-items: flex-start; }
  .folio-close .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .wa-float { width: 52px; height: 52px; }
  .wa-float svg { width: 25px; height: 25px; }
}

/* ── 15. Reduced motion: solo lo intrusivo ───────────────── */
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .mock-hero { animation: none; }
  .splash-bar i { animation-duration: .3s; }
}
