/* ============================================================
   Mor Digital: estilos (mobile-first)
   ============================================================ */

:root {
  --bg: #111111;
  --surface: #171717;
  --surface-2: #1d1d1d;
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(201, 162, 39, 0.35);
  --text: #f2f2f0;
  --muted: #a6a39b;
  --gold: #c9a227;
  --gold-light: #e8cb6a;
  --gold-dark: #9c7a17;
  --gold-gradient: linear-gradient(135deg, #f0d77f 0%, #c9a227 45%, #a5801a 100%);
  --wa: #25d366;
  --wa-hover: #3ee07c;
  --wa-ink: #0a2915;

  --font-title: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --gutter: 16px;
  --header-h: 60px;
  --section-y: 72px;
}

@media (min-width: 400px) {
  :root { --gutter: 20px; }
}
@media (min-width: 960px) {
  :root { --gutter: 32px; --section-y: 112px; --header-h: 68px; }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-title);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }

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

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }
/* El <main> recibe el foco del link "Saltar al contenido" (tabindex="-1"): sin contorno */
main:focus { outline: none; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #111;
  box-shadow: 0 6px 20px -8px rgba(201, 162, 39, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(201, 162, 39, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35); }

.btn-ghost {
  border-color: var(--border-gold);
  color: var(--text);
  background: rgba(201, 162, 39, 0.04);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(201, 162, 39, 0.1); }
.btn-ghost .icon { color: var(--gold); }

/* WhatsApp: verde de la marca con texto verde muy oscuro (contraste 7,9:1, legible al sol) */
.btn-wa {
  background: var(--wa);
  color: var(--wa-ink);
  box-shadow: 0 6px 20px -8px rgba(37, 211, 102, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-wa:hover { background: var(--wa-hover); transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(37, 211, 102, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { min-height: 58px; padding: 16px 30px; font-size: 1.08rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 17, 17, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: none;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  display: inline-flex;
  color: var(--gold);
  border: 1px solid var(--border-gold);
}
.nav .nav-cta:hover { color: var(--gold-light); border-color: var(--gold); }

@media (min-width: 760px) {
  .nav a { display: inline-flex; }
}

/* ---------- Inicio ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: 36px 56px;
}

/* Resplandor detrás del celular */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 30% at 50% 78%, rgba(201, 162, 39, 0.1), transparent 70%);
}

/* Laberinto del logo, cortado por el borde */
.hero-maze {
  position: absolute;
  z-index: -1;
  top: -150px;
  right: -310px;
  width: 640px;
  max-width: none;
  height: auto;
  opacity: 0.05;
  pointer-events: none;
}

/* Celular: título y frase, botones y después el chat (los botones entran en la primera pantalla) */
.hero-grid {
  display: grid;
  gap: 28px;
  grid-template-areas:
    "copy"
    "actions"
    "demo";
}
.hero-copy { grid-area: copy; }
.hero-demo { grid-area: demo; }
.hero-actions { grid-area: actions; }

.hero h1 {
  font-size: clamp(1.6rem, 7.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.hero h1 .h1-line { display: block; white-space: nowrap; }
.hero h1 .hl { color: var(--gold); }

.hero-lead {
  margin-top: 18px;
  max-width: 40ch;
  font-size: clamp(1.05rem, 3.4vw, 1.22rem);
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions { display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 480px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}

/* Escritorio: texto y botones a la izquierda, celular a la derecha */
@media (min-width: 960px) {
  .hero h1 { font-size: clamp(2.4rem, 4.1vw, 2.9rem); }
  .hero {
    min-height: calc(100svh - var(--header-h));
    display: flex;
    align-items: center;
    padding-block: 48px 64px;
  }
  .hero::before {
    background: radial-gradient(ellipse 40% 55% at 76% 50%, rgba(201, 162, 39, 0.11), transparent 70%);
  }
  .hero-maze {
    top: 50%;
    right: -430px;
    width: 1040px;
    transform: translateY(-50%);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas:
      ".       demo"
      "copy    demo"
      "actions demo"
      ".       demo";
    column-gap: 56px;
    row-gap: 36px;
  }
}

/* ---------- Demo: el recorrido de un cliente (negocio ficticio) ---------- */

.hero-demo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phone {
  --island: 44px; /* alto reservado arriba para la isla */
  position: relative;
  width: clamp(250px, 66vw, 300px);
  aspect-ratio: 300 / 610;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(150deg, #2c2c2c 0%, #0e0e0e 42%, #1d1d1d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(201, 162, 39, 0.2),
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 90px -25px rgba(201, 162, 39, 0.22);
}

/* Isla superior */
.phone::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: 19px;
  left: 50%;
  width: 84px;
  height: 24px;
  border-radius: 14px;
  background: #000;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #fff;
  font-family: var(--font-body);
}

/* Cada paso es una pantalla apilada; solo una visible */
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(14px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s 0.5s;
}
.scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s;
}

/* Toque del dedo */
.tap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(26, 115, 232, 0.28);
  opacity: 0;
  pointer-events: none;
}
.is-tapping .tap { animation: tap 0.6s ease-out both; }
.is-tapping { transform: scale(0.98); }

/* a) Búsqueda */
.scene-search { background: #fff; color: #202124; align-items: center; padding: calc(var(--island) + 22%) 16px 0; }
.g-logo { font-family: "Segoe UI", Arial, sans-serif; font-size: 34px; font-weight: 600; letter-spacing: -1px; margin-bottom: 18px; }
.b { color: #4285f4; } .r { color: #ea4335; } .y { color: #fbbc05; } .g { color: #34a853; }
.g-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #dfe1e5;
  border-radius: 20px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.18);
  font-size: clamp(11.5px, 3.2vw, 13.5px);
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
}
.g-icon { width: 15px; height: 15px; flex: none; color: #9aa0a6; }
.g-caret { width: 1.5px; height: 17px; margin-left: -6px; background: #1a73e8; animation: caret 1s steps(1) infinite; }
.g-hints { display: grid; gap: 9px; width: 100%; margin-top: 22px; padding-inline: 8px; }
.g-hints span { height: 8px; border-radius: 4px; background: #f1f3f4; }
.g-hints span:nth-child(2) { width: 80%; }
.g-hints span:nth-child(3) { width: 60%; }

/* b) Resultados */
.scene-results { background: #fff; color: #202124; padding-top: var(--island); }
.g-top { display: flex; align-items: center; gap: 8px; padding: 4px 12px 8px; }
.g-mini { font-family: "Segoe UI", Arial, sans-serif; font-size: 20px; font-weight: 700; }
.g-box-sm { height: 32px; font-size: clamp(10.5px, 2.9vw, 12px); padding: 0 12px; box-shadow: none; }
.g-tabs { display: flex; gap: 14px; padding: 0 14px; border-bottom: 1px solid #ebebeb; font-size: 11px; color: #70757a; }
.g-tabs span { padding: 6px 0; }
.g-tabs .is-on { color: #1a73e8; box-shadow: inset 0 -2px 0 #1a73e8; }
.g-results { display: grid; gap: 8px; padding: 10px; }
.g-result {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 11px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s ease;
}
.g-result.is-top { background: #fffaf0; box-shadow: inset 0 0 0 1.5px #c9a227; }
.g-site { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #4d5156; }
.g-fav { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #16202a; color: #8fc9e8; font-size: 9px; font-weight: 700; }
.g-title { font-size: 15px; font-weight: 500; color: #1a0dab; }
.g-rating { font-size: 11px; color: #70757a; }
.g-stars { color: #f9ab00; letter-spacing: 1px; }
.g-snippet { font-size: 11px; color: #4d5156; }
.g-result.is-ghost { gap: 6px; }
.g-result.is-ghost span { height: 7px; border-radius: 4px; background: #f1f3f4; }
.g-result.is-ghost span:nth-child(1) { width: 45%; }
.g-result.is-ghost span:nth-child(2) { width: 75%; height: 10px; background: #e8eaed; }
.g-result.is-ghost span:nth-child(3) { width: 90%; }

/* c) Página del negocio */
.scene-site { background: #f4f6f8; color: #16202a; }
.site-cover {
  position: relative;
  flex: 0 0 40%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 30%, rgba(143, 201, 232, 0.28), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 26px),
    linear-gradient(160deg, #1d2c3a, #0d151d);
  overflow: hidden;
}
.site-icon { width: 58px; height: 58px; color: #8fc9e8; }
.site-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.site-name { font-family: var(--font-title); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.site-sub { font-size: 11.5px; color: #5d6b78; }
.site-services { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 12.5px; }
.site-services li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid #dde3e8; }
.site-services li::after { content: "›"; color: #8a97a3; font-size: 15px; line-height: 1; }
.site-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  margin-top: auto;
  border-radius: 10px;
  background: #16202a;
  color: #f4f6f8;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  transition: transform 0.15s ease;
}
.site-cta svg { width: 16px; height: 16px; color: #25d366; }
.site-cta .tap { background: rgba(255, 255, 255, 0.3); }

/* d) WhatsApp */
.scene-wa { background: #0b141a; color: #e9edef; }
.chat-header { display: flex; align-items: center; gap: 8px; padding: calc(var(--island) + 6px) 12px 10px 8px; background: #1f2c34; }
.chat-back { width: 20px; height: 20px; flex: none; color: #aebac1; }
.chat-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #16202a; color: #8fc9e8; font-size: 15px; font-weight: 700; }
.chat-contact { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.chat-contact strong { font-size: 14px; font-weight: 600; }
.chat-status { font-size: 11.5px; color: #8696a0; }
.chat-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 12px; }
.chat-day { padding: 4px 10px; border-radius: 7px; background: #182229; color: #8696a0; font-size: 11px; }
.chat-input { display: flex; align-items: flex-end; gap: 6px; padding: 6px 8px 16px; }
.chat-field {
  flex: 1;
  padding: 9px 14px;
  border-radius: 20px;
  background: #202c33;
  color: #e9edef;
  font-size: 13px;
  line-height: 1.35;
}
.chat-send { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: #00a884; color: #0b141a; }
.chat-send svg { width: 18px; height: 18px; }

.phone-caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
}
.phone-caption .icon { width: 1.05em; height: 1.05em; color: var(--gold); }

/* Pantallas chicas: celular al ~70% del ancho y pantalla de 420px de alto como máximo */
@media (max-width: 599px) {
  .phone { --island: 38px; width: 70vw; max-width: 300px; aspect-ratio: auto; height: 438px; border-radius: 40px; }
  .phone-screen { border-radius: 32px; }
  .phone::before { top: 16px; width: 72px; height: 20px; }
  .scene-search { padding-top: calc(var(--island) + 18%); }
  .g-logo { font-size: 30px; }
}

/* ---------- Separador con el laberinto ---------- */

.divider {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.22));
}
.divider::after { background: linear-gradient(90deg, rgba(201, 162, 39, 0.22), transparent); }
.divider img { width: 26px; height: 26px; opacity: 0.45; }

/* ---------- Secciones ---------- */

.section { padding-block: var(--section-y); }

.section-alt {
  background: linear-gradient(180deg, var(--bg) 0%, #141414 12%, #141414 88%, var(--bg) 100%);
}

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2,
.contact h2 { font-size: clamp(1.75rem, 6vw, 2.6rem); font-weight: 700; }
.section-lead { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Servicios ---------- */

/* 1 columna en celular, 2x2 en tablet, 4 en escritorio */
.services { display: grid; gap: 16px; }

@media (min-width: 680px) {
  .services { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1080px) {
  .services { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

/*
  Todas las tarjetas tienen la misma estructura en 7 filas:
  ícono / título / frase / punto 1 / punto 2 / punto 3 / punto 4.
  Con subgrid, esas filas se comparten entre las tarjetas de una misma fila de la grilla:
  títulos, frases y cada punto quedan a la misma altura, y si un punto ocupa 2 líneas
  el espacio se reparte entre los puntos en vez de quedar vacío al pie.
*/
.service-card {
  display: grid;
  grid-template-rows: auto auto auto auto auto auto auto;
  row-gap: 0;
  align-content: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
@supports (grid-template-rows: subgrid) {
  .service-card { grid-row: span 7; grid-template-rows: subgrid; }
  .service-points { grid-row: span 4; grid-template-rows: subgrid; }
}
@media (min-width: 1080px) {
  .service-card { padding: 24px 18px 26px; }
  .service-points { font-size: 0.9rem; }
  .service-points li { gap: 8px; }
}
.service-card:hover { border-color: var(--border-gold); }

/* Servicio principal: Páginas web */
.service-card.is-main {
  border-color: rgba(201, 162, 39, 0.55);
  background:
    radial-gradient(ellipse 90% 60% at 0% 0%, rgba(201, 162, 39, 0.12), transparent 70%),
    var(--surface);
  box-shadow: 0 24px 50px -30px rgba(201, 162, 39, 0.5);
}
.service-card.is-main h3 { font-size: 1.4rem; }

.service-icon {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
}
.service-icon svg { display: block; width: 34px; height: 34px; }

.service-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; align-self: end; }
.service-card p { color: var(--muted); }

.service-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
  align-content: start;
  font-size: 0.95rem;
  line-height: 1.45;
}
.service-points li { display: flex; gap: 10px; align-items: flex-start; }
.service-points svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--gold); }
.service-points strong { color: var(--text); font-weight: 600; }

/* ---------- Proyectos ---------- */

.projects { display: grid; gap: 20px; }

.projects-subtitle {
  font-size: clamp(1.3rem, 4.5vw, 1.6rem);
  font-weight: 600;
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.projects-subtitle::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-gold), transparent);
}

.projects-grid { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.project-card:hover { border-color: var(--border-gold); }

.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}
.project-card:hover .shot img { transform: scale(1.02); }

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}

/* Rubro: texto normal, chico y gris, debajo del título */
.project-rubro {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--muted);
}

.project-card h3 { font-size: 1.4rem; font-weight: 700; }
.project-card h3 .tag { color: var(--gold); font-weight: 600; }
.project-desc { color: var(--muted); margin-top: 8px; }

.includes {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}
.includes li { display: flex; gap: 10px; align-items: flex-start; }
.includes svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  color: var(--gold);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

/* Caso destacado */
.project-card.is-featured { border-color: var(--border-gold); box-shadow: 0 30px 60px -40px rgba(201, 162, 39, 0.45); }
.project-card.is-featured h3 { font-size: clamp(1.5rem, 5vw, 2rem); }
/* Celular: título y descripción, carrusel, puntos y links */
.project-card.is-featured {
  display: grid;
  grid-template-areas:
    "head"
    "media"
    "rest";
}
.is-featured .project-head { grid-area: head; padding: 24px 22px 20px; }
.is-featured .carousel { grid-area: media; border-block: 1px solid var(--border); }
.is-featured .project-rest {
  grid-area: rest;
  display: flex;
  flex-direction: column;
  padding: 6px 22px 26px;
}

/* Escritorio: carrusel a la izquierda; título, descripción, puntos y links a la derecha */
@media (min-width: 960px) {
  .project-card.is-featured {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "media head"
      "media rest";
  }
  .is-featured .project-head { padding: 36px 36px 0 32px; }
  .is-featured .project-rest { padding: 4px 36px 36px 32px; }
  .is-featured .carousel { border-block: 0; border-right: 1px solid var(--border); }
}

/* ---------- Carrusel ---------- */

.carousel { position: relative; background: var(--surface-2); min-width: 0; }

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
  position: relative;
}

.slide-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.slide-caption strong { font-family: var(--font-title); font-weight: 600; font-size: 1rem; }

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 16px 16px;
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.carousel-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-btn svg { width: 18px; height: 18px; }

.carousel-dots { display: flex; gap: 4px; }
.carousel-dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.carousel-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: width 0.25s ease, background-color 0.25s ease;
}
.carousel-dot[aria-current="true"]::before { width: 22px; background: var(--gold); }

.noscript-list { color: var(--muted); }
.noscript-list a { color: var(--gold); }

/* ---------- Cómo trabajamos ---------- */

.steps-wrap { position: relative; }

/* Trazo entre hexágonos: una pista tenue y la línea que se dibuja con el scroll */
.steps-trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.trace-track { fill: none; stroke: rgba(201, 162, 39, 0.14); stroke-width: 1.5; stroke-linejoin: round; }
.trace-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(201, 162, 39, 0.5));
}

.steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 40px;
}

.step { position: relative; min-height: 50px; padding-left: 70px; }

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 50px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
}
.step-num .hex { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.step-num polygon {
  fill: #151515;
  stroke: rgba(201, 162, 39, 0.55);
  stroke-width: 1.5;
  transition: fill 0.5s ease, stroke 0.5s ease;
}
.step-num > span { position: relative; transition: color 0.4s ease; }

/* Cuando el trazo llega, el hexágono se "enciende" con el dorado metálico del logo */
.step.is-reached .step-num polygon,
html:not(.js) .step-num polygon { fill: url(#g-gold); stroke: #f3dc86; }
.step.is-reached .step-num > span,
html:not(.js) .step-num > span { color: #111; }

.step h3 { font-size: 1.15rem; font-weight: 600; padding-top: 12px; margin-bottom: 6px; }
.step p { color: var(--muted); }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .step { padding: 74px 0 0; }
  .step h3 { padding-top: 0; }
}

/* ---------- Contacto ---------- */

.section-contact { padding-bottom: 40px; }

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 48px;
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(201, 162, 39, 0.12), transparent 70%),
    var(--surface);
  /* La caja de contacto respeta el margen lateral de la página */
  width: calc(100% - 2 * var(--gutter));
  max-width: 820px;
  padding-inline: 20px;
}

.contact .btn-lg { margin-top: 28px; width: 100%; max-width: 340px; }

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s ease;
}
.ig-link:hover { color: var(--gold); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: center; }
}

/* ---------- WhatsApp flotante ---------- */

.wa-float {
  position: fixed;
  right: 16px;
  bottom: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--wa-ink);
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.2s ease;
}
/* Se oculta cuando Contacto (o el pie) está en pantalla: ahí ya está el botón grande */
.wa-float.is-hidden { opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none; visibility: hidden; transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s 0.25s; }
.wa-float:hover { transform: scale(1.06); background: var(--wa-hover); }
.wa-float svg { width: 28px; height: 28px; }

@media (min-width: 960px) {
  .wa-float { right: 28px; bottom: 28px; }
}

/* ---------- Animaciones (solo sin "reducir movimiento") ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--delay, 0s);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  .hero-copy, .hero-demo, .hero-actions { animation: hero-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-demo { animation-delay: 0.12s; }
  .hero-actions { animation-delay: 0.22s; }

  @keyframes hero-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Demo del inicio (fuera del bloque de movimiento: el JS no la anima con "reducir movimiento") */
@keyframes tap {
  from { opacity: 1; transform: scale(0.3); }
  to { opacity: 0; transform: scale(2.4); }
}
@keyframes caret {
  50% { opacity: 0; }
}
