/* ============================================================
   Kinesis Estudio — marketing site
   Recreates ui_kits/website (Nav, Hero, About, Services, Work,
   Contact, Footer) from the design system, using the real tokens.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  font-family: var(--font-sans);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }

.container { max-width: var(--container); margin: 0 auto; }
.script { font-family: var(--font-script); font-weight: 400; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--coral);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  display: inline-block;
}
.eyebrow.is-center { justify-content: center; }
.eyebrow--coral   { color: var(--coral); }
.eyebrow--plum    { color: var(--ciruela); }
.eyebrow--lavanda { color: var(--lavanda-600); }
.eyebrow--on-dark { color: #fff; }

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 8px 16px; font-size: 13px; gap: 6px; }
.btn--lg { padding: 16px 32px; font-size: 17px; gap: 10px; }
.btn--full { width: 100%; }

.btn--primary { background: var(--coral); color: var(--text-on-accent); box-shadow: var(--shadow-coral); }
.btn--primary:hover { background: var(--coral-600); }
.btn--secondary { background: var(--ciruela); color: var(--text-on-dark); box-shadow: var(--shadow-plum); }
.btn--secondary:hover { background: var(--ciruela-700); }
.btn--outline { background: transparent; color: var(--text-strong); border: 1.5px solid var(--border-strong); }
.btn--outline:hover { background: var(--ink-100); }
.btn--outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all var(--dur-base) var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(247,245,241,0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__logo img { height: 38px; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
}
.nav__link:hover { color: var(--coral); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 660px;
  margin-top: -74px;
  padding-top: 74px;
  display: flex;
  align-items: center;
  background-image: url("assets/gradients/gradiente-01.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  color: #fff;
}
.hero__copy { max-width: 760px; }
.hero h1 {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero p {
  margin: 26px 0 0;
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  line-height: 1.55;
  font-weight: 400;
  max-width: 560px;
  opacity: 0.96;
}
.hero__actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

/* Callout de herramienta gratis dentro del hero */
.hero__tool {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero__tool:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
.hero__tool-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--coral);
  color: var(--text-on-accent);
}
.hero__tool-text { font-size: 15px; font-weight: 600; opacity: 0.96; }
.hero__tool-arrow { font-size: 18px; font-weight: 700; }

/* ---------- About ---------- */
.about { background: var(--paper); padding: var(--space-10) 40px var(--space-9); }
.about__inner { max-width: var(--container-narrow); margin: 0 auto; text-align: center; }
.about p {
  margin: 24px 0 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.about .accent { color: var(--coral); }

/* ---------- Section heads ---------- */
.section { padding: var(--space-10) 40px; }
.section--paper { background: var(--paper); }
.section__head { max-width: 640px; margin-bottom: var(--space-8); }
.section__head h2,
.section__title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  letter-spacing: 0;
  color: var(--text-strong);
  line-height: 1.08;
}

/* ---------- Services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--paper-pure);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card__icon img { width: 62%; height: 62%; object-fit: contain; }
.service-card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  color: var(--text-strong);
}
.service-card p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-muted);
}

/* ---------- Work ---------- */
.work { background: var(--paper); padding: 0 40px var(--space-10); }
.work__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: var(--space-7);
}
.work__filters { display: flex; gap: 10px; flex-wrap: wrap; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-strong);
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.tag.is-active { background: var(--coral); color: var(--text-on-accent); border-color: transparent; }
.work__card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--paper-pure);
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.work__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work__thumb { height: 220px; background-size: cover; background-position: center; }
.work__meta { padding: var(--space-5); }
.work__cat {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral);
}
.work__name {
  margin: 8px 0 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  background: var(--ciruela);
  padding: var(--space-10) 40px;
  overflow: hidden;
}
.contact__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: center;
}
.contact__copy { color: #fff; }
.contact__copy h2 {
  margin: 16px 0 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  letter-spacing: 0;
  line-height: 1.06;
}
.contact__copy h2 .script { font-size: 1.15em; line-height: 0.9; }
.contact__copy p { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.55; opacity: 0.82; max-width: 420px; }
.contact__card {
  background: var(--paper);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-plum);
}
.form { display: flex; flex-direction: column; gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-body); letter-spacing: 0.01em; }
.field input,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-strong);
  background: var(--paper-pure);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 104px; }
