/* ==========================================================
   Mapple Agency — styles.css
   Paleta plana de marca: azul + magenta sobre blanco/negro.
   Secciones alternan claro/oscuro siguiendo el prototipo.
   ========================================================== */

:root {
  --blue: #1AA3DE;          /* botones y links sobre blanco */
  --blue-bright: #3EBFE7;   /* destacados sobre oscuro (color exacto del logo) */
  --magenta: #F51DB8;
  --ink: #0B0B10;           /* negro de secciones oscuras */
  --ink-soft: #14141B;      /* superficies elevadas sobre oscuro */
  --paper: #FFFFFF;
  --paper-soft: #F5F7FA;    /* fondo de cards sobre blanco */
  --text-dark: #16161D;
  --text-mute: #5A5F6B;
  --text-light: #EDEFF4;
  --text-light-mute: #A6ABB8;
  --line-dark: rgba(255,255,255,.1);
  --line-light: #E4E8EE;

  --font-display: "Poppins", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;

  --radius: 16px;
  --radius-pill: 999px;
  --container: 1180px;
  --header-h: 84px;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section-dark { background: var(--ink); color: var(--text-light); }
.section-light { background: var(--paper); color: var(--text-dark); }

.txt-blue { color: var(--blue); }
.section-dark .txt-blue { color: var(--blue-bright); }
.txt-magenta { color: var(--magenta); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-arrow { transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn:active { transform: scale(.97); }

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

.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-bright); box-shadow: 0 8px 24px rgba(62,191,231,.35); }

.btn-outline-magenta {
  border: 1.5px solid var(--magenta);
  color: #fff;
}
.section-light .btn-outline-magenta { color: var(--magenta); }
.btn-outline-magenta:hover { background: var(--magenta); color: #fff; box-shadow: 0 8px 24px rgba(245,29,184,.3); }

/* ---------- Encabezados de sección ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.01em;
}
.section-head { margin-bottom: 48px; }
.head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ==========================================================
   NAV
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000;
  border-bottom: 3px solid var(--magenta);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.45); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
}
.nav-logo img { width: 150px; height: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-light);
  padding-block: 6px;
  position: relative;
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--blue-bright);
  transition: right .25s ease;
}
.nav-link:hover { color: var(--blue-bright); }
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-cta { padding: 11px 22px; font-size: .9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 48px;
}

.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 24px;
}
.hero-sub {
  color: var(--text-light-mute);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Triángulos de acento (esquina derecha, como el prototipo) */
.hero-accents { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tri { position: absolute; }
.tri-blue {
  right: -140px; top: -60px;
  width: 480px; height: 620px;
  background: var(--blue-bright);
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
  opacity: .95;
}
.tri-magenta {
  right: -60px; bottom: -80px;
  width: 340px; height: 360px;
  background: var(--magenta);
  clip-path: polygon(100% 100%, 0 100%, 100% 0);
}

/* ----- Laptop (mockup en código) ----- */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.laptop { width: min(100%, 620px); filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
.laptop-screen {
  background: #17171d;
  border: 2px solid #2c2c35;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  padding: 14px 14px 0;
}
.laptop-base {
  height: 16px;
  background: linear-gradient(#3a3a44, #23232b);
  border-radius: 0 0 14px 14px;
  position: relative;
}
.laptop-base::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 110px; height: 6px;
  background: #17171d;
  border-radius: 0 0 8px 8px;
}

.mini-browser {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: #0e1e2c;
}
.mini-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1d2c3a;
  padding: 8px 12px;
}
.mb-dot { width: 8px; height: 8px; border-radius: 50%; background: #47586a; }
.mb-url {
  margin-left: 10px;
  font-size: 10px;
  color: #8fa3b5;
  background: #14222f;
  border-radius: 999px;
  padding: 2px 12px;
  letter-spacing: .02em;
}

/* Pantallas rotatorias: imágenes apiladas con crossfade (JS alterna .is-on) */
.mini-site { position: relative; aspect-ratio: 1440 / 774; overflow: hidden; }
.mini-site img,
.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity .9s ease;
}
.mini-site img.is-on,
.phone-screen img.is-on { opacity: 1; }

/* ----- Teléfono ----- */
.phone {
  position: absolute;
  right: -8px;
  bottom: -34px;
  width: clamp(140px, 12vw, 160px);
  background: #101016;
  border: 2px solid #2c2c35;
  border-radius: 26px;
  padding: 10px;
  box-shadow: 0 24px 44px rgba(0,0,0,.6);
}
.phone-notch {
  width: 64px; height: 14px;
  background: #000;
  border-radius: 999px;
  margin: 2px auto 8px;
}
.phone-screen {
  position: relative;
  aspect-ratio: 390 / 800;
  border-radius: 14px;
  overflow: hidden;
}

/* ==========================================================
   EMPRESAS QUE CONFÍAN
   ========================================================== */
.clients { padding: 48px 0; border-bottom: 1px solid var(--line-light); }
.clients-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 32px;
}
/* Carousel infinito: dos mitades idénticas, la pista se traslada -50% en bucle */
.clients-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.clients-track {
  display: flex;
  width: max-content;
  animation: clients-scroll 32s linear infinite;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }
@keyframes clients-scroll {
  to { transform: translateX(-50%); }
}
.clients-row {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
  flex: none;
}
.client {
  flex: none;
  text-align: center;
  color: #23252c;
  opacity: .75;
  transition: opacity .2s ease;
  line-height: 1.15;
}
.client:hover { opacity: 1; }
.client span { display: block; }
.client-logo {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(1) contrast(.9);
  transition: filter .2s ease;
}
.client:hover .client-logo { filter: none; }
.client small {
  display: block;
  font-size: .55rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-top: 3px;
  color: #5a5d66;
}
.cl-dreamcity span { font-family: Georgia, serif; font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; }
.cl-vistalomas span { font-family: Georgia, serif; font-size: 1.3rem; letter-spacing: .02em; }
.cl-miramar span { font-family: Georgia, serif; font-size: 1.2rem; letter-spacing: .3em; text-transform: uppercase; }
.cl-als span { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: .04em; }
.cl-eoe span { font-family: Georgia, serif; font-weight: 700; font-size: 1.6rem; letter-spacing: .12em; }
.cl-zonapaisa span { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1; }

/* ==========================================================
   SERVICIOS
   ========================================================== */
.services { padding: 96px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--paper-soft);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(18,30,50,.1);
  border-color: rgba(26,163,222,.35);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(62,191,231,.14);
  color: var(--blue);
  margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: .9rem; color: var(--text-mute); }

/* ==========================================================
   PROYECTOS
   ========================================================== */
.projects { padding: 96px 0; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(62,191,231,.45);
  box-shadow: 0 24px 48px rgba(0,0,0,.45);
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #101017;
}
.project-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .35s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.05); }
/* Velo inferior para dar profundidad y asiento al badge */
.project-thumb::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, rgba(8,8,12,.55));
  pointer-events: none;
}
.th-badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(8,8,12,.65);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  backdrop-filter: blur(4px);
}
.th-mono {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: .02em;
  color: #fff;
  position: relative;
  z-index: 1;
}
.th-tri {
  position: absolute;
  right: -20%; bottom: -30%;
  width: 75%; height: 75%;
  clip-path: polygon(100% 100%, 0 100%, 100% 0);
  opacity: .9;
}
.th-blue .th-tri { background: var(--blue-bright); }
.th-magenta .th-tri { background: var(--magenta); }
.th-blue::before, .th-magenta::before {
  content: "";
  position: absolute;
  left: -25%; top: -30%;
  width: 65%; height: 65%;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: .18;
}
.th-blue::before { background: var(--blue-bright); }
.th-magenta::before { background: var(--magenta); }

