/* ==========================================================================
   Saaving Digital — Sistema de diseño (versión clara y optimista)
   La paleta vive en :root. Amarillo de marca #FFCC00 · negro #1B1C1F.
   ========================================================================== */

:root {
  --bg: #FFFDF7;
  --bg-2: #FFF6DA;
  --sky: #EAF5FF;
  --surface: #FFFFFF;
  --line: rgba(27, 28, 31, .1);
  --text: #1B1C1F;
  --muted: #5C606A;
  --accent: #FFCC00;
  --accent-2: #FFB800;
  --accent-ink: #7A5A00;            /* amarillo oscuro legible sobre blanco */
  --grad: linear-gradient(135deg, #FFDD33, var(--accent) 55%, var(--accent-2));
  --shadow: 0 24px 60px -24px rgba(27, 28, 31, .28);

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --header-h: 68px;
  --radius: 22px;
  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.5rem; border: 0; border-radius: 999px; cursor: pointer; background: var(--grad); color: var(--text); font: 600 1rem var(--font-head); text-decoration: none; box-shadow: 0 10px 26px -10px rgba(255, 184, 0, .8); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(255, 184, 0, .95); }
.btn--sm { min-height: 42px; padding: .5rem 1.1rem; font-size: .92rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; color: var(--muted); font: 600 .82rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 204, 0, .25); }
.lead { max-width: 60ch; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); }

/* ---------- Progreso y cabecera ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; }
.progress span { display: block; width: 0; height: 100%; background: var(--grad); }
.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 2.5rem), var(--wrap));
  height: var(--header-h);
  z-index: 50;
  border-radius: var(--radius); /* Puntas curvas idénticas a las láminas que aparecen al hacer scroll (22px) */
  padding: 0 1.35rem 0 1.5rem;
  background: rgba(255, 253, 247, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 18px -6px rgba(27, 28, 31, 0.05);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s ease, backdrop-filter .35s ease;
}

/* Al hacer el primer scroll: se convierte en cristal traslúcido líquido que permite ver la imagen 3D debajo */
.site-header.is-solid {
  background: rgba(255, 253, 247, 0.38); /* Cristal traslúcido: permite ver la imagen debajo */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 16px 40px -10px rgba(27, 28, 31, 0.14),
              inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.9),
              0 0 0 1px rgba(255, 204, 0, 0.18);
  transform: translateX(-50%) translateY(2px);
}

.site-header .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.site-header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__logo { display: block; height: 30px; width: auto; }
.brand__tag { padding-top: .35rem; color: var(--accent-ink); font: 700 .72rem var(--font-head); letter-spacing: .32em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { color: var(--muted); font-weight: 500; text-decoration: none; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; position: relative; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); transition: transform .25s, opacity .25s; }
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 23px; } .nav-toggle span:nth-child(3) { top: 30px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   LA HISTORIA EN IMÁGENES
   Por defecto (sin JavaScript o con "reducir movimiento"): una imagen fija por
   escena con su tarjeta debajo. Con JavaScript: lienzo fijo a pantalla completa
   cuyos fotogramas avanzan con el scroll y tarjetas que aparecen por escena.
   ========================================================================== */
.film { position: relative; background: var(--bg-2); }
.film__stage, .rail, .film__cue { display: none; }
.film__steps { display: grid; gap: clamp(2rem, 5vw, 4rem); max-width: 1100px; margin: 0 auto; padding: calc(var(--header-h) + 2rem) var(--gutter) 4rem; }
.step__picture { display: block; width: 100%; }
.step__poster { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--sky); box-shadow: var(--shadow); }
@media (max-width: 760px) and (orientation: portrait) {
  .step__poster { aspect-ratio: 9 / 16; max-height: 82svh; object-position: center top; }
}