.field input:focus,
.field textarea:focus {
  border-color: var(--lavanda-600);
  box-shadow: 0 0 0 3px rgba(126,116,240,0.22);
}
/* Honeypot: invisible para personas, los bots lo llenan y se descarta el envío */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form__error {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--danger);
}
.form__error a { color: inherit; font-weight: 500; }
.contact__thanks { text-align: center; padding: var(--space-7) 0; }
.contact__thanks .big { font-family: var(--font-script); font-size: 56px; color: var(--coral); line-height: 1; }
.contact__thanks p { margin-top: 12px; color: var(--text-muted); font-family: var(--font-sans); }
.is-hidden { display: none !important; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: var(--paper); padding: var(--space-8) 40px var(--space-6); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: var(--space-6); }
.footer__brand { max-width: 360px; }
.footer__brand img { height: 44px; }
.footer__brand p { margin-top: 18px; font-family: var(--font-sans); font-size: 15px; line-height: 1.6; opacity: 0.72; }
.footer__cols { display: flex; gap: var(--space-8); flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.5; font-family: var(--font-sans); }
.footer__col a { color: var(--paper); text-decoration: none; font-family: var(--font-sans); font-size: 15px; opacity: 0.82; }
.footer__col a:hover { opacity: 1; }
.footer__ig { vertical-align: -3px; margin-right: 7px; }
.footer__bar {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  opacity: 0.6;
}

/* ---------- Diagnóstico (banda del free tool) ---------- */
.diag-band {
  background: var(--gradient-mesh);
  padding: var(--space-10) 40px;
  text-align: center;
  color: #fff;
}
.diag-band__inner { max-width: var(--container-narrow); margin: 0 auto; }
.diag-band h2 {
  margin: 16px 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
  letter-spacing: 0;
  line-height: 1.08;
}
.diag-band p {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.55;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto var(--space-6);
}

/* ============================================================
   REDISEÑO INTERACTIVO — dropdown, carrusel, servicios, modal,
   recursos y animaciones. (Estos bloques van al final para
   sobreescribir reglas previas cuando hace falta.)
   ============================================================ */

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Nav: dropdown Recursos ---------- */
.nav__drop { position: relative; display: inline-flex; }
.nav__drop-toggle {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.nav__drop-toggle:hover { color: var(--coral); }
.nav__caret { font-size: 10px; transition: transform var(--dur-base) var(--ease-out); }
.nav__drop.is-open .nav__caret { transform: rotate(180deg); }
.nav__drop-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 320px;
  background: var(--paper-pure);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  z-index: 60;
}
.nav__drop.is-open .nav__drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* Puente invisible que cubre el hueco entre el botón y el menú (evita que se cierre al bajar el mouse) */
.nav__drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav__drop-menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-strong);
  transition: background var(--dur-fast) var(--ease-out);
}
.nav__drop-menu a strong { font-size: 15px; font-weight: 600; }
.nav__drop-menu a span { font-size: 12.5px; color: var(--text-muted); line-height: 1.35; }
.nav__drop-menu a:hover { background: var(--paper); }

/* ---------- Nav: menú móvil (hamburguesa) ---------- */
.nav__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 55;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-strong);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav__burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-active span:nth-child(2) { opacity: 0; }
.nav__burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: var(--paper);
  opacity: 0;
  overflow-y: auto;
  transition: opacity var(--dur-base) var(--ease-out);
}
.nav__mobile.is-open { opacity: 1; }
.nav__mobile-inner { display: flex; flex-direction: column; gap: 2px; padding: 96px 28px 44px; }
.nav__mobile-inner a {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-strong);
  text-decoration: none;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.nav__mobile-inner a:not(.btn):active { color: var(--coral); }
.nav__mobile-label {
  margin-top: 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--coral);
}
.nav__mobile-inner a.btn { margin-top: 26px; border: none; }

/* ---------- Carrusel reutilizable ---------- */
.carousel { position: relative; }
.carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__viewport.is-grabbing { cursor: grabbing; scroll-snap-type: none; }
.carousel__track { display: flex; gap: var(--space-5); padding: 10px 2px 14px; }
.carousel__track > * { scroll-snap-align: start; flex: 0 0 auto; }
.carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
}
.carousel__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: var(--paper-pure);
  color: var(--text-strong);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.carousel__arrow:hover:not(:disabled) { background: var(--coral); color: #fff; border-color: transparent; transform: translateY(-2px); }
.carousel__arrow:disabled { opacity: 0.35; cursor: default; }
.carousel__dots { display: flex; align-items: center; gap: 8px; }
.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border-strong);
  opacity: 0.5;
  cursor: pointer;
  transition: width var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.carousel__dot.is-active { width: 24px; border-radius: 5px; opacity: 1; background: var(--coral); }