.project-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 22px 22px;
}
.project-meta-text h3 { font-size: 1.08rem; font-weight: 600; color: #fff; margin-bottom: 5px; letter-spacing: -.01em; }
.project-meta-text p { font-size: .88rem; color: var(--text-light-mute); line-height: 1.5; }
.project-meta-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tags li {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 500;
  color: var(--text-light-mute);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  white-space: nowrap;
}
.circle-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: .95rem;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.project-card:hover .circle-arrow,
.circle-arrow:hover { background: var(--blue-bright); border-color: var(--blue-bright); transform: translateX(3px); }

/* ==========================================================
   PROCESO
   ========================================================== */
.process { padding: 96px 0; }
.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}
.process-track::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 10%; right: 10%;
  height: 1.5px;
  background: var(--line-light);
}
.step { text-align: center; position: relative; }
.step-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--blue);
  color: var(--blue);
  margin-bottom: 18px;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.step:hover .step-icon { background: var(--blue); color: #fff; box-shadow: 0 10px 26px rgba(26,163,222,.35); }
.step-icon svg { width: 26px; height: 26px; }
.step h3 { font-size: .98rem; font-weight: 600; margin-bottom: 8px; }
.step h3 b { font-weight: 700; }
.step p { font-size: .85rem; color: var(--text-mute); max-width: 24ch; margin-inline: auto; }

/* ==========================================================
   CTA
   ========================================================== */
/* Tarjeta oscura sobre fondo claro que se solapa con el footer */
.cta { padding: 96px 0 0; }
.cta-card {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  padding: 56px;
  overflow: hidden;
  /* sombra oscura para la mitad sobre blanco + glow blanco sutil para la mitad sobre el footer */
  box-shadow:
    0 30px 60px rgba(10,15,25,.35),
    0 0 54px rgba(255,255,255,.14);
  margin-bottom: -72px;
}
.cta-card .txt-blue { color: var(--blue-bright); }
.cta-card .btn-outline-magenta { color: #fff; }
.cta-grid > * { position: relative; z-index: 1; }
.cta-tri { position: absolute; z-index: 0; }
.cta-tri-blue {
  top: -40px; right: -40px;
  width: 130px; height: 130px;
  background: var(--blue-bright);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.cta-tri-magenta {
  bottom: -40px; right: -40px;
  width: 130px; height: 130px;
  background: var(--magenta);
  clip-path: polygon(100% 100%, 0 100%, 100% 0);
}
.cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-grid > div:first-child { flex: 1 1 340px; }
.cta-sub { color: var(--text-light-mute); margin-top: 14px; font-size: .98rem; max-width: 48ch; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }
/* En desktop el footer (con logo) queda justo debajo de la tarjeta: sería redundante */
.cta-logo { display: none; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { padding: 144px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 24px;
}

.footer-brand img { width: 170px; height: auto; }
.footer-brand p {
  margin: 20px 0 24px;
  font-size: .9rem;
  color: var(--text-light-mute);
  max-width: 34ch;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer-col h4::after {
  content: "";
  display: block;
  width: 28px; height: 2px;
  border-radius: 2px;
  background: var(--magenta);
  margin-top: 8px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 4px; }
.footer-col ul a {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  padding-block: 6px;
  font-size: .9rem;
  color: var(--text-light-mute);
  transition: color .2s ease, transform .2s ease;
}
.footer-col ul a:hover { color: var(--blue-bright); transform: translateX(3px); }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; }

.socials { display: flex; gap: 14px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--text-light-mute);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.socials a:hover { color: var(--blue-bright); border-color: var(--blue-bright); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--text-light-mute);
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  transition: color .2s ease;
}
.to-top:hover { color: var(--blue-bright); }
.to-top span { transition: transform .2s ease; }
.to-top:hover span { transform: translateY(-3px); }

/* ==========================================================
   PÁGINA DE PROYECTO (proyecto.php)
   ========================================================== */
.ppage-hero { position: relative; overflow: hidden; padding: 64px 0 80px; }
.ppage-hero .tri-blue { width: 320px; height: 420px; right: -180px; top: -80px; }
.ppage-hero .tri-magenta { width: 220px; height: 240px; right: -80px; bottom: -100px; }
.ppage-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.ppage-hero-inner { position: relative; z-index: 2; max-width: 740px; }

/* Captura del proyecto en marco de navegador, como el mockup de la home */
.ppage-shot { filter: drop-shadow(0 26px 46px rgba(0,0,0,.5)); }
.ppage-shot .mini-browser {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
}
.ppage-shot-img { aspect-ratio: 1440 / 774; overflow: hidden; }
.ppage-shot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.ppage-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--text-light-mute);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .9rem;
  transition: color .2s ease;
}
.ppage-back:hover { color: var(--blue-bright); }
.ppage-title { font-size: clamp(2rem, 4vw, 3rem); }
.ppage-sub { color: var(--text-light-mute); margin-top: 14px; font-size: 1.08rem; }
.ppage-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ppage-tags li {
  border: 1px solid rgba(62,191,231,.35);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--blue-bright);
}
.ppage-hero .hero-actions { margin-top: 30px; }

