:root {
  --sec-y: 90px;     /* mitad del espacio entre secciones */
  --head-gap: 48px;  /* título → contenido */
  --bg: #FAF7F3;
  --ink: #111111;
  --ink-50: rgba(17, 17, 17, .5);
  --line: rgba(17, 17, 17, .12);
  --cream: #FAF7F3;
  --card: #111111;
  --radius: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grano sutil */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .07;
  transform: translateZ(0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

.h2 {
  font-size: clamp(44px, 5.3vw, 76px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px;
}
.link-arrow .arrow {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border: 1px solid currentColor; border-radius: 6px;
  transition: background .3s, color .3s;
}
.link-arrow .arrow svg { width: 13px; height: 13px; transform: rotate(-45deg); transition: transform .45s var(--ease); }
.link-arrow:hover .arrow { background: var(--ink); color: var(--bg); }
.link-arrow:hover .arrow svg { transform: rotate(0deg); }

/* ---------- Animaciones de aparición ---------- */
/* palabra a palabra: desenfoque + subida */
.sw {
  display: inline-block;
  opacity: 0;
  filter: blur(var(--blur, 10px));
  transform: translateY(10px);
  transition: opacity .8s var(--ease), filter .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i) * 70ms);
}
[data-split="soft"] { --blur: 6px; }
[data-split].in .sw { opacity: 1; filter: blur(0); transform: none; }
/* bloques que suben */
[data-rise] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-rise].in { opacity: 1; transform: none; }
/* intro del hero */
.intro-late { opacity: 0; translate: 0 10px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
body.loaded .intro-late { opacity: 1; translate: 0 0; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: 180px;
  background: var(--card); color: var(--cream);
  border-radius: 10px;
  padding: 6px 6px 6px 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.nav.intro-late { translate: -50% -10px; transform: none; }
body.loaded .nav.intro-late { translate: -50% 0; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 24px; }
.nav-logo { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.nav-toggle {
  width: 28px; height: 24px;
  border: 0; border-radius: 6px;
  background: var(--cream); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.nav-toggle .dots { display: flex; gap: 2.5px; }
.nav-toggle .dots i { width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--ink); }
.nav-toggle .close { display: none; font-size: 12px; }
.nav-menu {
  display: grid; justify-items: start; gap: 6px;
  max-height: 0; overflow: hidden;
  transition: max-height .5s var(--ease), padding .5s var(--ease);
}
.nav-menu a {
  font-size: 13px; padding: 4px 8px;
  background: var(--cream); color: var(--ink);
  border-radius: 5px;
  transition: opacity .2s;
}
.nav-menu a:hover { opacity: .75; }
.nav.open .nav-menu { max-height: 200px; padding: 14px 0 8px; }
.nav.open .dots { display: none; }
.nav.open .close { display: block; }

/* ---------- HERO ---------- */
.intro-wrap { position: relative; }
.hero { min-height: 100vh; min-height: 100svh; padding-top: 140px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; min-height: calc(100vh - 140px); min-height: calc(100svh - 140px); }
.hero-title {
  position: relative;
  text-align: center;
  font-size: clamp(48px, 11.6vw, 168px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -0.02em;
}
.hero-title .hw {
  display: block;
  opacity: 0;
  filter: blur(2px);
  transform: translateY(10px);
  transition: opacity 1.4s cubic-bezier(.3,.6,.3,1), filter 1s ease, transform 1.2s var(--ease);
}
.hero-title .hw:nth-child(2) { transition-delay: .25s; }
body.ready .hero-title .hw { opacity: 1; filter: blur(0); transform: none; }

.spark {
  position: absolute;
  cursor: grab; touch-action: none; user-select: none;
  z-index: 3;
}
.spark:active { cursor: grabbing; }
.spark svg { display: block; width: 100%; fill: var(--ink); filter: drop-shadow(0 0 12px rgba(110, 80, 255, .7)); pointer-events: none; }
.spark-a { width: .32em; top: -.22em; left: -.3em; rotate: -12deg; }
.spark-b { width: .19em; bottom: -.2em; right: -.2em; rotate: 8deg; }

.photo-start { width: 200px; height: 228px; margin-top: 28px; flex: none; }
.hero-bottom {
  margin-top: auto;
  width: 100%;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: 40px;
}
.hero-year { font-size: clamp(40px, 4.7vw, 68px); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.hero-since { font-size: 16px; }

/* ---------- FOTO (carta que gira) ---------- */
.photo {
  position: absolute; top: 0; left: 0;
  z-index: 2;
  will-change: transform;
  opacity: 0;
  transition: opacity 1s ease .35s;
}
body.ready .photo { opacity: 1; }
.photo-card {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}
/* mientras viaja, la carta va fija en pantalla: así no depende de corregir el scroll con JS */
.photo.pin { position: fixed; left: 0 !important; top: 0 !important; }
.face {
  position: absolute; inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: #c9c3bb;
}
.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.face.back { transform: rotateY(180deg); background: #9d9a96; }
.photo-ph {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center;
  font-size: 15px; color: rgba(17,17,17,.6);
  border: 1.5px dashed rgba(17,17,17,.25); border-radius: inherit;
}
.photo-ph small { font-size: 12px; opacity: .7; }

/* ---------- ¡HOLA! ---------- */
.hey { padding: 140px 0 120px; }
.hey-grid {
  display: grid;
  grid-template-columns: 300px 1fr 360px;
  gap: 40px;
  min-height: 560px;
}
.hey-left { display: flex; flex-direction: column; justify-content: space-between; }
.hey-lead { font-size: 22px; font-weight: 600; line-height: 1.4; }
.photo-slot { justify-self: center; align-self: center; width: 400px; max-width: 100%; height: 456px; }
.hey-right { display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; }

/* ---------- FRASE ---------- */
.statement { padding: 200px 0; }
.statement-text {
  max-width: 900px; margin-inline: auto;
  text-align: center;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.statement-text .w { color: rgba(17, 17, 17, .18); transition: color .35s; }
.statement-text .w.on { color: var(--ink); }

/* ---------- SERVICIOS ---------- */
.services { padding: var(--sec-y) 0; }
.svc-list { list-style: none; }
.svc { border-bottom: 1px solid var(--line); }
.svc-head {
  width: 100%;
  display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 24px;
  padding: 34px 0;
  background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit;
  text-align: left; cursor: pointer;
}
.svc h3 { font-size: clamp(24px, 2.3vw, 32px); font-weight: 500; letter-spacing: -0.02em; transition: translate .5s var(--ease); }
.svc-head:hover h3 { translate: 10px 0; }
.svc-head p { color: var(--ink-50); font-size: 16px; text-align: right; }
.svc-head p b { font-weight: 400; margin: 0 4px; }
.svc-plus { position: relative; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; transition: background .3s, border-color .3s, rotate .5s var(--ease); }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; translate: -50% -50%; transition: rotate .5s var(--ease); }
.svc-plus::after { rotate: 90deg; }
.svc-head:hover .svc-plus { border-color: var(--ink); }
.svc.open .svc-plus { background: var(--ink); color: var(--bg); border-color: var(--ink); rotate: 180deg; }
.svc.open .svc-plus::after { rotate: 0deg; }

.svc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.svc.open .svc-panel { grid-template-rows: 1fr; }
.svc-panel-in { overflow: hidden; min-height: 0; }
.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px;
  padding-bottom: 34px;
}
.plan {
  background: var(--card); color: var(--cream);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.svc.open .plan { opacity: 1; transform: none; }
.svc.open .plan:nth-child(2) { transition-delay: .08s; }
.svc.open .plan:nth-child(3) { transition-delay: .16s; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan h4 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.plan-tag { font-size: 12px; background: var(--cream); color: var(--ink); border-radius: 5px; padding: 3px 8px; white-space: nowrap; }
.plan-price { font-size: clamp(36px, 3.4vw, 48px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.plan-price span { display: block; margin-top: 8px; font-size: 14px; font-weight: 400; letter-spacing: -0.02em; opacity: .65; }
.plan-note { font-size: 13px; opacity: .65; margin-top: -6px; }
.plan ul { list-style: none; display: grid; gap: 8px; font-size: 15px; padding-top: 14px; border-top: 1px solid rgba(250,247,243,.12); margin-bottom: auto; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; opacity: .55; }
.plan-tiers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #1d1d1d; border-radius: 10px; padding: 3px; gap: 3px;
}
.plan-tiers button {
  font: inherit; font-size: 13px; letter-spacing: -0.02em;
  border: 0; border-radius: 8px; padding: 8px 6px; cursor: pointer;
  background: transparent; color: rgba(250,247,243,.65);
  transition: background .3s var(--ease), color .3s;
}
.plan-tiers button:hover { color: var(--cream); }
.plan-tiers button[aria-selected="true"] { background: var(--cream); color: var(--ink); }
.plan-price b { font-weight: inherit; }
.plan-tag[hidden] { display: none; }
.plan .tier-tag { transition: opacity .16s ease; }
.plan.tier-swap .tier-tag { opacity: 0; }
.plan .tier-price, .plan .tier-items { transition: opacity .16s ease, translate .16s ease; }
.plan.tier-swap .tier-price, .plan.tier-swap .tier-items { opacity: 0; translate: 0 4px; }
.plan-cta {
  margin-top: 8px;
  display: block; text-align: center; overflow: hidden;
  background: var(--cream); color: var(--ink);
  border-radius: 8px; padding: 12px;
  font-size: 15px; font-weight: 500;
}
.plan-cta:hover .btn-roll { transform: translateY(calc(-100% - 12px)); }
.svc-foot { font-size: 14px; color: var(--ink-50); padding-bottom: 34px; margin-top: -18px; }

/* ---------- CÓMO TRABAJO ---------- */
.sec-sub { max-width: 340px; font-size: 18px; color: var(--ink-50); text-align: right; }
.process { padding: var(--sec-y) 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
  display: grid; align-content: start; gap: 12px;
}
.step span { font-size: 16px; color: var(--ink-50); }
.step h3 { font-size: clamp(24px, 2.3vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.step p { font-size: 16px; color: rgba(17,17,17,.7); }

/* ---------- PROYECTOS ---------- */
.projects { padding: var(--sec-y) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: var(--head-gap); }
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 16px; }
.proj-group + .proj-group { margin-top: 80px; }
.proj-label { font-size: 18px; color: var(--ink-50); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.proj-grid-3 { grid-template-columns: repeat(3, 1fr); }
.proj-grid-3 h3 { font-size: 24px; }
.proj-grid-3 p { font-size: 15px; }
.proj-img {
  aspect-ratio: 582 / 440;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; place-items: center;
  margin-bottom: 14px;
  position: relative;
}
.proj-img span {
  font-size: clamp(28px, 3.6vw, 52px); font-weight: 800; color: rgba(255,255,255,.9);
  text-align: center; line-height: 1; letter-spacing: -0.02em; padding: 0 24px;
  transition: transform .8s var(--ease);
}
.proj-img::before { content: ""; position: absolute; inset: 0; background: inherit; transition: transform 1s var(--ease); }
.proj-img span { position: relative; }
.proj:hover .proj-img::before { transform: scale(1.05); }
.proj:hover .proj-img span { transform: scale(1.04); }
.proj h3 { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.proj p { font-size: 16px; }
.g1 { background: linear-gradient(135deg, #5a1424, #b5485c); }
.g2 { background: linear-gradient(135deg, #2b1a14, #8a5a3c); }
.g3 { background: linear-gradient(135deg, #1c1c1c, #5a5a5a); }
.g4 { background: linear-gradient(135deg, #b9b9b9, #3a3a3a); }
.g5 { background: linear-gradient(135deg, #1d3a4a, #7aa6b8); }

/* miniaturas reales */
.proj { cursor: default; }
.proj[data-view] { cursor: pointer; }
.proj[data-view="video"]:not([data-src^="img"]):not([data-src^="http"]) { cursor: default; }
.proj-img.has-shot { background: #e9e4dd; place-items: stretch; }
.proj-img.has-shot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 1s var(--ease);
}
.proj:hover .proj-img.has-shot img { transform: scale(1.04); }
.proj-open {
  position: absolute !important; left: 50%; bottom: 18px;
  translate: -50% 10px; opacity: 0;
  font-size: 14px !important; font-weight: 500 !important; letter-spacing: -0.02em; line-height: 1;
  background: var(--ink); color: var(--cream) !important;
  padding: 10px 16px; border-radius: 999px;
  transition: opacity .4s var(--ease), translate .4s var(--ease) !important;
}
.proj:hover .proj-open { opacity: 1; translate: -50% 0; }
@media (hover: none) { .proj-open { opacity: 1; translate: -50% 0; } }
.proj-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(250,247,243,.92); display: grid; place-items: center;
  transition: scale .4s var(--ease);
}
.proj-play::before { content: ""; margin-left: 5px; border-left: 20px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.proj:hover .proj-play { scale: 1.08; }

/* ---------- Carrusel (tarjetas y ventana) ---------- */
.car { position: relative; width: 100%; height: 100%; }
.car-track {
  display: flex; width: 100%; height: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; position: relative; }
.car-dots { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; display: flex; gap: 6px; z-index: 2; }
.car-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(250,247,243,.45); cursor: pointer; transition: width .4s var(--ease), background .3s; }
.car-dots i.on { width: 22px; background: var(--cream); }
.car-prev, .car-next { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; }
.car-prev { left: 14px; }
.car-next { right: 14px; }
.car-prev svg { rotate: 180deg; }
.car.at-start .car-prev, .car.at-end .car-next { opacity: 0; pointer-events: none; }

/* botón redondo común (flechas y cerrar) */
.pv-round {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, opacity .3s, scale .3s var(--ease);
}
.pv-round svg { width: 16px; height: 16px; }
.pv-round:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pv-round:active { scale: .94; }

/* ---------- Tarjeta de vídeo: un solo vídeo, deslizable (minimalista) ---------- */
.proj-img.proj-reels { background: transparent; place-items: stretch; overflow: visible; }
.reel { position: absolute; inset: 0; }
.reel video {
  position: absolute; top: 3%; left: 50%; translate: -50% 0;
  height: 90%; width: auto; aspect-ratio: 9 / 16;
  object-fit: cover; border-radius: 12px; background: #e9e4dd;
  box-shadow: 0 18px 40px rgba(17,17,17,.14);
  transition: transform 1s var(--ease);
}
.reel-poster {
  position: absolute; top: 3%; left: 50%; translate: -50% 0;
  height: 90%; width: auto; aspect-ratio: 9 / 16;
  object-fit: cover; border-radius: 12px; pointer-events: none;
  transition: opacity .6s var(--ease), transform 1s var(--ease);
}
.reel.is-playing .reel-poster { opacity: 0; }
.proj:hover .reel video, .proj:hover .reel-poster { transform: scale(1.02); }
.proj-reels .car-dots { bottom: -1%; }
.proj-reels .car-dots i { background: rgba(17,17,17,.2); }
.proj-reels .car-dots i.on { background: var(--ink); }
.proj-reels .car-prev, .proj-reels .car-next { opacity: 0; width: 40px; height: 40px; }
.proj:hover .proj-reels .car-prev, .proj:hover .proj-reels .car-next { opacity: 1; }
.proj:hover .proj-reels .car.at-start .car-prev, .proj:hover .proj-reels .car.at-end .car-next { opacity: 0; }
.proj-reels .proj-open { z-index: 2; bottom: 9%; }
@media (hover: none) { .proj-reels .car-prev, .proj-reels .car-next { display: none; } }

/* ---------- Ventana "Ver proyecto" ---------- */
.pv { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; pointer-events: none; }
.pv-backdrop { position: absolute; inset: 0; background: rgba(17,17,17,.55); backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s var(--ease); }
.pv-panel {
  position: relative;
  width: min(1180px, calc(100% - 32px)); height: min(900px, calc(100% - 32px));
  background: var(--bg); color: var(--ink);
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 26px 28px 22px;
  box-shadow: 0 40px 120px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(30px) scale(.98);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.pv-panel::before { /* el mismo grano de la web */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.pv.open { pointer-events: auto; }
.pv.open .pv-backdrop { opacity: 1; }
.pv.open .pv-panel { opacity: 1; transform: none; }
.pv[data-view="videos"] .pv-panel { width: min(760px, calc(100% - 32px)); }

.pv-head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pv-kicker { font-size: 15px; color: var(--ink-50); margin-bottom: 6px; }
.pv-title { font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.pv-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.pv-visit[hidden] { display: none; }
.pv-close .x { position: relative; width: 14px; height: 14px; }
.pv-close .x::before, .pv-close .x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: currentColor; translate: -50% -50%; rotate: 45deg; }
.pv-close .x::after { rotate: -45deg; }
.pv-close:hover .x { rotate: 90deg; transition: rotate .4s var(--ease); }

.pv-body { position: relative; flex: 1; min-height: 0; padding-top: 20px; display: flex; flex-direction: column; align-items: center; }

/* web: tarjeta tipo navegador, clara */
.pv-browser { width: 100%; flex: 1; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 18px 50px rgba(17,17,17,.08); }
.pv-browser-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #f1ede7; border-bottom: 1px solid var(--line); }
.pv-dots { display: flex; gap: 6px; }
.pv-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(17,17,17,.14); }
.pv-url { flex: 1; text-align: center; font-size: 13px; color: var(--ink-50); background: var(--bg); border-radius: 999px; padding: 5px 14px; max-width: 420px; margin: 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-browser-view { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pv-browser-view img { display: block; width: 100%; height: auto; }
.pv-hint { font-size: 13px; color: var(--ink-50); margin-top: 12px; }

/* vídeos: uno a la vez, deslizable */
.car-pv { flex: 1; min-height: 0; }
.pv-video { position: absolute; inset: 0; margin: 0; }
.pv-video video {
  position: absolute; top: 0; left: 50%; translate: -50% 0;
  height: calc(100% - 34px); width: auto; max-width: 100%; aspect-ratio: 9 / 16;
  object-fit: cover; border-radius: var(--radius); background: #000;
  box-shadow: 0 18px 50px rgba(17,17,17,.18);
}
.pv-video figcaption { position: absolute; left: 60px; right: 60px; bottom: 0; font-size: 15px; color: var(--ink-50); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-pv .car-dots { display: none; }
.car-pv .car-prev { left: 0; }
.car-pv .car-next { right: 0; }
.pv-counter { margin-top: 10px; font-size: 15px; color: var(--ink-50); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.pv-counter b { color: var(--ink); font-weight: 600; }
body.pv-lock { overflow: hidden; }

@media (max-width: 720px) {
  .pv-panel { width: calc(100% - 16px) !important; height: calc(100% - 16px); padding: 18px 16px 14px; border-radius: 18px; }
  .pv-head { padding-bottom: 14px; }
  .pv-title { font-size: 26px; }
  .pv-kicker { font-size: 13px; }
  .pv-actions { gap: 10px; }
  .pv-visit { display: none; }
  .pv-body { padding-top: 14px; }
  .pv-browser-bar .pv-dots { display: none; }
  .car-pv .car-prev, .car-pv .car-next { display: none; }
  .pv-video figcaption { padding: 0 8px; font-size: 14px; }
  .pv-mobile-visit { display: inline-flex !important; }
}
.pv-mobile-visit { display: none !important; margin-top: 10px; }

/* ---------- TESTIMONIOS ---------- */
.testimonials { padding: var(--sec-y) 0; }
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: var(--head-gap); }
.testi-face p { font-size: 20px; line-height: 1.45; letter-spacing: -0.02em; max-width: 520px; }
.testi-grid { perspective: 1200px; }
.testi {
  position: relative;
  min-height: 300px;
  transform-style: preserve-3d;
  transform: rotateY(180deg);
  transition: transform 1.2s var(--ease);
  transition-delay: var(--d, 0ms);
}
.testi::after {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius);
  background: #1d1d1d;
  transform: rotateY(180deg);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.testi.in { transform: rotateY(0deg); }
.testi-face {
  height: 100%;
  background: var(--card); color: var(--cream);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.testi footer { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.testi footer strong { display: block; font-weight: 400; }
.testi footer small { font-size: 15px; opacity: .8; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #333; display: grid; place-items: center; font-size: 14px;
}

/* ---------- BLOG ---------- */
.thoughts { padding: var(--sec-y) 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: var(--head-gap); }
.post {
  position: relative;
  min-height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card); color: var(--cream);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.post-img { position: absolute; inset: 0; transition: transform 1s var(--ease); }
.post:hover .post-img { transform: scale(1.05); }
.post-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.82)); }
.p1 { background: #e9e4dd url('img/guias/resenas.jpg') center / cover no-repeat; }
.p2 { background: #FAF7F3 url('img/guias/seo.jpg') center / cover no-repeat; }
.post-body { position: relative; padding: 22px; display: grid; gap: 6px; }
.post time, .post-body p { font-size: 15px; opacity: .85; }
.post h3 { font-size: 30px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.post-cta { justify-content: space-between; padding: 24px; }
.post-cta p { font-size: clamp(26px, 2.3vw, 34px); line-height: 1.2; letter-spacing: -0.02em; }
.post-cta:hover .arrow { background: var(--cream); color: var(--ink); }
.post-cta:hover .arrow svg { transform: rotate(0deg); }

/* ---------- CONTACTO ---------- */
.contact { padding: var(--sec-y) 0 calc(var(--sec-y) + 40px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-left { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.contact-left p { margin-top: 14px; max-width: 520px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background .3s, color .3s;
}
.socials a:hover { background: var(--ink); color: var(--bg); }
.socials svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form {
  background: var(--card); color: var(--cream);
  border-radius: var(--radius);
  padding: 14px;
  display: grid; gap: 18px;
}
.form label { display: grid; gap: 8px; font-size: 14px; }
.form input, .form textarea {
  font: inherit; font-size: 14px; letter-spacing: -0.02em;
  color: var(--cream);
  background: #1b1b1b;
  border: 1px solid #2c2c2c; border-radius: 8px;
  padding: 11px 12px;
  outline: none; resize: vertical;
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus { border-color: #6a6a6a; }
.form ::placeholder { color: #777; }
.form button {
  font: inherit; font-size: 15px; font-weight: 500;
  background: var(--cream); color: var(--ink);
  border: 0; border-radius: 8px;
  padding: 12px; cursor: pointer;
  transition: opacity .2s;
}
.form button { overflow: hidden; }
.btn-roll { display: inline-block; position: relative; transition: transform .45s var(--ease); }
.btn-roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; padding-top: 12px; }
.form button:hover .btn-roll { transform: translateY(calc(-100% - 12px)); }

/* botón WhatsApp */
.wa-btn {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 12px;
  border: 1px solid var(--line); border-radius: 12px;
  transition: background .3s, color .3s, border-color .3s;
}
.wa-btn > svg { width: 34px; height: 34px; padding: 7px; border-radius: 8px; background: #25D366; color: #fff; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa-btn span { display: grid; font-size: 17px; line-height: 1.2; }
.wa-btn small { font-size: 13px; color: var(--ink-50); transition: color .3s; }
.wa-btn .arrow { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 6px; margin-left: 6px; }
.wa-btn .arrow svg { width: 13px; height: 13px; transform: rotate(-45deg); transition: transform .45s var(--ease); }
.wa-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wa-btn:hover small { color: rgba(250,247,243,.6); }
.wa-btn:hover .arrow svg { transform: rotate(0deg); }

/* ---------- FOOTER ---------- */
.footer { background: var(--card); color: var(--cream); padding-top: 120px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer-claim { font-size: clamp(44px, 4.7vw, 68px); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.footer h4 { font-size: 26px; font-weight: 500; margin-bottom: 18px; letter-spacing: -0.02em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; max-width: 300px; }
.pills a { background: var(--cream); color: var(--ink); font-size: 13px; padding: 5px 10px; border-radius: 6px; transition: opacity .2s; }
.pills a:hover { opacity: .75; }
.footer-mail { display: block; font-size: 16px; margin-bottom: 8px; }
.footer-mail:hover { text-decoration: underline; }
.footer-giant {
  font-size: 28.5vw; font-weight: 700; line-height: .78;
  letter-spacing: -0.02em;
  text-align: center;
  color: rgba(250, 247, 243, .1);
  margin-top: 60px;
  transform: translateY(var(--gy, 30%));
  user-select: none;
  will-change: transform;
}

/* formulario: antispam y estado */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 14px; min-height: 1.2em; color: rgba(250,247,243,.75); }
.form-status[data-type="ok"] { color: #9be7b0; }
.form-status[data-type="error"] { color: #f2b8a8; }
.form button:disabled { opacity: .6; cursor: progress; }

/* ---------- Pie legal ---------- */
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 60px; padding-top: 22px;
  border-top: 1px solid rgba(250,247,243,.12);
  font-size: 14px; color: rgba(250,247,243,.6);
}
.footer-legal a:hover { color: var(--cream); }
.form-legal { font-size: 12px; line-height: 1.45; color: rgba(250,247,243,.55); }
.form-legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 90;
  width: min(420px, calc(100% - 32px));
  background: var(--card); color: var(--cream);
  border-radius: var(--radius); padding: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  display: grid; gap: 14px;
  font-size: 14px; line-height: 1.45; letter-spacing: -0.02em;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.cookie-banner.show { opacity: 1; transform: none; pointer-events: auto; }
.cookie-banner strong { display: block; font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.cookie-banner a { text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-actions button {
  font: inherit; font-size: 14px; font-weight: 500;
  border-radius: 8px; padding: 10px; cursor: pointer;
  border: 1px solid rgba(250,247,243,.35);
  background: transparent; color: var(--cream);
}
.cookie-actions button[data-c="granted"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .hey-grid { grid-template-columns: 1fr 1fr; }
  .photo-slot { grid-column: 1 / -1; grid-row: 2; }
  .testi-grid, .post-grid, .steps, .proj-grid-3 { grid-template-columns: 1fr 1fr; }
  .post-cta { grid-column: 1 / -1; min-height: 280px; }
}
@media (max-width: 720px) {
  :root { --sec-y: 56px; --head-gap: 32px; }
  body { font-size: 16px; }
  .hero { min-height: 0; padding-top: 110px; }
  .hero-inner { min-height: 0; }
  .photo-start { display: none; }
  .hero-bottom { margin-top: 72px; padding-bottom: 28px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .photo-start { width: 150px; height: 175px; }
  .hero-since { font-size: 13px; order: -1; }
  .hey { padding: 80px 0; }
  .hey-grid { grid-template-columns: 1fr; gap: 28px; }
  .photo-slot { grid-column: auto; grid-row: auto; width: 100%; height: auto; aspect-ratio: 400 / 456; }
  .hey-left { gap: 20px; }
  .hey-lead { font-size: 20px; }
  .statement { padding: 120px 0; }
  .svc-head { grid-template-columns: 1fr 28px; gap: 8px 16px; padding: 26px 0; }
  .svc-head p { grid-row: 2; text-align: left; font-size: 14px; }
  .svc-plus { grid-row: 1; grid-column: 2; }
  .proj-grid, .proj-grid-3, .testi-grid, .post-grid, .contact-grid, .footer-grid, .steps { grid-template-columns: 1fr; }
  .proj-group + .proj-group { margin-top: 56px; }
  .sec-sub { text-align: left; }
  .proj h3 { font-size: 26px; }
  .post { min-height: 380px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer { padding-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .sw, [data-rise], .intro-late, .hero-title .hw, .photo { opacity: 1 !important; transform: none !important; filter: none !important; }
  .testi { transform: none !important; }
}

/* ---------- Tarjetas simétricas ---------- */
.proj-grid { align-items: start; }
.proj .proj-img { aspect-ratio: 4 / 3; }
.proj p { min-height: 2.8em; }
.proj-img.has-shot img { aspect-ratio: auto; }

/* ---------- Fila de vídeo: vídeo a la izquierda, texto a su lado (todo alineado al mismo borde) ---------- */
.proj-grid-2 .proj {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto auto;
  column-gap: 28px;
  height: 460px;
}
.proj-grid-2 .proj-img.proj-reels {
  grid-row: 1 / 4;
  height: 100%; width: auto; aspect-ratio: 9 / 16;
  margin-bottom: 0; overflow: hidden; border-radius: 14px;
  background: #e9e4dd;
  box-shadow: 0 18px 40px rgba(17,17,17,.12);
}
.proj-grid-2 .reel video, .proj-grid-2 .reel-poster {
  top: 0; left: 0; translate: none; height: 100%; width: 100%;
  border-radius: 0; box-shadow: none;
}
.proj-grid-2 .proj:hover .reel video, .proj-grid-2 .proj:hover .reel-poster { transform: scale(1.03); }
.proj-grid-2 .proj-reels .car-dots { bottom: 14px; }
.proj-grid-2 .proj-reels .car-dots i { background: rgba(250,247,243,.5); }
.proj-grid-2 .proj-reels .car-dots i.on { background: var(--cream); }
.proj-grid-2 .proj-reels .car-prev { left: 10px; }
.proj-grid-2 .proj-reels .car-next { right: 10px; }
.proj-grid-2 .proj-reels .proj-open { bottom: 38px; }
.proj-grid-2 h3 { grid-column: 2; grid-row: 2; align-self: end; }
.proj-grid-2 p { grid-column: 2; grid-row: 3; min-height: 0; max-width: 260px; }

@media (max-width: 1000px) {
  .proj-grid-2 .proj { height: 380px; }
}
@media (max-width: 720px) {
  .proj-grid-2 .proj { display: block; height: auto; }
  .proj-grid-2 .proj-img.proj-reels { height: 440px; margin-bottom: 14px; }
  .proj-grid-2 p { max-width: none; }
}

/* ---------- Diagnóstico digital gratis ---------- */
.diag { padding: var(--sec-y) 0; }
.diag-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: start; }
.diag-kicker { border-bottom: 0; padding-bottom: 0; margin-bottom: 14px; }
.diag-lead { margin-top: 20px; font-size: 22px; line-height: 1.35; letter-spacing: -0.02em; max-width: 520px; }
.diag-list { list-style: none; margin-top: var(--head-gap); border-top: 1px solid var(--line); }
.diag-list li { display: grid; grid-template-columns: 48px auto 1fr; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.diag-list span { font-size: 15px; color: var(--ink-50); }
.diag-list h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.diag-list p { font-size: 15px; color: var(--ink-50); text-align: right; }
.diag-get { margin-top: 24px; font-size: 16px; color: rgba(17,17,17,.75); max-width: 520px; }
.diag-get strong { color: var(--ink); font-weight: 600; }
.diag .form { position: sticky; top: 90px; }
.form-title { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; padding: 6px 2px 4px; }

/* selector del formulario */
.form select {
  font: inherit; font-size: 14px; letter-spacing: -0.02em;
  color: var(--cream); background: #1b1b1b;
  border: 1px solid #2c2c2c; border-radius: 8px;
  padding: 11px 36px 11px 12px; outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23FAF7F3' stroke-opacity='.6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  transition: border-color .2s;
}
.form select:focus { border-color: #6a6a6a; }

@media (max-width: 1000px) {
  .diag-grid { grid-template-columns: 1fr; gap: 48px; }
  .diag .form { position: static; }
}
@media (max-width: 720px) {
  .diag-lead { font-size: 19px; }
  .diag-list h3 { font-size: 19px; }
}

/* ---------- Ajustes de móvil: mismo orden y centrado que en ordenador ---------- */
.svc-head p span { white-space: nowrap; }
/* el icono suelto de redes no se muestra mientras solo esté WhatsApp */
.socials:has(> a:only-of-type) { display: none; }

@media (max-width: 720px) {
  /* hero: todo centrado y sin huecos */
  .hero { padding-top: 104px; }
  .hero-bottom { margin-top: 40px; padding-bottom: 8px; align-items: center; text-align: center; gap: 4px; }
  .hero-year { font-size: 44px; }

  /* tarjetas de vídeo: vídeo a todo el ancho, centrado */
  .proj-grid-2 .proj-img.proj-reels {
    width: 100%; height: auto; aspect-ratio: 9 / 16;
    max-height: 78svh; margin: 0 auto 14px;
  }

  /* servicios: etiquetas en líneas limpias */
  .svc-head { grid-template-columns: minmax(0, 1fr) 28px; }
  .svc-head h3, .svc-head p { min-width: 0; }
  .svc-head p { line-height: 1.6; }
  .svc-head p b { margin: 0 2px; }

  /* contacto: botón de WhatsApp a todo el ancho */
  .wa-btn { display: flex; width: 100%; }
  .wa-btn span:not(.arrow) { flex: 1; }
}

/* precio del diagnóstico */
.diag-price { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.diag-free { font-size: clamp(64px, 7vw, 96px); font-weight: 700; line-height: .9; letter-spacing: -0.04em; }
.diag-was { font-size: 28px; color: var(--ink-50); text-decoration-thickness: 2px; }
.diag-note { font-size: 15px; line-height: 1.35; color: var(--ink-50); padding-left: 18px; border-left: 1px solid var(--line); }
.diag-lead { margin-top: 28px; }

/* formulario más ligero */
.form { gap: 22px; }
.form-legal { font-size: 11px; color: rgba(250,247,243,.4); }

@media (max-width: 720px) {
  :root { --sec-y: 72px; }
  .diag-price { gap: 14px; }
  .diag-was { font-size: 22px; }
  .diag-note { font-size: 13px; padding-left: 14px; }
  .diag-list li { grid-template-columns: 36px 1fr; row-gap: 2px; }
  .diag-list p { grid-column: 2; text-align: left; }
}

/* presupuesto del formulario de contacto */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.budget { border: 0; display: grid; gap: 8px; min-width: 0; }
.budget legend { font-size: 14px; padding: 0; margin-bottom: 8px; }
.budget-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: stretch; }
.budget-num { position: relative; display: block; }
.budget-num input { width: 100%; padding-right: 72px; font-variant-numeric: tabular-nums; }
.budget-num > span:last-child { position: absolute; right: 12px; top: 50%; translate: 0 -50%; font-size: 14px; color: rgba(250,247,243,.5); pointer-events: none; }
.budget-num input:disabled { opacity: .35; }
.budget-opt {
  display: flex !important; align-items: center; gap: 10px; cursor: pointer;
  background: #1b1b1b; border: 1px solid #2c2c2c; border-radius: 8px;
  padding: 0 14px; font-size: 14px; white-space: nowrap;
  transition: border-color .2s, background .2s, color .2s;
}
.budget-opt input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border: 1.5px solid rgba(250,247,243,.5); border-radius: 4px; display: grid; place-items: center; cursor: pointer; flex: none; }
.budget-opt input:checked { background: var(--cream); border-color: var(--cream); }
.budget-opt input:checked::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); rotate: -45deg; translate: 0 -1px; }
.budget.is-oriented .budget-opt { border-color: var(--cream); }
@media (max-width: 720px) {
  .budget-row { grid-template-columns: 1fr; }
  .budget-opt { padding: 12px 14px; }
}

/* ---------- Barra fija inferior (móvil) ---------- */
.mbar { display: none; }
@media (max-width: 720px) {
  .mbar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 60; display: flex; gap: 8px;
    padding: 6px; border-radius: 16px;
    background: var(--card); box-shadow: 0 12px 36px rgba(0,0,0,.25);
    transform: translateY(140%); opacity: 0; pointer-events: none;
    transition: transform .5s var(--ease), opacity .4s var(--ease);
  }
  .mbar.show { transform: none; opacity: 1; pointer-events: auto; }
  .mbar-main {
    flex: 1; display: flex; align-items: center; justify-content: space-between;
    min-height: 48px; padding: 0 10px 0 16px; border-radius: 11px;
    background: var(--cream); color: var(--ink); font-size: 16px; font-weight: 500;
  }
  .mbar-main .arrow { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 7px; }
  .mbar-main .arrow svg { width: 14px; height: 14px; transform: rotate(-45deg); }
  .mbar-wa { width: 48px; display: grid; place-items: center; border-radius: 11px; background: #25D366; color: #fff; }
  .mbar-wa svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
}

/* ---------- Móvil: formularios sin zoom, zonas táctiles, carruseles y vídeos ---------- */
@media (max-width: 720px) {
  /* 16 px evita que el iPhone amplíe la pantalla al tocar un campo */
  .form input, .form textarea, .form select, .budget-num input { font-size: 16px; }
  .budget-opt { font-size: 15px; }

  /* zonas táctiles de al menos 44 px sin cambiar el aspecto */
  .car-dots i { position: relative; }
  .car-dots i::after { content: ""; position: absolute; inset: -16px -6px; }
  .nav-toggle { position: relative; }
  .nav-toggle::after { content: ""; position: absolute; inset: -10px -8px; }
  .svc-plus { width: 32px; height: 32px; }

  /* planes, testimonios y guías: tarjetas deslizables de lado */
  .plans, .testi-grid, .post-grid {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%;
    gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px;
  }
  .plans::-webkit-scrollbar, .testi-grid::-webkit-scrollbar, .post-grid::-webkit-scrollbar { display: none; }
  .plans > *, .testi-grid > *, .post-grid > * { scroll-snap-align: start; }
  .plans:has(> :only-child) { grid-auto-columns: 100%; }
  .post-cta { grid-column: auto; min-height: 380px; }
  .plans { padding-bottom: 28px; }

  /* vídeos de las tarjetas: portada con botón de play; el vídeo carga al tocar */
  .proj-reels .reel::after {
    content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%;
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(250,247,243,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23111'/%3E%3C/svg%3E") 56% 50% / 26px no-repeat;
    box-shadow: 0 8px 24px rgba(0,0,0,.2); pointer-events: none;
  }
}

/* ---------- Revisión general (oct 2026) ---------- */
/* proyectos: filas de vídeo y de webs más equilibradas */
.proj-grid-2 .proj { height: 400px; }
/* testimonios: líneas más cortas, mejor lectura */
.testi-face p { font-size: 19px; max-width: 46ch; }
.hero-year { white-space: nowrap; }

@media (max-width: 720px) {
  .testi-face p { font-size: 17px; }
  /* la barra fija nunca tapa el final de la página */
  html { scroll-padding-bottom: 96px; }
  .footer { padding-bottom: 24px; }
  body.menu-open .mbar { opacity: 0; pointer-events: none; }

  /* menú del móvil a pantalla completa, con enlaces grandes */
  .nav.open {
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    width: auto; translate: none !important; transform: none;
    border-radius: 22px; padding: 14px 14px 24px 22px;
    display: flex; flex-direction: column;
  }
  .nav.open .nav-bar { height: 40px; }
  .nav.open .nav-logo { font-size: 20px; }
  .nav.open .nav-toggle { width: 44px; height: 40px; border-radius: 10px; }
  .nav.open .nav-menu { max-height: none; flex: 1; align-content: center; gap: 4px; padding: 0; }
  .nav.open .nav-menu a {
    background: none; color: var(--cream); border-radius: 0;
    font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
    padding: 10px 0; width: 100%;
    border-bottom: 1px solid rgba(250,247,243,.12);
  }
  .nav.open .nav-menu a:first-child { color: var(--ink); background: var(--cream); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; border: 0; font-size: 26px; }
  body.menu-open { overflow: hidden; }
}

/* tarjetas de guías: ilustración arriba, texto abajo sobre fondo oscuro */
.post:not(.post-cta) .post-img { bottom: 44%; }
.post:not(.post-cta) .post-img::after { background: linear-gradient(transparent 75%, rgba(17,17,17,.35)); }

/* mensaje destacado al abrir un servicio */
.svc-intro {
  margin: 0 0 18px; padding: 16px 20px;
  border-radius: 12px; background: #e9e4dd;
  font-size: 17px; line-height: 1.45; letter-spacing: -0.02em; max-width: 760px;
}
.svc-intro strong { font-weight: 600; }
@media (max-width: 720px) { .svc-intro { font-size: 15px; padding: 14px 16px; } }