/* Tarjetas de Saaving */
.card { max-width: 460px; padding: 1.35rem 1.55rem; background: rgba(255, 255, 255, .92); border: 1px solid rgba(27, 28, 31, .06); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card p { color: var(--muted); }
.card p:last-child, .card ol:last-child { margin-bottom: 0; }
.card .card__k { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; color: var(--text); font: 700 .76rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.card__k span { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 .4rem; border-radius: 999px; background: var(--accent); font-size: .78rem; letter-spacing: 0; }
.card .card__t { color: var(--text); font: 600 clamp(1.08rem, 1.5vw, 1.26rem)/1.45 var(--font-head); }
.card__t strong { background: linear-gradient(transparent 60%, rgba(255, 204, 0, .6) 60%); }
.card .card__h { margin-bottom: .5rem; color: var(--text); font: 800 clamp(1.6rem, 3vw, 2.3rem)/1.1 var(--font-head); letter-spacing: -.02em; }
.card--hero { max-width: 560px; }
.card--hero h1 { margin-bottom: 1.3rem; font-size: clamp(1.7rem, 3.4vw, 2.8rem); font-weight: 800; }
.card--hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(255, 204, 0, .65) 62%); }
.card--cta .btn { margin-top: 1rem; }
.method { margin: .2rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.method li { margin: .45rem 0; }
.method b { color: var(--text); font-weight: 600; }

/* Pantalla de carga (solo se ve en modo cinematográfico) */
.film__loader { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; background: var(--bg); transition: opacity .6s, visibility .6s; }
.film__loader img { width: 56px; height: 56px; border-radius: 14px; animation: bob 1.6s ease-in-out infinite; }
.film__bar { width: 160px; height: 4px; border-radius: 4px; background: rgba(27, 28, 31, .1); overflow: hidden; }
.film__bar i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .3s; }
.film--ready .film__loader { opacity: 0; visibility: hidden; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ---------- Modo cinematográfico (con JavaScript y sin "reducir movimiento") ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .film:not(.film--static) .film__stage { display: block; position: sticky; top: 0; height: 100svh; overflow: hidden; background: linear-gradient(180deg, var(--sky), var(--bg-2)); }
  .js .film:not(.film--static) .film__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
  .js .film:not(.film--static) .film__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255, 253, 247, .55), transparent 22%); }
  .js .film:not(.film--static) .film__steps { display: block; max-width: none; margin: -100svh 0 0; padding: 0; }
  .js .film:not(.film--static) .step { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; height: 170svh; padding: 0 var(--gutter) 8svh; pointer-events: none; }
  .js .film:not(.film--static) .step[data-side="right"] { align-items: flex-end; padding-right: calc(var(--gutter) + 2.6rem); }
  .js .film:not(.film--static) .step__poster,
  .js .film:not(.film--static) .step__picture { display: none; }
  .js .film:not(.film--static) .card { position: sticky; bottom: 8svh; pointer-events: auto; opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
  .js .film:not(.film--static) .step.is-active .card { opacity: 1; transform: none; }

  /* Cohete animado volando hacia la siguiente escena */
  .js .film:not(.film--static) .rocket-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    position: absolute;
    left: 50%;
    bottom: 3.5svh;
    margin: 0;
    transform: translateX(-50%);
    text-decoration: none;
    pointer-events: auto;
    z-index: 25;
    opacity: 1;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .4s ease;
  }
  .js .film:not(.film--static) #escena-1:not(.is-active) .rocket-cue {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
  }
  .rocket-cue:hover {
    transform: translateX(-50%) translateY(4px);
  }
  .rocket-cue__flight {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: rocketFlight 2.2s ease-in-out infinite;
  }
  .rocket-cue__ship {
    display: block;
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 8px 16px rgba(27, 28, 31, .25));
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
    transform-origin: 22px 34px; /* Centro exacto del fuselaje del cohete */
  }
  .rocket-cue__ship--spacex {
    width: 36px;
    height: 56px;
  }
  /* Cuando se desliza hacia abajo: el cohete gira hacia arriba */
  .rocket-cue.is-flying-up .rocket-cue__ship {
    transform: rotate(180deg);
  }
  /* Cuando se sube hacia arriba: el cohete gira hacia abajo */
  .rocket-cue.is-flying-down .rocket-cue__ship {
    transform: rotate(0deg);
  }
  .rocket-cue:hover .rocket-cue__ship {
    filter: drop-shadow(0 14px 24px rgba(255, 184, 0, .6));
  }
  .rocket-cue:hover.is-flying-up .rocket-cue__ship {
    transform: rotate(180deg) translateY(-3px) scale(1.08);
  }
  .rocket-cue:hover:not(.is-flying-up) .rocket-cue__ship {
    transform: rotate(0deg) translateY(3px) scale(1.08);
  }
  .rocket-cue__svg-flame {
    animation: flamePulse 0.35s ease-in-out infinite alternate;
    transform-origin: 22px 11px;
  }
  .rocket-cue__thrust-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: -1px;
  }
  .rocket-cue__thrust-dots i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px rgba(255, 204, 0, .8);
    opacity: .3;
    animation: dotPulse 1.2s ease-in-out infinite;
  }
  .rocket-cue__thrust-dots i:nth-child(1) { animation-delay: 0s; }
  .rocket-cue__thrust-dots i:nth-child(2) { animation-delay: .2s; }
  .rocket-cue__thrust-dots i:nth-child(3) { animation-delay: .4s; }

  @keyframes rocketFlight {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
  }
  @keyframes flamePulse {
    0% { transform: scaleY(0.8) scaleX(0.85); opacity: .75; }
    100% { transform: scaleY(1.3) scaleX(1.1); opacity: 1; }
  }
  @keyframes dotPulse {
    0%, 100% { opacity: .2; transform: translateY(-2px); }
    50% { opacity: 1; transform: translateY(2px); }
  }

  /* Riel de escenas */
  .js .film:not(.film--static) .rail { display: flex; flex-direction: column; gap: .55rem; position: fixed; right: 1.1rem; top: 50%; z-index: 20; margin: 0; padding: 0; list-style: none; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .4s; }
  .js .film.is-inview:not(.film--static) .rail { opacity: 1; pointer-events: auto; }
  .rail a { position: relative; display: block; width: 26px; height: 26px; text-decoration: none; }
  .rail a::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: rgba(27, 28, 31, .25); transition: transform .3s, background .3s; }
  .rail a.is-active::before { background: var(--accent); transform: scale(1.5); box-shadow: 0 0 0 2px var(--text); }
  .rail span { position: absolute; right: 32px; top: 50%; padding: .25rem .6rem; border-radius: 999px; background: var(--text); color: #fff; font: 600 .72rem var(--font-head); white-space: nowrap; opacity: 0; pointer-events: none; transform: translateY(-50%) translateX(6px); transition: opacity .25s, transform .25s; }
  .rail a:hover span, .rail a:focus-visible span, .rail a.is-active span { opacity: 1; transform: translateY(-50%); }
}