.ppage-body { padding: 72px 0 96px; }
.ppage-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
  gap: 48px;
  align-items: start;
}
.ppage-cover {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  box-shadow: 0 24px 48px rgba(18,30,50,.12);
  margin-bottom: 36px;
}
.ppage-cover img { width: 100%; display: block; }
/* Descripción en tarjeta oscura: mismo lenguaje que la tarjeta del CTA */
.ppage-desc-card {
  background: var(--ink);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 24px 48px rgba(18,30,50,.14);
}
.ppage-desc-card h2 { font-size: 1.4rem; margin-bottom: 8px; color: #fff; }
.ppage-desc-card h2::after {
  content: "";
  display: block;
  width: 34px; height: 3px;
  border-radius: 3px;
  background: var(--magenta);
  margin: 10px 0 16px;
}
.ppage-desc-card p {
  color: var(--paper);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 68ch;
}
.ppage-desc-card p:last-child { margin-bottom: 0; }

/* Viñetas de marca (líneas que empiezan con "- " en el panel) */
.ppage-list { margin: 4px 0 18px; display: flex; flex-direction: column; gap: 10px; }
.ppage-list:last-child { margin-bottom: 0; }
.ppage-list li {
  position: relative;
  padding-left: 32px;
  color: var(--paper);
  font-size: 1.02rem;
  line-height: 1.6;
}
.ppage-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background-color: rgba(62,191,231,.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233EBFE7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}

.ppage-meta {
  background: var(--paper-soft);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  padding: 26px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.ppage-meta h3 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.ppage-meta h3::after {
  content: "";
  display: block;
  width: 28px; height: 2px;
  border-radius: 2px;
  background: var(--magenta);
  margin-top: 8px;
}
.ppage-meta dt {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-mute);
  margin-top: 16px;
}
.ppage-meta dd {
  margin: 3px 0 0;
  font-size: .95rem;
  overflow-wrap: anywhere;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-light);
}
.ppage-meta dd:last-of-type { padding-bottom: 0; border-bottom: 0; }
.ppage-meta dd a { color: var(--blue); }
.ppage-meta dd a:hover { text-decoration: underline; }
.ppage-cta-btn { margin-top: 24px; width: 100%; justify-content: center; }