/* ---------- Services (rediseño en tarjetas visuales) ---------- */
.service-card {
  flex: 0 0 clamp(258px, 76vw, 340px);
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.service-card__top {
  position: relative;
  height: 132px;
  background-image: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.28)), var(--svc);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card__icon {
  width: 66px;
  height: 66px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.service-card__icon img { width: 60%; height: 60%; object-fit: contain; }
.service-card__body {
  padding: var(--space-5) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.service-card__arrow { margin-top: 6px; color: var(--coral); font-weight: 700; font-size: 20px; transition: transform var(--dur-base) var(--ease-out); }
.service-card:hover .service-card__arrow { transform: translateX(6px); }

.work__card {
  flex: 0 0 300px;
  text-align: left;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  background: var(--paper-pure);
}
.work__thumb { display: block; height: 196px; background-size: cover; background-position: center; }
.work__meta { display: block; padding: var(--space-5); }
.work__card .work__cat { display: block; }
.work__card .work__name { display: block; font-size: 19px; }
.work__card:hover .work__thumb { transform: scale(1.04); }
.work__thumb { transition: transform var(--dur-slow) var(--ease-out); }
.work__card { overflow: hidden; }
/* Placeholder (ejemplo a reemplazar) */
.work__card--ph .work__thumb { position: relative; }
.work__badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.92); color: var(--text-muted);
}

/* ---------- Modal de caso ---------- */
body.no-scroll { overflow: hidden; }
/* Sin esto, .modal{display:flex} anula el atributo [hidden] y el modal invisible
   queda encima de toda la página interceptando los clics. */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.modal.is-open { opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(35,32,39,0.62); backdrop-filter: blur(4px); }
.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  max-height: 90vh;
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl, 0 30px 80px rgba(0,0,0,0.35));
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  transform: translateY(14px) scale(0.98);
  transition: transform var(--dur-slow) var(--ease-out);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--text-strong);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.modal__gallery { position: relative; background: var(--charcoal); display: flex; }
.modal__gallery .carousel { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.modal__gallery .carousel__viewport { flex: 1; }
.modal__slide { flex: 0 0 100%; scroll-snap-align: start; }
.modal__slide img { display: block; width: 100%; height: clamp(280px, 56vh, 560px); object-fit: cover; }
.carousel__nav--overlay { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; gap: 12px; pointer-events: none; }
.carousel__nav--overlay .carousel__arrow { width: 38px; height: 38px; font-size: 18px; background: rgba(0,0,0,0.42); color: #fff; border: none; pointer-events: auto; }
.carousel__nav--overlay .carousel__arrow:hover:not(:disabled) { background: var(--coral); }
.carousel__nav--overlay .carousel__dot { background: rgba(255,255,255,0.55); pointer-events: auto; }
.carousel__nav--overlay .carousel__dot.is-active { background: #fff; }
.modal__gallery .carousel.is-single .carousel__nav--overlay { display: none; }
.modal__body { padding: var(--space-7); display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.modal__tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral);
}
.modal__body h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.08; color: var(--text-strong); }
.modal__desc { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--text-body); }
.modal__cta { align-self: flex-start; margin-top: 6px; }

/* ---------- Recursos ---------- */
.recursos { background: var(--paper); padding: var(--space-10) 40px; }
.recursos__intro { margin-top: 14px; font-family: var(--font-sans); font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.55; color: var(--text-muted); max-width: 560px; }
.recursos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.rec-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-6);
  background: var(--paper-pure);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.rec-card h3 { margin: 0; font-family: var(--font-sans); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--text-strong); }