/* ---------- Secciones generales ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section__head { max-width: 720px; margin-bottom: 3rem; }
.section__head h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.svc { position: relative; padding: 1.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s, border-color .25s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255, 204, 0, .7); }
.svc--wide { grid-column: span 2; }
.svc__n { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 999px; background: var(--accent); font: 700 .8rem var(--font-head); }
.svc h3 { margin: .9rem 0 .6rem; font-size: 1.3rem; }
.svc p { color: var(--muted); font-size: .98rem; }
.svc ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.svc li { padding: .25rem .7rem; border-radius: 999px; background: var(--bg-2); font-size: .8rem; }

/* ---------- Línea Insignia: Inteligencia Artificial, Automatización y Soluciones Empresariales ---------- */
.enterprise-ia {
  margin-top: 2.2rem;
  padding: clamp(2rem, 4vw, 3.2rem);
  background: linear-gradient(145deg, #FFFFFF 0%, rgba(255, 253, 247, 0.96) 45%, rgba(255, 246, 218, 0.45) 100%);
  border: 1.5px solid rgba(255, 204, 0, 0.48);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(27, 28, 31, 0.12), 0 0 0 1px rgba(255, 204, 0, 0.22);
  position: relative;
  overflow: hidden;
}
.enterprise-ia::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.18) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
.enterprise-ia__header h3 {
  font-size: clamp(1.65rem, 2.9vw, 2.35rem);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -.02em;
}
.enterprise-ia__manifesto {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 4px solid var(--accent);
  border-radius: 0 16px 16px 0;
  padding: 1.35rem 1.65rem;
  margin-bottom: 2.2rem;
  box-shadow: 0 6px 22px -8px rgba(27, 28, 31, 0.06);
}
.enterprise-ia__manifesto p {
  margin: 0;
  color: #26282E;
  font: 500 clamp(.98rem, 1.32vw, 1.12rem)/1.7 var(--font-body);
}
.enterprise-ia__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.enterprise-svc {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  padding: 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.enterprise-svc:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 204, 0, 0.85);
  box-shadow: 0 16px 36px -10px rgba(27, 28, 31, 0.13), 0 0 0 1px rgba(255, 204, 0, 0.35);
}
.enterprise-svc h4 {
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0 0 .75rem 0;
}
.enterprise-svc p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.58;
  margin: 0 0 1.15rem 0;
  flex-grow: 1;
}
.enterprise-svc__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.enterprise-svc__pills li {
  font-size: .76rem;
  padding: .22rem .65rem;
  border-radius: 999px;
  background: var(--bg-2);
  color: #383B44;
  font-weight: 500;
  border: 1px solid rgba(27, 28, 31, 0.05);
}
.enterprise-ia__cta {
  margin-top: 2.2rem;
  padding: 1.4rem 1.8rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 204, 0, 0.5);
  border-radius: calc(var(--radius) - 4px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px -10px rgba(27, 28, 31, 0.06);
}
.enterprise-ia__cta-info {
  max-width: 640px;
}
.enterprise-ia__cta-title {
  margin: 0 0 .25rem 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text);
}
.enterprise-ia__cta-desc {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

/* ===== Banner StudioPromptly: identidad propia de Promptly (negro + cian) ===== */
.promptly { padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 6vw, 5rem); }
.promptly__banner { --pr-cian: #00d4ff; --pr-azul: #0080ff; position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); overflow: hidden; border-radius: 28px; background: #000; color: #fff; text-decoration: none; box-shadow: 0 30px 60px -30px rgba(0, 128, 255, .55); isolation: isolate; transition: transform .3s cubic-bezier(.23, 1, .32, 1), box-shadow .3s; }
.promptly__banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 0% 100%, rgba(0, 212, 255, .22), transparent 60%); }
.promptly__banner:hover { transform: translateY(-3px); box-shadow: 0 36px 70px -28px rgba(0, 212, 255, .6); }
.promptly__banner:focus-visible { outline: 3px solid var(--pr-cian); outline-offset: 4px; }
.promptly__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; padding: clamp(1.8rem, 4vw, 3.2rem); }
.promptly__logo { width: clamp(150px, 18vw, 230px); height: auto; }
.promptly__h { margin: 0; font: 900 clamp(1.6rem, 3.2vw, 2.5rem)/1.08 "Montserrat", "Sora", sans-serif; letter-spacing: -.02em; color: #fff; }
.promptly__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.promptly__chips li { padding: .4rem .85rem; border: 1px solid rgba(0, 212, 255, .35); border-radius: 999px; background: rgba(255, 255, 255, .05); font: 600 .85rem "Inter", sans-serif; color: #e6faff; }
.promptly__cta { display: inline-flex; align-items: center; gap: .5rem; margin-top: .3rem; padding: .85rem 1.4rem; border-radius: 999px; background: linear-gradient(135deg, var(--pr-cian), var(--pr-azul)); font: 800 .95rem "Montserrat", sans-serif; color: #fff; }
.promptly__banner:hover .promptly__cta span { transform: translateX(3px); }
.promptly__cta span { transition: transform .25s; }
.promptly__nota { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .55); }
.promptly__media { position: relative; min-height: 100%; }
.promptly__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.promptly__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .35) 30%, transparent 60%); }
@media (max-width: 760px) {
  .promptly__banner { grid-template-columns: minmax(0, 1fr); }
  .promptly__media { order: -1; height: 200px; }
  .promptly__media::after { background: linear-gradient(0deg, #000 0%, transparent 55%); }
  .promptly__txt { padding-top: .4rem; }
}

.contact { background: radial-gradient(60% 70% at 85% 30%, rgba(255, 204, 0, .25), transparent 70%), linear-gradient(180deg, var(--bg), var(--bg-2)); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.contact h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.contact__direct { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.4rem; font-weight: 600; }
.contact__direct a { color: inherit; text-decoration: underline; text-decoration-color: rgba(27, 28, 31, .35); text-underline-offset: 4px; }
.contact__direct a:hover { text-decoration-color: currentColor; }
.form { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.form label { display: grid; gap: .4rem; font-size: .92rem; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; padding: .8rem 1rem; color: var(--text); font: 400 1rem var(--font-body); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--text); }
.form .is-invalid { border-color: #D93A4C; }
.form__msg { min-height: 1.4em; margin: 0; color: var(--accent-ink); font-size: .9rem; font-weight: 600; }

.site-footer { padding: 2rem 0; background: #1B1C1F; color: #B9BCC4; font-size: .9rem; }
.site-footer__in { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer a { text-decoration: none; }
.site-footer .brand__logo { height: 24px; }
.site-footer .brand__tag { color: var(--accent); }

/* Aparición suave de las secciones de abajo */
.js .svc, .js .form, .js .enterprise-ia { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s; }
.js .is-in { opacity: 1 !important; transform: none !important; }

@media (max-width: 1080px) {
  .enterprise-ia__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Tablet / móvil ---------- */
@media (max-width: 900px) {
  :root { --header-h: 58px; }
  .site-header {
    top: 10px;
    width: calc(100% - 1.4rem);
    padding: 0 1rem;
    border-radius: 18px;
  }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: calc(var(--header-h) + 16px) 0 auto 0;
    margin: 0 .7rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .7rem 1.2rem 1.3rem;
    background: rgba(255, 253, 247, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav a:not(.btn) {
    padding: .85rem .4rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
  }
  .nav .btn { margin-top: .8rem; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .svc--wide { grid-column: auto; }
  .enterprise-ia { padding: 1.6rem 1.25rem; }
  .enterprise-ia__grid { grid-template-columns: minmax(0, 1fr); }
  .enterprise-ia__manifesto { padding: 1.1rem 1.25rem; }
  .enterprise-ia__cta { flex-direction: column; align-items: stretch; }
  .enterprise-ia__cta .btn { width: 100%; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .card { padding: 1.1rem 1.2rem; }
  .card--hero h1 { margin-bottom: 1rem; font-size: clamp(1.45rem, 6.4vw, 1.9rem); }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .js .film:not(.film--static) .step, .js .film:not(.film--static) .step[data-side="right"] { align-items: stretch; padding: 0 1.1rem 1.4rem; }
  .js .film:not(.film--static) .card { bottom: 1.2rem; max-width: none; background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 40px -12px rgba(27, 28, 31, .32); }
  .js .film:not(.film--static) .rail { display: none; }
  .js .film:not(.film--static) .rocket-cue {
    position: absolute;
    left: 50%;
    bottom: auto;
    top: 52svh;
    transform: translateX(-50%);
    gap: .3rem;
  }
  .js .film:not(.film--static) .rocket-cue__ship,
  .js .film:not(.film--static) .rocket-cue__ship--spacex {
    width: 30px;
    height: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