.ppage-gallery-title { font-size: 1.4rem; margin: 56px 0 20px; }
.ppage-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ppage-gallery figure {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  background: var(--paper-soft);
}
.ppage-gallery img { width: 100%; display: block; }

/* Imágenes ampliables + lightbox */
[data-lightbox] { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(5,5,8,.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s ease;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,.12); }

/* Grid de 3 para "Otros proyectos" */
.projects-grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .ppage-hero { padding: 40px 0 56px; }
  .ppage-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .ppage-body { padding: 56px 0 72px; }
  .ppage-grid { grid-template-columns: 1fr; gap: 32px; }
  .ppage-desc-card { padding: 26px 22px; }
  .ppage-meta { position: static; }
  .ppage-gallery { grid-template-columns: 1fr; }
}

/* ==========================================================
   PÁGINAS INTERNAS (servicios, proyectos, nosotros, contacto)
   ========================================================== */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.page-hero .tri-blue { width: 340px; height: 460px; right: -190px; top: -100px; }
.page-hero .tri-magenta { width: 230px; height: 250px; right: -90px; bottom: -110px; }
.page-hero-inner { position: relative; z-index: 2; max-width: 780px; }
.page-hero-inner h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero-sub { color: var(--text-light-mute); margin-top: 18px; font-size: 1.05rem; max-width: 60ch; }

/* ----- Servicios: parrilla-resumen (cards enlazadas) ----- */
.svc-overview { padding: 88px 0 64px; background: var(--paper-soft); }
.svc-overview-card { display: flex; flex-direction: column; }
.svc-overview-card p { flex-grow: 1; }
.svc-overview-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  color: var(--blue);
}
.svc-overview-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.svc-overview-card:hover .svc-overview-link svg { transform: translateX(4px); }
/* En desktop ancho: las 6 cards en una sola fila (contenedor ampliado) */
@media (min-width: 1360px) {
  .svc-overview-wide { max-width: 1680px; }
  .svc-overview .services-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .svc-overview-card { padding: 30px 18px; }
  .svc-overview-card .service-icon { width: 58px; height: 58px; margin-bottom: 16px; }
  .svc-overview-card .service-icon svg { width: 26px; height: 26px; }
  .svc-overview-card h3 { font-size: clamp(.85rem, .95vw, 1.02rem); margin-bottom: 6px; white-space: nowrap; }
  .svc-overview-card p { font-size: .82rem; }
  .svc-overview-link { font-size: .82rem; margin-top: 14px; }
}