.rec-card p { margin: 0; font-family: var(--font-sans); font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }
.rec-card__tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--coral); }
.rec-card__soon {
  align-self: flex-start;
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
}
/* Herramientas destacada */
.rec-card--tools {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--gradient-warm, linear-gradient(135deg, var(--coral), var(--ciruela)));
  border: none;
  color: #fff;
  justify-content: flex-start;
}
.rec-card--tools .rec-card__tag { color: rgba(255,255,255,0.85); }
.rec-card__head h3 { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; margin-top: 6px; }
.rec-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.rec-tool {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  text-decoration: none;
  color: #fff;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.rec-tool:hover { background: rgba(255,255,255,0.24); transform: translateY(-3px); }
.rec-tool__kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.rec-tool__title { font-family: var(--font-sans); font-size: 17px; font-weight: 700; line-height: 1.2; }
.rec-tool__desc { font-size: 13px; line-height: 1.45; opacity: 0.9; }
.rec-tool__go { margin-top: 4px; font-size: 18px; font-weight: 700; }
/* Newsletter */
.rec-news__form { display: flex; gap: 8px; margin-top: 6px; }
.rec-news__form input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-strong);
  background: var(--paper);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  outline: none;
}
.rec-news__form input:focus { border-color: var(--coral); }
.rec-news__note { margin: 6px 0 0; font-size: 13px; color: var(--text-muted); }
/* FAQ */
.faq { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.faq__item { border-bottom: 1px solid var(--border-subtle); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-strong);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--coral); font-weight: 700; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding: 0 0 12px; font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .contact__inner { grid-template-columns: 1fr; gap: var(--space-7); }
  .recursos__grid { grid-template-columns: 1fr 1fr; }
  .rec-card--tools { grid-column: span 2; grid-row: auto; }
  .modal__dialog { grid-template-columns: 1fr; max-height: 92vh; overflow: auto; }
}
@media (min-width: 621px) { .nav__mobile { display: none !important; } }
@media (max-width: 620px) {
  .nav { padding: 14px 20px; }
  .nav__links { gap: 16px; }
  .nav__link, .nav__drop { display: none; }
  .nav__burger { display: flex; }
  body.menu-open .nav__links { display: none; }
  .hero__inner, .section, .work, .contact, .footer, .about, .recursos { padding-left: 20px; padding-right: 20px; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero__tool { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .hero__tool-text { font-size: 14px; }
  .recursos__grid { grid-template-columns: 1fr; }
  .rec-card--tools { grid-column: auto; }
  .rec-tools { grid-template-columns: 1fr; }
  .work__head { flex-direction: column; align-items: flex-start; gap: 12px; }
}


/* ---------- Services: carrusel giratorio 3D (diseño "Servicios Carrusel") ---------- */
.section--plum { background: var(--ciruela); overflow: hidden; }
.section--plum .section__head h2 { color: var(--paper); }
.eyebrow--lavanda { color: var(--lavanda); }
.svc-ring {
  --cw: clamp(240px, 26vw, 360px);          /* ancho de la tarjeta */
  position: relative;
  margin-top: var(--space-7);
}
.svc-ring__stage {
  position: relative;
  height: calc(var(--cw) * 1.3 + 40px);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.svc-ring__stage.is-grabbing { cursor: grabbing; }
.svc-ring .service-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--cw);
  min-height: calc(var(--cw) * 1.2);
  padding: 0 0 calc(var(--cw) * 0.08);
  gap: 0;
  border: none;
  border-radius: calc(var(--cw) * 0.072);
  background: var(--paper-pure);
  overflow: hidden;
  display: block;
  transform: translate(-50%, -50%);
  will-change: transform;
  --nz: 1;
  --dim: 0;
  --front: 0;
  box-shadow: 0 calc(12px + 30px * var(--nz)) calc(30px + 60px * var(--nz)) rgba(28, 4, 16, calc(0.12 + 0.2 * var(--nz)));
  transition: none;
}
.svc-ring .service-card:hover { transform: translate(-50%, -50%); }
.svc-ring .service-card::after {               /* velo de profundidad */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ciruela);
  opacity: var(--dim);
  pointer-events: none;
}
.svc-ring .service-card__top {
  height: calc(var(--cw) * 0.46);
  background-image: var(--svc);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-ring .service-card__icon {
  width: calc(var(--cw) * 0.24);
  height: calc(var(--cw) * 0.24);
  border-radius: calc(var(--cw) * 0.056);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: none;
  box-shadow: 0 10px 30px rgba(48, 50, 49, 0.12);
}
.svc-ring .service-card__icon img { width: 63%; height: 63%; }
.svc-ring .service-card__body {
  padding: calc(var(--cw) * 0.084) calc(var(--cw) * 0.096) 0;
  gap: calc(var(--cw) * 0.036);
}
.svc-ring .service-card h3 {
  font-size: calc(var(--cw) * 0.068);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  text-wrap: balance;
}
.svc-ring .service-card p {
  font-size: max(14px, calc(var(--cw) * 0.046));
  line-height: 1.55;
  color: var(--ink-500);
  text-wrap: pretty;
}
.svc-ring__nav { gap: 22px; margin-top: var(--space-6); }
.svc-ring__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(247, 245, 241, 0.35);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.svc-ring__btn svg { width: 20px; height: 20px; }
.svc-ring__btn:hover, .svc-ring__btn:focus-visible, .svc-ring__btn.is-pressed {
  border-color: var(--lavanda);
  color: var(--lavanda);
  background: rgba(162, 155, 254, 0.15);
}
.svc-ring__btn:active, .svc-ring__btn.is-pressed { transform: scale(0.92); }
.svc-ring__btn:focus-visible { outline: 2px solid var(--lavanda); outline-offset: 3px; }
.svc-ring__dots { gap: 9px; }
.svc-ring__dots .carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: 1;
  background: rgba(247, 245, 241, 0.4);
  transition: none;
}
.svc-ring__dots .carousel__dot.is-active { background: var(--lavanda); }
@media (max-width: 640px) {
  .svc-ring { --cw: min(74vw, 300px); }
  .svc-ring__btn { width: 46px; height: 46px; }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .modal, .modal__dialog { transition: none; }
  .service-card:hover .service-card__arrow,
  .rec-tool:hover { transform: none; }
  .work__card:hover .work__thumb { transform: none; }
}