/* ----- Servicios: banners full-bleed (uno por servicio) ----- */
.svc-banner { scroll-margin-top: calc(var(--header-h) + 3px); }
.svc-banner--soft { background: var(--paper-soft); }
.svc-banner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: stretch;
}
.svc-banner--rev .svc-banner-visual { order: -1; }
.svc-banner-copy {
  min-width: 0;
  /* centrado horizontal (~660px) y vertical frente a la imagen */
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px max(24px, calc((100% - 660px) / 2));
}
.svc-banner-copy .btn { align-self: flex-start; }
.svc-banner-copy .section-title { font-size: clamp(1.8rem, 2.8vw, 2.6rem); margin-bottom: 18px; }
.svc-banner-lead { color: var(--text-mute); font-size: 1.1rem; max-width: 56ch; margin-bottom: 24px; }
.svc-banner-copy .check-list { margin-bottom: 30px; }
.svc-banner-copy .check-list li { font-size: 1.02rem; }
/* Imagen a todo el ancho de la columna, completa (la altura la da la imagen) */
.svc-banner-visual {
  display: flex; align-items: center;
}
.svc-banner-visual img {
  width: 100%; height: auto;
}
/* Placeholder de marca mientras no exista assets/img/svc-<id>.jpg */
.svc-banner-ph {
  position: relative;
  width: 100%;
  align-self: stretch;
  min-height: 420px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.svc-banner-ph > svg { width: 120px; height: 120px; color: var(--blue-bright); }
.svc-ph-tri { position: absolute; }
.svc-ph-tri--blue {
  top: 0; right: 0;
  width: 150px; height: 150px;
  background: var(--blue-bright);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.svc-ph-tri--magenta {
  bottom: 0; left: 0;
  width: 150px; height: 150px;
  background: var(--magenta);
  clip-path: polygon(0 100%, 100% 100%, 0 0);
}

/* Lista con checks para fondos claros */
.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  max-width: 680px;
}
.check-list li { position: relative; padding-left: 30px; font-size: .95rem; color: var(--text-dark); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background-color: rgba(26,163,222,.13);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231AA3DE' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ----- Página de proyectos ----- */
.projects-page { padding: 0 0 96px; }
.projects-empty { color: var(--text-light-mute); }

/* ----- Nosotros ----- */
.about { padding: 96px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-copy .section-title { margin-bottom: 20px; }
.about-copy > p { color: var(--text-mute); margin-bottom: 14px; max-width: 58ch; }
.about-stats { display: flex; gap: 44px; margin-top: 30px; flex-wrap: wrap; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
}
.stat span { font-size: .85rem; color: var(--text-mute); }
.about-visual {
  position: relative;
  aspect-ratio: 1;
}
/* Collage de proyectos reales flotando sobre el fondo claro */
.about-collage { position: absolute; inset: 0; z-index: 2; }
.ac-shot {
  position: absolute;
  width: 70%;
  border-radius: 12px;
  overflow: hidden;
  background: #0e1e2c;
  border: 1px solid rgba(18,30,50,.1);
}
.ac-shot .mini-browser-bar { border-radius: 12px 12px 0 0; }
.ac-shot img { width: 100%; height: auto; display: block; }
.ac-shot--1 {
  top: 0; left: 2%;
  transform: rotate(-5deg);
  z-index: 1;
}
.ac-shot--2 {
  top: 27%; right: 2%;
  transform: rotate(4deg);
  z-index: 2;
}
.ac-shot--3 {
  bottom: 0; left: 8%;
  transform: rotate(-3deg);
  z-index: 3;
}

/* ----- Valores (fondo oscuro) ----- */
.values { padding: 96px 0; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card {
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease;
}
.value-card:hover { transform: translateY(-6px); border-color: rgba(62,191,231,.4); }
.value-card .service-icon { background: rgba(62,191,231,.12); color: var(--blue-bright); }
.value-card h3 { font-size: 1.02rem; color: #fff; margin-bottom: 8px; }
.value-card p { font-size: .88rem; color: var(--text-light-mute); }

/* ==========================================================
   NOSOTROS — secciones adicionales
   ========================================================== */

/* ----- Hero: chips de destacados ----- */
.about-hero-highlights {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px;
}
.about-hero-highlights li {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  color: var(--text-light);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-dark);
  padding: 9px 16px; border-radius: var(--radius-pill);
}
.about-hero-highlights svg { width: 16px; height: 16px; color: var(--blue-bright); }

/* ----- Por qué elegirnos (oscuro) ----- */
.why { padding: 96px 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card {
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s ease, border-color .25s ease;
}
.why-card:hover { transform: translateY(-6px); border-color: rgba(245,29,184,.4); }
.why-card .service-icon { background: rgba(245,29,184,.12); color: var(--magenta); margin-bottom: 20px; }
.why-card h3 { font-size: 1.05rem; color: #fff; margin-bottom: 10px; }
.why-card p { font-size: .9rem; color: var(--text-light-mute); }
.why-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ----- FAQ (acordeón) ----- */
.faq { padding: 96px 0; }
.faq-inner { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--paper-soft);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 4px 26px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: rgba(26,163,222,.4); box-shadow: 0 12px 30px rgba(18,30,50,.07); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  cursor: pointer; list-style: none;
  padding: 20px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--text-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { flex-shrink: 0; width: 20px; height: 20px; color: var(--blue); transition: transform .25s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { color: var(--text-mute); padding: 0 0 22px; max-width: 68ch; }

/* ----- Soluciones para mypimes (banner full-bleed) ----- */
.mypime { background: var(--paper); }
.mypime-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  align-items: stretch;
}
.mypime-copy {
  min-width: 0;
  /* centrado horizontal (~800px) y vertical frente a la imagen */
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px max(24px, calc((100% - 800px) / 2)) 64px;
}
.mypime-copy .mypime-badge { align-self: flex-start; }
.mypime-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 10px 20px; border-radius: var(--radius-pill); margin-bottom: 24px;
}
.mypime-badge svg { width: 18px; height: 18px; }
.mypime-copy .section-title { font-size: clamp(2rem, 3.2vw, 3rem); margin-bottom: 18px; }
.mypime-lead { color: var(--text-mute); font-size: 1.16rem; max-width: 52ch; margin-bottom: 20px; }
.mypime-lead::after {
  content: ""; display: block;
  width: 60px; height: 3px; margin-top: 24px;
  background: var(--blue);
}

.mypime-features {
  display: grid; grid-template-columns: repeat(7, 1fr);
  padding: 30px 0; margin-bottom: 34px;
}
.mypime-features li {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; padding: 0 8px;
  min-width: 0;
}
.mypime-features li + li { border-left: 1px solid var(--line-light); }
/* Entre 901 y 1550px la columna de texto no da para 7 iconos en fila: 4 + 3 */
@media (min-width: 901px) and (max-width: 1550px) {
  .mypime-features { grid-template-columns: repeat(4, 1fr); gap: 26px 0; }
  .mypime-features li:nth-child(5) { border-left: 0; }
}
.mp-ficon { display: inline-flex; color: var(--blue); }
.mp-ficon svg { width: 46px; height: 46px; }
.mp-flabel { font-size: .92rem; line-height: 1.32; color: var(--text-mute); }
.mp-flabel b { display: block; font-family: var(--font-display); font-size: 1.08rem; color: var(--text-dark); }

.mypime-foot { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.mypime-highlight {
  display: flex; align-items: center; gap: 16px;
  background: var(--blue); color: #fff;
  border-radius: var(--radius); padding: 20px 26px;
}
.mypime-highlight svg { width: 34px; height: 34px; flex-shrink: 0; }
.mypime-highlight p { font-family: var(--font-display); font-weight: 600; line-height: 1.3; font-size: 1.08rem; }
.mypime-highlight span { color: #FFC24B; }
.mypime-checks { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 24px; max-width: none; flex: 1; min-width: 250px; }
.mypime-checks li { font-size: .98rem; }

/* Imagen a todo el ancho de la columna, completa (la altura la da la imagen) */
.mypime-visual {
  display: flex; align-items: center;
}
.mypime-visual img {
  width: 100%; height: auto;
}

/* Franja inferior oscura */
.mypime-strip { background: var(--ink); color: var(--text-light); padding: 18px 0; }
.mypime-strip-inner { display: flex; align-items: center; justify-content: center; gap: 14px; }
.mypime-strip-inner > svg { width: 22px; height: 22px; flex-shrink: 0; }
.mypime-strip-inner p { font-size: 1.02rem; }
.mp-flag { width: 28px; height: 17px; flex-shrink: 0; border-radius: 2px; }

/* ----- Misión y visión (claro) ----- */
.mv { padding: 96px 0; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mv-card {
  position: relative; overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid var(--line-light);
  border-radius: 24px;
  padding: 42px 40px;
}
.mv-card .mv-bar { position: absolute; left: 0; top: 0; width: 5px; height: 100%; }
.mv-card--mission .mv-bar { background: var(--blue); }
.mv-card--vision .mv-bar { background: var(--magenta); }
.mv-card--vision .service-icon { background: rgba(245,29,184,.12); color: var(--magenta); }
.mv-card .service-icon { margin-bottom: 20px; }
.mv-card h2 { font-size: 1.4rem; margin-bottom: 14px; }
.mv-card p { color: var(--text-mute); font-size: 1rem; max-width: 52ch; }

/* ----- Industrias que servimos (claro suave) ----- */
.industries { padding: 96px 0; background: var(--paper-soft); }
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ind-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ind-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11,11,16,.08); }
.ind-card .service-icon { width: 52px; height: 52px; margin-bottom: 0; flex-shrink: 0; }
.ind-card .service-icon svg { width: 24px; height: 24px; }
.ind-card h3 { font-size: 1rem; margin-bottom: 3px; }
.ind-card p { font-size: .84rem; color: var(--text-mute); }

@media (max-width: 900px) {
  .why { padding: 64px 0; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .why-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .mv { padding: 64px 0; }
  .mv-grid { grid-template-columns: 1fr; gap: 18px; }
  .mv-card { padding: 32px 28px; }
  .industries { padding: 64px 0; }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .svc-overview { padding: 64px 0 32px; }
  .faq { padding: 64px 0; }
  .mypime-grid { grid-template-columns: 1fr; }
  .mypime-copy { padding: 64px 24px 40px; }
  .mypime-features { grid-template-columns: repeat(4, 1fr); gap: 24px 0; }
  .mypime-features li:nth-child(5) { border-left: 0; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-grid--3 { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .about-hero-highlights li { font-size: .82rem; padding: 8px 13px; }
  .faq-item { padding: 2px 18px; }
  .faq-item summary { font-size: .98rem; padding: 16px 0; }
  .mypime-features { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .mypime-features li:nth-child(odd) { border-left: 0; }
  .mypime-foot { gap: 18px; }
  .mypime-highlight { width: 100%; }
  .mypime-checks { grid-template-columns: 1fr; }
  .mypime-strip-inner { gap: 12px; }
  .mypime-strip-inner p { font-size: .88rem; }
}

/* ----- Contacto ----- */
.contact { padding: 88px 0 96px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2, .contact-form-card h2 { font-size: 1.35rem; margin-bottom: 24px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(62,191,231,.14);
  color: var(--blue);
}
.ci-icon svg { width: 20px; height: 20px; }
.contact-list b {
  display: block;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-mute);
  margin-bottom: 3px;
}
.contact-list a { color: var(--text-dark); transition: color .2s ease; }
.contact-list a:hover { color: var(--blue); }
.contact-map { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-light); }
.contact-map iframe { width: 100%; height: 260px; border: 0; display: block; }

.contact-form-card {
  background: var(--paper-soft);
  border: 1px solid var(--line-light);
  border-radius: 20px;
  padding: 34px;
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { margin-bottom: 16px; }
.cf-field label {
  display: block;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.cf-field input, .cf-field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: .95rem;
  color: var(--text-dark);
}
.cf-field input:focus, .cf-field textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.cf-field textarea { min-height: 150px; resize: vertical; }
.cf-submit { width: 100%; justify-content: center; border: 0; cursor: pointer; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-flash {
  background: rgba(26,163,222,.1);
  border: 1px solid rgba(26,163,222,.35);
  color: var(--blue);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: .92rem;
}
.form-flash a { text-decoration: underline; }
.form-flash-error {
  background: rgba(245,29,184,.07);
  border-color: rgba(245,29,184,.35);
  color: #c2128f;
}

@media (max-width: 900px) {
  .page-hero { padding: 48px 0 64px; }
  .svc-banner-grid { grid-template-columns: 1fr; }
  .svc-banner--rev .svc-banner-visual { order: 0; }
  .svc-banner-copy { padding: 56px 24px 40px; }
  .svc-banner-ph { min-height: 0; aspect-ratio: 16 / 9; }
  .svc-banner-ph > svg { width: 84px; height: 84px; }
  .check-list { grid-template-columns: 1fr; }
  .projects-page { padding-bottom: 64px; }
  .about { padding: 64px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 420px; width: 100%; margin-inline: auto; }
  .about-stats { gap: 28px; }
  .values { padding: 64px 0; }
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .contact { padding: 56px 0 72px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-form-card { padding: 24px 20px; }
}

@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
}

/* ==========================================================
   BOTTOM NAV (accesos rápidos en móvil)
   ========================================================== */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  justify-content: space-around;
  align-items: stretch;
  background: rgba(11,11,16,.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-dark);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform .3s ease;
}
.bottom-nav.is-visible { transform: none; }

.bnav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 60px;
  padding: 6px 8px;
  color: var(--text-light-mute);
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 500;
  transition: color .2s ease;
}
.bnav-link svg { width: 22px; height: 22px; }
.bnav-link.is-active { color: var(--blue-bright); }
.bnav-link.is-active::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--magenta);
}

/* ==========================================================
   Botón flotante de WhatsApp
   ========================================================== */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-label {
  background: #fff;
  color: var(--text-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  white-space: nowrap;
}
.wa-label b { color: #1eb658; }
.wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
  transition: transform .2s ease;
  animation: waPulse 2.6s ease-out infinite;
}
.wa-icon svg { width: 40px; height: 40px; }
.wa-float:hover .wa-icon { transform: scale(1.08); }
.wa-float:active .wa-icon { transform: scale(.96); }
@keyframes waPulse {
  0%   { box-shadow: 0 10px 28px rgba(0,0,0,.3), 0 0 0 0 rgba(37,211,102,.45); }
  70%  { box-shadow: 0 10px 28px rgba(0,0,0,.3), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 28px rgba(0,0,0,.3), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 900px) {
  /* por encima de la barra de accesos rápidos móvil */
  .wa-float {
    right: 16px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .wa-label { font-size: .85rem; padding: 10px 16px; }
  .wa-icon { width: 60px; height: 60px; }
  .wa-icon svg { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-icon { animation: none; }
}

/* ==========================================================
   Animaciones de aparición (scroll reveal)
   ========================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }
.reveal:nth-child(5) { transition-delay: .28s; }
.reveal:nth-child(6) { transition-delay: .35s; }

.hero-copy > * { opacity: 0; transform: translateY(20px); animation: rise .7s ease forwards; }
.hero-copy .hero-sub { animation-delay: .12s; }
.hero-copy .hero-actions { animation-delay: .24s; }
.hero-mockup { opacity: 0; transform: translateY(28px); animation: rise .8s ease .2s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-copy > *, .hero-mockup { opacity: 1; transform: none; animation: none; transition: none; }
  /* Las pantallas del mockup cambian al instante, sin fundido */
  .mini-site img, .phone-screen img { transition: none; }
  /* Sin marquee: fila estática desplazable, sin duplicado */
  .clients-track { animation: none; width: auto; }
  .clients-track .clients-row[aria-hidden] { display: none; }
  .clients-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .clients-track > .clients-row { width: 100%; justify-content: space-between; padding-right: 0; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1080px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process-track::before { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .bottom-nav { display: flex; }
  /* La barra fija tapa ~70px al final de la página */
  .site-footer { padding-bottom: 100px; }

  .services, .projects, .process { padding: 64px 0; }
  .cta { padding: 64px 0 0; }
  .cta-card { padding: 32px 24px; border-radius: 20px; margin-bottom: -56px; }
  .site-footer { padding-top: 112px; }
  .section-head { margin-bottom: 36px; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: calc(var(--header-h) + 3px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #000;
    border-bottom: 1px solid var(--line-dark);
    padding: 16px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { padding: 12px 4px; font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .nav-cta { justify-content: center; margin-top: 12px; }

  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-title { font-size: clamp(2.1rem, 8vw, 3.3rem); }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 420px; }
  .hero-actions .btn { justify-content: center; }
  .hero-mockup { padding-right: 12px; }
  .tri-blue { right: -220px; top: auto; bottom: -40px; height: 480px; }
  .tri-magenta { right: -120px; bottom: -140px; }

  .clients-row { gap: 48px; padding-right: 48px; }
  .clients-track { animation-duration: 26s; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .projects-grid { grid-template-columns: 1fr; }

  /* Proyectos como filas horizontales */
  .project-card { flex-direction: row; align-items: center; padding: 10px; border-radius: 16px; }
  .project-thumb { width: 96px; flex-shrink: 0; aspect-ratio: 1 / 1; border-radius: 12px; }
  .project-thumb::after { display: none; }
  .th-badge { display: none; }
  .th-mono { font-size: 1.4rem; }
  .project-meta {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 6px 4px 6px 16px;
  }
  .project-meta-text { flex: 1; }
  .project-meta-text h3 { font-size: 1rem; }
  .project-meta-text p { font-size: .85rem; }
  .project-meta-foot { margin-top: 0; }
  .card-tags { display: none; }
  .circle-arrow { width: 44px; height: 44px; }

  .cta-grid { flex-direction: column; align-items: flex-start; position: relative; }
  .cta-grid .section-title { padding-right: 96px; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { justify-content: center; }
  /* El isotipo ocupa la esquina superior derecha; el triángulo azul sobraría ahí */
  .cta-tri-blue { display: none; }

  /* Isotipo grande a la derecha (recorte del logo, como el prototipo móvil) */
  .cta-logo {
    display: block;
    position: absolute;
    top: 24px; right: 20px;
    width: 80px;
    aspect-ratio: 330 / 287;
    height: auto;
    object-fit: cover;
    object-position: left center;
    /* muestra solo las montañas del wordmark */
    overflow: hidden;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-contact ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
  .socials a { width: 44px; height: 44px; }
  .socials svg { width: 19px; height: 19px; }
  .footer-bottom { flex-direction: column-reverse; text-align: center; gap: 8px; }
}

@media (max-width: 560px) {
  .clients { padding: 40px 0; }
  .clients-row { gap: 40px; padding-right: 40px; }
  .clients-track { animation-duration: 22s; }

  /* Servicios: tarjetas horizontales legibles (icono izquierda + texto) */
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 16px;
    align-items: start;
    text-align: left;
    padding: 18px 16px;
    border-radius: 14px;
  }
  .service-icon { grid-row: 1 / 3; width: 52px; height: 52px; margin-bottom: 0; }
  .service-icon svg { width: 24px; height: 24px; }
  .service-card h3 { font-size: .98rem; margin-bottom: 4px; }
  .service-card p { font-size: .85rem; line-height: 1.5; }

  /* Proceso: icono a la izquierda + conector vertical punteado */
  .process-track { grid-template-columns: 1fr; row-gap: 34px; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; }
  .step-icon {
    grid-row: 1 / 3;
    width: 56px; height: 56px;
    margin-bottom: 0;
    position: relative;
  }
  .step-icon svg { width: 22px; height: 22px; }
  .step:not(:last-child) .step-icon::after {
    content: "";
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 2px; height: 22px;
    background: repeating-linear-gradient(to bottom, var(--blue) 0 6px, transparent 6px 12px);
    border-radius: 2px;
  }
  .step p { margin-inline: 0; max-width: none; }

  .phone {
    right: 0; bottom: -14px;
    width: 106px;
    border-radius: 20px;
    padding: 7px;
  }
  .phone-notch { width: 44px; height: 10px; margin-bottom: 6px; }
  .phone-screen { border-radius: 11px; }
  .hero { padding: 40px 0 64px; }
  .hero-grid { gap: 48px; }

  /* En listas de una columna el escalonado solo retrasa; animación corta y directa */
  .reveal { transform: translateY(14px); transition-duration: .4s; }
  .reveal:nth-child(n) { transition-delay: 0s; }

  /* Footer: marca centrada como cabecera, grupos a lo ancho con separadores */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-grid > * { grid-column: auto; }
  .footer-brand { text-align: center; }
  .footer-brand img { width: 150px; margin-inline: auto; }
  .footer-brand p { margin: 16px auto 20px; }
  .socials { justify-content: center; }

  .footer-col { border-top: 1px solid var(--line-dark); padding-top: 24px; }
  .footer-col h4 { margin-bottom: 12px; }
  /* Items en 2 columnas dentro de cada grupo: alturas equilibradas */
  .footer-col ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
  .footer-col ul a { padding-block: 8px; font-size: .92rem; }
  /* Contacto: una sola columna, las direcciones no caben partidas */
  .footer-contact ul { grid-template-columns: 1fr; }

  .to-top {
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-pill);
    padding: 12px 26px;
  }
  .footer-bottom { gap: 14px; }
}