/* ============================================================
   AJUSTES OCT 2026 — ritmo entre secciones, barra sólida,
   gradiente animada del hero, Quiénes somos y mosaico de trabajos
   ============================================================ */

/* ---------- Ritmo vertical: el mismo aire entre todas las secciones ---------- */
:root { --section-y: clamp(80px, 9vw, 128px); }
.about, .section, .work, .recursos, .contact, .diag-band { padding-top: var(--section-y); padding-bottom: var(--section-y); }
/* Dos secciones seguidas con el mismo fondo comparten un solo espacio */
.work + .recursos { padding-top: 0; }

/* ---------- Barra superior sólida desde el inicio ---------- */
.nav {
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(48, 50, 49, 0.06); }
.hero { margin-top: 0; padding-top: 0; background: var(--ciruela-700); }

/* ---------- Hero: gradiente en movimiento (colores de marca) ---------- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  --g-angle: 135deg;
  --g1: #45072A;
  --g2: #5A0E35;
  --g3: #ED5F4C;
  background: linear-gradient(var(--g-angle), var(--g1), var(--g2), var(--g3));
}
/* Velo suave: mantiene el texto legible y le da profundidad a la mezcla */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 120% at 0% 50%, rgba(28, 4, 16, 0.55) 0%, transparent 60%),
    radial-gradient(60% 60% at 100% 0%, rgba(162, 155, 254, 0.22) 0%, transparent 70%);
}

/* ---------- Quiénes somos ---------- */
.about { position: relative; overflow: hidden; }
.about__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  text-align: left;
}
.about__title {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  color: var(--text-strong);
}
.about__title .accent { color: var(--coral); }
.about p {
  margin: 26px 0 0;
  max-width: 520px;
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
}
.about__visual { position: relative; padding: 28px 36px; }
.about__card {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  background: var(--gradient-mesh);
  box-shadow: 0 30px 70px rgba(90, 14, 53, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__logo { width: 46%; height: auto; opacity: 0.95; }
.about__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--paper-pure);
  box-shadow: 0 14px 34px rgba(48, 50, 49, 0.14);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
  animation: about-float 6s var(--ease-out, ease-in-out) infinite alternate;
}
.about__chip img {
  width: 34px;
  height: 34px;
  padding: 5px;
  border-radius: 50%;
  background: var(--paper);
  object-fit: contain;
}
.about__chip--1 { top: 10%; left: 0; }
.about__chip--2 { bottom: 24%; right: 0; animation-delay: -2s; }
.about__chip--3 { bottom: 8%; left: 8%; animation-delay: -4s; }
@keyframes about-float {
  from { transform: translateY(-8px); }
  to   { transform: translateY(8px); }
}

/* ---------- Trabajos: mosaico (masonry) solo de imagen ---------- */
.masonry {
  columns: 3;
  column-gap: var(--space-5);
}
.masonry__item {
  display: block;
  width: 100%;
  margin: 0 0 var(--space-5);
  padding: 0;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-100);
  cursor: pointer;
  break-inside: avoid;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s var(--ease-out), transform 0.9s cubic-bezier(0.34, 1.45, 0.64, 1);
  transition-delay: var(--delay, 0ms);
}
.masonry__item.is-in { opacity: 1; transform: none; }
.masonry__item img,
.masonry__item video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--ratio, 4 / 5);
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
}
.masonry__item:hover img,
.masonry__item:hover video { transform: scale(1.04); }
.masonry__item:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.modal__slide video { display: block; width: 100%; height: clamp(280px, 56vh, 560px); object-fit: cover; background: #000; }

@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__visual { max-width: 460px; width: 100%; margin: 0 auto; }
  .masonry { columns: 2; }
}
@media (max-width: 620px) {
  .masonry { column-gap: 12px; }
  .masonry__item { margin-bottom: 12px; border-radius: 14px; }
  .about__chip { font-size: 13px; }
  .about__chip img { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .about__chip { animation: none; }
  .masonry__item { opacity: 1; transform: none; transition: none; }
  .masonry__item:hover img, .masonry__item:hover video { transform: none; }
}

/* ---------- Recursos con la misma chispa del resto ---------- */
.recursos { position: relative; overflow: hidden; }
.recursos .container { position: relative; z-index: 1; }

.rec-card {
  border-radius: 24px;
  border: none;
  box-shadow: 0 18px 44px rgba(90, 14, 53, 0.08);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.rec-card:not(.rec-card--tools):hover { transform: translateY(-4px); box-shadow: 0 26px 56px rgba(90, 14, 53, 0.14); }
.rec-card__badge {
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
  border-radius: 16px;
  background-image: var(--svc);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(90, 14, 53, 0.18);
}
.rec-card__badge img {
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  object-fit: contain;
}
.rec-card__soon {
  background: rgba(162, 155, 254, 0.16);
  border-color: transparent;
  color: var(--lavanda-600);
}

/* Herramientas: la gradiente de marca en movimiento */
.rec-card--tools {
  position: relative;
  overflow: hidden;
  background: var(--gradient-mesh);
  box-shadow: 0 30px 70px rgba(90, 14, 53, 0.28);
}
.rec-card__glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(35% 35% at 30% 70%, rgba(237, 95, 76, 0.55), transparent 70%),
    radial-gradient(30% 30% at 75% 30%, rgba(162, 155, 254, 0.5), transparent 70%);
  animation: rec-glow 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes rec-glow {
  from { transform: rotate(0deg) scale(1); }
  to   { transform: rotate(40deg) scale(1.1); }
}
.rec-card--tools > *:not(.rec-card__glow) { position: relative; z-index: 1; }
.rec-card--tools .rec-card__head h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.rec-tools { margin-top: auto; padding-top: 28px; }
.rec-tool {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.rec-tool__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(28, 4, 16, 0.2);
}
.rec-tool__icon img { width: 30px; height: 30px; object-fit: contain; }
.rec-tool__go { transition: transform var(--dur-base) var(--ease-out); }
.rec-tool:hover .rec-tool__go { transform: translateX(6px); }

@media (prefers-reduced-motion: reduce) {
  .rec-card__glow { animation: none; }
  .rec-card:not(.rec-card--tools):hover, .rec-tool:hover .rec-tool__go { transform: none; }
}

/* ---------- Luces de fondo de toda la página ----------
   Una sola capa fija detrás de todo: las secciones claras son
   transparentes y la dejan ver; las de fondo propio (inicio, servicios,
   contacto, pie) la tapan. Así el fondo acompaña al navegar. */
.about, .work, .recursos { background: transparent; }
.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  --p: 0; /* avance del scroll, 0 → 1 (lo pone app.js) */
}
.page-glow__light {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}
.page-glow__light span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glow);
  animation: glow-drift 18s ease-in-out infinite alternate;
}
.page-glow__light--coral {
  --glow: var(--coral);
  left: -16vmax;
  top: calc(-8vmax + 40vh * var(--p));
  transform: translateX(calc(10vw * var(--p)));
}
.page-glow__light--lavanda {
  --glow: var(--lavanda);
  right: -16vmax;
  bottom: calc(-10vmax + 45vh * var(--p));
  transform: translateX(calc(-8vw * var(--p)));
}
.page-glow__light--lavanda span { animation-delay: -9s; }
@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vmax, -4vmax) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .page-glow__light span { animation: none; }
}

/* ---------- Logo más presente arriba y en el pie ---------- */
.nav__logo img { height: 56px; width: auto; }
.footer__brand img { height: 68px; width: auto; }
@media (max-width: 620px) {
  .nav__logo img { height: 44px; }
  .footer__brand img { height: 56px; }
}
