/* ==========================================================================
   TECHREVIVE · Estilos
   Tecnología que transforma, soluciones que impulsan.
   ========================================================================== */

/* ---------- Variables de marca ---------- */
:root {
  --navy-950: #040a1c;
  --navy-900: #071233;
  --navy-800: #0b1c4a;
  --navy-700: #13286a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --electric: #3b82f6;
  --electric-light: #60a5fa;
  --cyan: #38bdf8;

  --white: #ffffff;
  --bg-soft: #f4f7fc;
  --bg-blue: #eef4ff;
  --line: #e2e8f3;
  --text: #1e2533;
  --muted: #556072;
  --on-dark: #e6ecf8;
  --on-dark-muted: #a8b5d1;

  --grad-electric: linear-gradient(135deg, #4f8dff 0%, #1d4ed8 100%);
  --grad-text: linear-gradient(90deg, #60a5fa 0%, #38bdf8 50%, #93c5fd 100%);

  --font-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(7, 18, 51, .05), 0 4px 14px rgba(7, 18, 51, .05);
  --shadow-md: 0 10px 30px -10px rgba(7, 18, 51, .18);
  --shadow-lg: 0 30px 60px -20px rgba(7, 18, 51, .28);
  --shadow-glow: 0 10px 30px -8px rgba(37, 99, 235, .55);

  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; color: var(--navy-900); text-wrap: balance; }
p { text-wrap: pretty; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

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

.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: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--navy-900); padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Tipografía de secciones ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); position: relative; background: var(--white); }
#servicios { padding-top: clamp(4rem, 7vw, 6rem); }
.section--soft { background: var(--bg-soft); }
.section--blue { background: linear-gradient(180deg, var(--bg-blue) 0%, #f7faff 100%); }
.section--dark { background: var(--navy-900); color: var(--on-dark); overflow: hidden; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-electric);
}
.eyebrow--dark { color: var(--electric-light); }
.hero .eyebrow::before { display: none; }
.hero .eyebrow {
  padding: .45rem .9rem; border-radius: 999px;
  background: rgba(59, 130, 246, .12); border: 1px solid rgba(96, 165, 250, .28);
  letter-spacing: .1em;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .2), 0 0 12px var(--cyan);
}

.section-title { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; margin-bottom: 1.1rem; }
.section-title--light { color: var(--white); }
.section-lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 62ch; }
.section-lead--light { color: var(--on-dark-muted); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--split {
  max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: end;
}
.section-head--split .section-title { margin-bottom: 0; }

.text-grad {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  --btn-pad-y: .85rem; --btn-pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.2;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--sm { --btn-pad-y: .6rem; --btn-pad-x: 1.1rem; font-size: .92rem; }
.btn--lg { --btn-pad-y: 1rem; --btn-pad-x: 1.6rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--blue-600);
  background-image: linear-gradient(135deg, #3b7bff 0%, #1d4ed8 100%);
  color: var(--white);
  box-shadow: 0 6px 18px -6px rgba(37, 99, 235, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, .2); }

.btn--ghost-light {
  color: var(--white); border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); transform: translateY(-2px); }

.btn--outline { color: var(--blue-700); border-color: #c9d8f5; background: var(--white); }
.btn--outline:hover { background: var(--blue-700); color: var(--white); border-color: var(--blue-700); transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.btn--white { background: var(--white); color: var(--navy-900); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(0, 0, 0, .5); }
.btn--white .icon { color: #1faa55; }

.btn--whatsapp { background: #1faa55; color: var(--white); box-shadow: 0 10px 26px -10px rgba(31, 170, 85, .7); }
.btn--whatsapp:hover { background: #1b964b; transform: translateY(-2px); }
.btn--whatsapp:hover .icon, .btn--white:hover .icon { transform: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(4, 10, 28, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, .07);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .5);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.logo__img { height: 40px; width: auto; max-width: 200px; object-fit: contain; }
.logo__mark { width: 38px; height: 38px; filter: drop-shadow(0 4px 12px rgba(37, 99, 235, .45)); }
.logo__text { font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; letter-spacing: .06em; color: var(--white); }
.logo__text span { color: var(--electric-light); }

.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  position: relative; display: block; padding: .5rem .8rem; border-radius: 8px;
  font-size: .94rem; font-weight: 500; color: rgba(230, 236, 248, .82);
  transition: color .2s, background-color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; border-radius: 2px;
  background: var(--grad-text); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--white); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: .75rem; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; position: relative; border: 1px solid rgba(255, 255, 255, .15); }
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--white);
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 80% 0%, #0f2a6b 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: var(--on-dark);
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(8rem, 13vw, 10.5rem);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(96, 165, 250, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.hero__glow--1 { width: 520px; height: 520px; right: -120px; top: 40px; background: rgba(37, 99, 235, .35); }
.hero__glow--2 { width: 380px; height: 380px; left: -140px; bottom: -80px; background: rgba(56, 189, 248, .14); }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero__title { color: var(--white); font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; margin-bottom: 1.4rem; }
.hero__text { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--on-dark-muted); max-width: 58ch; margin-bottom: 2.2rem; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.4rem; }

.hero__tagline { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--on-dark); }
.hero__tagline li { display: inline-flex; align-items: center; gap: .55rem; }
.hero__tagline li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}

.hero__visual { position: relative; }
.hero__frame {
  position: relative; border-radius: var(--radius-lg); padding: 6px;
  background: linear-gradient(140deg, rgba(96, 165, 250, .55), rgba(255, 255, 255, .06) 40%, rgba(56, 189, 248, .35));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 60px -20px rgba(59, 130, 246, .5);
}
.hero__frame img { border-radius: calc(var(--radius-lg) - 6px); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem .7rem .7rem; border-radius: 14px;
  background: rgba(7, 18, 51, .72); border: 1px solid rgba(148, 182, 255, .22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6);
  font-size: .85rem; line-height: 1.25; color: var(--white);
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-head); font-weight: 700; }
.float-card small { display: block; color: var(--on-dark-muted); font-size: .76rem; margin-top: 2px; }
.float-card__icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad-electric); color: var(--white);
}
.float-card__icon .icon { width: 18px; height: 18px; }
.float-card__icon--ok { background: linear-gradient(135deg, #34d399, #059669); }
.float-card--a { top: 8%; left: -7%; }
.float-card--b { bottom: 10%; left: -9%; animation-delay: -2s; }
.float-card--c { top: -5%; right: 5%; animation-delay: -4s; min-width: 190px; }
.progress { position: relative; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .14); margin-top: 7px !important; overflow: hidden; }
.progress i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--grad-text); }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Propuesta de valor ---------- */
.values { position: relative; z-index: 2; margin-top: clamp(-6rem, -9vw, -4.5rem); }
.values__bar {
  display: grid; grid-template-columns: repeat(var(--n, 4), 1fr);
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.value { display: flex; gap: 1rem; align-items: flex-start; padding: 1.75rem 1.6rem; position: relative; transition: background-color .3s; }
.value + .value::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.value:hover { background: #f8faff; }
.value__icon {
  display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px;
  background: var(--bg-blue); color: var(--blue-700);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.value:hover .value__icon { background: var(--grad-electric); color: var(--white); transform: rotate(-6deg) scale(1.05); }
.value__title { font-size: 1.2rem; font-weight: 800; margin-bottom: .2rem; }
.value p { font-size: .93rem; color: var(--muted); line-height: 1.5; }

/* ---------- Servicios ---------- */
.audience { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.audience li {
  font-size: .85rem; font-weight: 600; color: var(--navy-800);
  padding: .4rem .9rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
}

.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
.service {
  grid-column: span 2;
  position: relative; display: flex; flex-direction: column;
  padding: 2rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-electric);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.service::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .12), transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #cddbf6; }
.service:hover::before { transform: scaleX(1); }
.service:hover::after { opacity: 1; }
.service--wide { grid-column: span 3; }
.service--full { grid-column: 1 / -1; }
.service--full .checklist { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 1.25rem; }

.service__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.4rem; }
.service__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--grad-electric); color: var(--white); box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .7);
  transition: transform .35s var(--ease);
}
.service__icon .icon { width: 26px; height: 26px; }
.service:hover .service__icon { transform: translateY(-3px) rotate(-5deg); }
.service__num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1; color: #e8eef9; letter-spacing: -.04em; transition: color .3s; }
.service:hover .service__num { color: #d5e2fb; }
.service__title { font-size: 1.35rem; font-weight: 800; margin-bottom: .6rem; }
.service__desc { color: var(--muted); font-size: .97rem; margin-bottom: 1.4rem; }
.service__btn { margin-top: auto; align-self: flex-start; }

.checklist { display: grid; gap: .55rem; margin-bottom: 1.75rem; }
.service--wide .checklist { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
.checklist li { position: relative; padding-left: 1.75rem; font-size: .93rem; color: var(--text); line-height: 1.45; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .1rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--bg-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* ---------- ¿Por qué TechRevive? ---------- */
.why__glow {
  position: absolute; width: 700px; height: 700px; left: -250px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .28), transparent 65%); pointer-events: none;
}
.why::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(148, 182, 255, .12) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.why__inner { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.why__intro { position: sticky; top: calc(var(--header-h) + 2rem); }

.formula { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2rem 0; }
.formula span {
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .55rem .95rem; border-radius: 10px; color: var(--white);
  background: rgba(59, 130, 246, .14); border: 1px solid rgba(96, 165, 250, .3);
}
.formula b { color: var(--cyan); font-size: 1.2rem; }

.why__quote {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; line-height: 1.5; color: var(--white);
  padding-left: 1.2rem; border-left: 3px solid var(--electric);
}

.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.adv {
  padding: 1.6rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(148, 182, 255, .14);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.adv:hover { transform: translateY(-5px); border-color: rgba(96, 165, 250, .45); background: linear-gradient(160deg, rgba(59, 130, 246, .14), rgba(255, 255, 255, .03)); }
.adv--wide { grid-column: span 2; }
.adv__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; margin-bottom: 1.1rem;
  background: rgba(59, 130, 246, .16); color: var(--electric-light); border: 1px solid rgba(96, 165, 250, .25);
}
.adv h3 { color: var(--white); font-size: 1.12rem; font-weight: 700; margin-bottom: .4rem; }
.adv p { color: var(--on-dark-muted); font-size: .95rem; }

/* ---------- Tecnología para todos ---------- */
.everyone__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.collage { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; min-height: 520px; }
.collage__item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.collage__item--main { grid-row: span 2; }
.collage--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.collage--2 { grid-template-rows: 1fr; }
.collage--1 .collage__item--main, .collage--2 .collage__item--main { grid-row: auto; }
.everyone__inner--solo { grid-template-columns: 1fr; max-width: 760px; }
.collage__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.collage__item:hover img { transform: scale(1.05); }
.collage__item figcaption {
  position: absolute; left: .8rem; bottom: .8rem; display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .8rem; border-radius: 10px; font-size: .82rem; font-weight: 600; color: var(--white);
  background: rgba(7, 18, 51, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14);
}
.collage__item figcaption .icon { width: 15px; height: 15px; color: var(--electric-light); }

.levels { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.75rem 0; }
.level {
  display: inline-flex; align-items: center; gap: 3px; padding: .5rem .9rem; border-radius: 999px;
  background: var(--bg-blue); color: var(--navy-800); font-size: .86rem; font-weight: 600;
}
.level i { width: 4px; height: 12px; border-radius: 2px; background: var(--blue-600); }
.level i:last-of-type { margin-right: .45rem; }

.courses { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); margin-bottom: 2rem; }
.courses__title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.courses__list { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.25rem; }
.courses__list li { position: relative; padding-left: 1.1rem; font-size: .93rem; }
.courses__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 2px; background: var(--electric); transform: rotate(45deg); }

/* ---------- Emprendedores y negocios ---------- */
.business__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.75rem 0 2.2rem; }
.tags li {
  font-size: .86rem; font-weight: 600; color: var(--blue-700);
  padding: .45rem .9rem; border-radius: 999px; background: var(--white); border: 1px solid #d5e2fb;
}

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; counter-reset: step; }
.step {
  position: relative; padding: 1.75rem 1.5rem 1.5rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cddbf6; }
.step:nth-child(even) { transform: translateY(1.75rem); }
.step:nth-child(even):hover { transform: translateY(calc(1.75rem - 5px)); }
.step__num {
  position: absolute; right: 1rem; top: .2rem; font-family: var(--font-head); font-weight: 800; font-size: 4.2rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px #d5e2fb;
}
.step__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 1.1rem;
  background: var(--grad-electric); color: var(--white); box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .7);
}
.step h3 { font-size: 1.18rem; font-weight: 800; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Proceso (timeline) ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 1.25rem; }
.timeline::before {
  content: ""; position: absolute; top: 32px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, rgba(59, 130, 246, .15), var(--electric), rgba(59, 130, 246, .15));
}
.timeline__step { position: relative; text-align: center; padding: 0 .4rem; }
.timeline__node {
  position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.25rem;
  border-radius: 50%; background: var(--white); color: var(--blue-700);
  border: 2px solid #cfdcf6; box-shadow: 0 0 0 8px var(--white), var(--shadow-sm);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.timeline__node .icon { width: 26px; height: 26px; }
.timeline__step:hover .timeline__node {
  background: var(--grad-electric); color: var(--white); border-color: transparent; transform: scale(1.08);
  box-shadow: 0 0 0 8px var(--white), 0 12px 28px -8px rgba(37, 99, 235, .6);
}
.timeline__step:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; right: -14px; width: 12px; height: 12px;
  border-top: 2px solid var(--electric); border-right: 2px solid var(--electric); transform: rotate(45deg);
  background: transparent;
}
.timeline__step h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: .35rem; }
.timeline__step p { font-size: .92rem; color: var(--muted); line-height: 1.55; }

/* ---------- Portafolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.25rem; }
.filter {
  padding: .6rem 1.1rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--navy-800);
  background: var(--white); border: 1px solid var(--line);
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.filter:hover { border-color: #b9cdf3; color: var(--blue-700); }
.filter.is-active { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); box-shadow: 0 8px 20px -10px rgba(7, 18, 51, .6); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .35s;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
[data-category].is-hidden { display: none !important; }
[data-category].is-filtering { animation: popIn .45s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.project__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project:hover .project__media img { transform: scale(1.06); }
.project__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 10, 28, .35)); }
.badge-demo {
  position: absolute; z-index: 1; top: .8rem; left: .8rem; padding: .35rem .7rem; border-radius: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--white); background: rgba(7, 18, 51, .78); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.project__body { padding: 1.4rem 1.5rem 1.6rem; }
.project__cat { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-700); margin-bottom: .45rem; }
.project h3 { font-size: 1.18rem; font-weight: 800; margin-bottom: .45rem; }
.project p { font-size: .93rem; color: var(--muted); }

.project--cta {
  justify-content: center; align-items: flex-start; padding: 2rem;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); border-color: transparent; color: var(--on-dark);
  position: relative; overflow: hidden;
}
.project--cta::before {
  content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .45), transparent 70%);
}
.project--cta h3 { color: var(--white); font-size: 1.4rem; position: relative; }
.project--cta p { color: var(--on-dark-muted); margin-bottom: 1.4rem; position: relative; }
.project--cta__icon {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.25rem;
  background: var(--grad-electric); color: var(--white); box-shadow: var(--shadow-glow);
  transition: transform .4s var(--ease);
}
.project--cta:hover .project--cta__icon { transform: rotate(90deg); }
.link-arrow { position: relative; display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-head); font-weight: 700; color: var(--electric-light); }
.link-arrow .icon { transition: transform .25s var(--ease); }
.project--cta:hover .link-arrow .icon { transform: translateX(4px); }

/* ---------- Testimonios ---------- */
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  padding: 2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testimonial--placeholder { border-style: dashed; border-color: #c5d4ef; background: linear-gradient(180deg, #fbfcff, var(--white)); }
.testimonial--placeholder blockquote { color: var(--muted); font-style: italic; }
.testimonial__quote { width: 34px; height: 34px; color: #cddbf6; }
.testimonial blockquote { font-size: 1rem; line-height: 1.65; color: var(--text); flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: .85rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.testimonial__avatar {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  background: var(--bg-blue); color: var(--blue-700); border: 2px dashed #b9cdf3;
}
.testimonial__avatar--photo { border: 2px solid var(--white); box-shadow: 0 0 0 2px #cddbf6; }
.testimonial figcaption strong { display: block; font-family: var(--font-head); color: var(--navy-900); }
.testimonial figcaption small { display: block; color: var(--muted); font-size: .85rem; }

/* ---------- CTA ---------- */
.cta { padding-block: 0 clamp(4.5rem, 9vw, 7rem); background: var(--white); }
.cta__box {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 5rem);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 50% 0%, #1a3d99 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  box-shadow: var(--shadow-lg);
}
.cta__glow { position: absolute; width: 600px; height: 300px; left: 50%; top: -150px; transform: translateX(-50%); border-radius: 50%; background: rgba(59, 130, 246, .45); filter: blur(90px); }
.cta__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148, 182, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 182, 255, .08) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.cta__title { position: relative; color: var(--white); font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 800; max-width: 22ch; margin: 0 auto 1.1rem; }
.cta__text { position: relative; color: var(--on-dark-muted); font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 52ch; margin: 0 auto 2.2rem; }
.cta__buttons { position: relative; display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ---------- Contacto ---------- */
.contact__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.5rem; align-items: stretch; }
.contact__info {
  position: relative; overflow: hidden; padding: clamp(2rem, 4vw, 2.75rem); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: var(--on-dark);
}
.contact__info::before {
  content: ""; position: absolute; width: 340px; height: 340px; right: -140px; bottom: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .35), transparent 70%);
}
.contact__info > * { position: relative; }
.contact__title { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: .8rem; }
.contact__lead { color: var(--on-dark-muted); margin-bottom: 1.75rem; }
.contact__list { display: grid; gap: 1.1rem; margin: 2rem 0; }
.contact__list li { display: flex; gap: .9rem; align-items: center; }
.contact__list small { display: block; font-size: .78rem; color: var(--on-dark-muted); letter-spacing: .03em; }
.contact__list a, .contact__list li > span > span { color: var(--white); font-weight: 600; word-break: break-word; }
.contact__list a:hover { color: var(--electric-light); }
.contact__icon {
  display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: rgba(59, 130, 246, .15); color: var(--electric-light); border: 1px solid rgba(96, 165, 250, .22);
}
.contact__icon .icon { width: 20px; height: 20px; }

.socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  color: var(--on-dark); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  transition: background .25s, color .25s, transform .25s var(--ease), border-color .25s;
}
.socials a .icon { width: 19px; height: 19px; }
.socials a:hover { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); transform: translateY(-3px); }

/* Formulario */
.form {
  padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.form { display: flex; flex-direction: column; }
.form > .field:has(textarea) { flex: 1; }
.form > .field:has(textarea) textarea { flex: 1; }
.form__title { font-size: 1.5rem; font-weight: 800; margin-bottom: .3rem; }
.form__sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.75rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy-900); margin-bottom: .45rem; }
.field label span { color: var(--blue-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  background: var(--bg-soft); border: 1.5px solid var(--line); color: var(--text); font-size: .97rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #8a94a6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c5d4ef; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--white); border-color: var(--electric); box-shadow: 0 0 0 4px rgba(59, 130, 246, .15);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #dc2626; background: #fff8f8; }
.field__error { font-size: .8rem; color: #b91c1c; margin-top: .35rem; min-height: 0; }
.field__error:empty { display: none; }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.select select { padding-right: 2.5rem; cursor: pointer; }
.select select:invalid { color: #8a94a6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__submit { margin-top: .5rem; }
.form__submit[disabled] { opacity: .7; cursor: progress; }
.form__status { margin-top: 1rem; font-size: .93rem; font-weight: 500; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-success { color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; padding: .8rem 1rem; border-radius: 12px; }
.form__status.is-error { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; padding: .8rem 1rem; border-radius: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: var(--on-dark-muted); padding-top: clamp(3.5rem, 7vw, 5rem); position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .6), transparent);
}
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__slogan { margin: 1.1rem 0 1.5rem; max-width: 32ch; color: var(--on-dark); }
.footer__col h3 { color: var(--white); font-size: .95rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 1.1rem; }
.footer__col ul { display: grid; gap: .65rem; }
.footer__col a { font-size: .93rem; transition: color .2s; }
.footer__col a:hover { color: var(--white); }
.footer__contact li { display: flex; align-items: center; gap: .6rem; font-size: .93rem; }
.footer__contact .icon { width: 17px; height: 17px; color: var(--electric-light); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .86rem;
}
.footer__formula { font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .76rem; color: var(--electric-light); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 90;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: var(--white);
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .65), 0 4px 10px rgba(0, 0, 0, .15);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: ring 2.8s ease-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float__tip {
  position: absolute; right: calc(100% + 12px); white-space: nowrap;
  padding: .55rem .9rem; border-radius: 10px; font-size: .85rem; font-weight: 600;
  background: var(--navy-900); color: var(--white); box-shadow: var(--shadow-md);
  opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; transform: none; }
body.menu-open .wa-float { opacity: 0; pointer-events: none; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Animaciones al hacer scroll ---------- */
/* Se usa "translate" (no "transform") para no interferir con los efectos hover */
.js .reveal {
  --rd: calc(var(--d, 0) * 90ms);
  opacity: 0; translate: 0 24px;
  transition: opacity .7s var(--ease) var(--rd), translate .7s var(--ease) var(--rd),
              transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, background-color .3s, color .25s;
}
.js .reveal.is-visible { opacity: 1; translate: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .float-card--a { left: -3%; }
  .float-card--b { left: -4%; }
}

@media (max-width: 1024px) {

  .hero__inner { grid-template-columns: 1fr; }
  .hero__content { text-align: center; }
  .hero__text { margin-inline: auto; }
  .hero__buttons, .hero__tagline { justify-content: center; }
  .hero__visual { max-width: 640px; margin-inline: auto; width: 100%; }
  .float-card--a { left: -2%; }
  .float-card--b { left: auto; right: -2%; bottom: 8%; }
  .float-card--c { right: auto; left: 8%; top: -4%; }

  .values__bar { grid-template-columns: 1fr 1fr; }
  .value:nth-child(3)::before { display: none; }
  .value:nth-child(n+3) { border-top: 1px solid var(--line); }

  .services { grid-template-columns: 1fr 1fr; }
  .service, .service--wide, .service--full { grid-column: span 1; }
  .service--odd-last { grid-column: span 2; }
  .service--wide .checklist { grid-template-columns: 1fr; }
  .service--odd-last .checklist, .service--full .checklist { grid-template-columns: 1fr 1fr; }

  .why__inner { grid-template-columns: 1fr; }
  .why__intro { position: static; }

  .everyone__inner { grid-template-columns: 1fr; }
  .collage { min-height: 440px; }

  .business__inner { grid-template-columns: 1fr; }

  .timeline { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
  .timeline::before { top: 32px; bottom: 32px; left: 31px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, rgba(59, 130, 246, .2), var(--electric), rgba(59, 130, 246, .2)); }
  .timeline__step { display: grid; grid-template-columns: 64px 1fr; column-gap: 1.25rem; text-align: left; padding: 0 0 2rem; }
  .timeline__step:last-child { padding-bottom: 0; }
  .timeline__node { grid-row: span 2; margin: 0; }
  .timeline__step h3 { align-self: end; margin-top: .6rem; }
  .timeline__step:not(:last-child)::after { display: none; }

  .projects { grid-template-columns: 1fr 1fr; }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .testimonials__grid--odd .testimonial:last-child { grid-column: span 2; }

  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .section-head--split { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { width: min(1200px, 100% - 2rem); }
  .logo__text { font-size: 1.08rem; }
  .logo__mark { width: 34px; height: 34px; }

  .hero .eyebrow { font-size: .68rem; letter-spacing: .06em; padding: .4rem .75rem; }
  .hero__buttons .btn { width: 100%; }
  .hero__tagline { flex-direction: column; align-items: center; gap: .4rem; }
  .float-card { font-size: .78rem; padding: .55rem .8rem .55rem .55rem; }
  .float-card__icon { width: 30px; height: 30px; }
  .float-card--c { display: none; }
  .float-card--a { top: 6%; left: 3%; }
  .float-card--b { right: 3%; bottom: 6%; }

  .values__bar { grid-template-columns: 1fr; }
  .value::before { display: none; }
  .value + .value { border-top: 1px solid var(--line); }
  .value { padding: 1.3rem 1.4rem; }

  .services { grid-template-columns: 1fr; }
  .service--odd-last { grid-column: span 1; }
  .service, .service--wide { padding: 1.6rem; }
  .service--odd-last .checklist, .service--full .checklist { grid-template-columns: 1fr; }

  .why__grid { grid-template-columns: 1fr; }
  .adv--wide { grid-column: span 1; }

  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px; min-height: 0; }
  .collage__item--main { grid-row: auto; grid-column: span 2; }
  .collage--1, .collage--2 { grid-template-rows: 240px; }
  .collage--1 .collage__item--main { grid-column: auto; }
  .collage--2 { grid-template-rows: 220px 180px; }
  .collage--2 .collage__item:not(.collage__item--main) { grid-column: span 2; }
  .collage__item figcaption { font-size: .74rem; left: .5rem; bottom: .5rem; padding: .35rem .6rem; }
  .courses__list { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }
  .step:nth-child(even) { transform: none; }
  .step:nth-child(even):hover { transform: translateY(-5px); }

  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; margin-inline: -1rem; padding-inline: 1rem; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex-shrink: 0; }
  .projects { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .testimonials__grid--odd .testimonial:last-child { grid-column: span 1; }

  .cta__buttons .btn { width: 100%; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; align-items: center; }
  .wa-float { width: 56px; height: 56px; }
  .wa-float__tip { display: none; }
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
}

/* Logo en imagen (editable desde el panel) */
.logo__mark--img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(56, 189, 248, .35)); }
@media (max-width: 760px) { .logo__mark--img { width: 38px; height: 38px; } }


/* ==========================================================================
   SITIO MULTIPÁGINA · Menús desplegables, páginas internas y componentes
   ========================================================================== */

/* ---------- Navegación con submenús (escritorio) ---------- */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { padding: .5rem .6rem; font-size: .9rem; white-space: nowrap; }
.nav__link::after { left: .6rem; right: .6rem; }
.has-sub > .nav__link { padding-right: .2rem; }
.has-sub > .nav__link::after { right: .2rem; }
.nav__sub-toggle {
  display: inline-grid; place-items: center; width: 22px; height: 30px; margin-right: .2rem;
  color: rgba(230, 236, 248, .65); border-radius: 6px; transition: color .2s;
}
.nav__sub-toggle .icon { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .25s var(--ease); }
.has-sub:hover .nav__sub-toggle, .has-sub.is-open .nav__sub-toggle, .has-sub.is-current .nav__sub-toggle { color: var(--white); }
.has-sub:hover .nav__sub-toggle .icon, .has-sub.is-open .nav__sub-toggle .icon { transform: rotate(-90deg); }

.nav__dropdown {
  position: absolute; top: 100%; left: 50%; z-index: 120;
  min-width: 320px; padding-top: 14px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .22s, transform .25s var(--ease), visibility .22s;
}
.nav__dropdown-inner {
  padding: .5rem; border-radius: 18px;
  background: rgba(7, 18, 51, .97);
  border: 1px solid rgba(148, 182, 255, .16);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(59, 130, 246, .05);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.nav__dropdown-inner::before {
  content: ""; position: absolute; top: 9px; left: 50%; width: 12px; height: 12px;
  transform: translateX(-50%) rotate(45deg); background: rgba(7, 18, 51, .97);
  border-left: 1px solid rgba(148, 182, 255, .16); border-top: 1px solid rgba(148, 182, 255, .16);
}
@media (hover: hover) and (min-width: 1181px) {
  .has-sub:hover > .nav__dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
@media (min-width: 1181px) {
  .has-sub:focus-within > .nav__dropdown,
  .has-sub.is-open > .nav__dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.dd-link {
  display: flex; align-items: flex-start; gap: .85rem; padding: .7rem .8rem; border-radius: 12px;
  transition: background-color .2s;
}
.dd-link:hover, .dd-link:focus-visible { background: rgba(59, 130, 246, .13); }
.dd-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(59, 130, 246, .14); color: var(--electric-light); border: 1px solid rgba(96, 165, 250, .2);
  transition: background-color .2s, color .2s;
}
.dd-icon .icon { width: 19px; height: 19px; }
.dd-link:hover .dd-icon, .dd-link.is-active .dd-icon { background: var(--grad-electric); color: var(--white); }
.dd-text strong { display: block; font-family: var(--font-head); font-size: .93rem; font-weight: 700; color: var(--white); line-height: 1.3; }
.dd-text small { display: block; margin-top: .15rem; font-size: .8rem; line-height: 1.4; color: var(--on-dark-muted); }
.dd-link.is-active strong { color: var(--electric-light); }
.dd-sep { height: 1px; margin: .35rem .6rem; background: rgba(255, 255, 255, .08); }

/* ---------- Menú móvil (hasta 1180 px) ---------- */
@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    padding: 1.25rem 1.25rem 2rem; display: flex; flex-direction: column; gap: 1.5rem;
    background: rgba(4, 10, 28, .98); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: min(640px, 100%); margin-inline: auto; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .nav__link, .has-sub > .nav__link { flex: 1; font-size: 1.08rem; font-weight: 600; padding: .95rem .75rem; border-radius: 12px; }
  .nav__link::after { display: none; }
  .nav__link:hover, .nav__link.is-active { background: rgba(59, 130, 246, .12); }
  .nav__sub-toggle { width: 46px; height: 46px; margin: 0; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); }
  .nav__sub-toggle .icon { width: 18px; height: 18px; }
  .has-sub:hover .nav__sub-toggle .icon { transform: rotate(90deg); }
  .has-sub.is-open .nav__sub-toggle .icon { transform: rotate(-90deg); }
  .nav__dropdown {
    position: static; flex-basis: 100%; min-width: 0; padding: 0 0 .75rem;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .has-sub.is-open > .nav__dropdown { display: block; animation: ddIn .3s var(--ease); }
  .nav__dropdown-inner { background: rgba(255, 255, 255, .03); box-shadow: none; padding: .35rem; }
  .nav__dropdown-inner::before { display: none; }
  .dd-text small { display: none; }
  .dd-icon { width: 34px; height: 34px; }
  .nav__cta-mobile { display: inline-flex; width: min(640px, 100%); margin-inline: auto; }
  .header.menu-active { background: rgba(4, 10, 28, .98); }
}
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(2.75rem, 6vw, 4.5rem)) 0 clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(37, 99, 235, .35), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 70%, var(--navy-800) 100%);
  color: var(--on-dark);
}
.page-hero .hero__bg { z-index: -1; }
.page-hero__inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.page-hero--text .page-hero__inner { grid-template-columns: 1fr; }
.page-hero--text .page-hero__content { max-width: 860px; }
.page-hero--center .page-hero__inner { text-align: center; justify-items: center; }
.page-hero--center .page-hero__content { margin-inline: auto; }
.page-hero--center .breadcrumb { justify-content: center; }
.page-hero__title {
  color: var(--white); font-size: clamp(2.15rem, 4.8vw, 3.5rem); font-weight: 800;
  letter-spacing: -.035em; line-height: 1.08; margin-bottom: 1.1rem;
}
.page-hero__lead { color: var(--on-dark-muted); font-size: clamp(1.03rem, 1.4vw, 1.17rem); max-width: 60ch; }
.page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero__buttons { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.page-hero--center .page-hero__buttons { justify-content: center; }
.page-hero__media { position: relative; }
.page-hero__media .hero__frame img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.page-hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.page-hero__chips li {
  font-size: .82rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px;
  color: #cfe0ff; background: rgba(59, 130, 246, .12); border: 1px solid rgba(96, 165, 250, .22);
}

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: 1.4rem; font-size: .85rem; color: var(--on-dark-muted); }
.breadcrumb a { color: var(--on-dark-muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .icon { width: 14px; height: 14px; opacity: .55; }
.breadcrumb [aria-current] { color: var(--white); font-weight: 500; }

/* ---------- Bloques de texto + imagen ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split__media::before {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 55%; height: 55%; z-index: -1;
  border-radius: var(--radius-lg); background: var(--grad-electric); opacity: .14;
}
.split__body > p { color: var(--muted); font-size: 1.05rem; }
.split__body > p + p { margin-top: 1rem; }
.split__body .checklist { margin-top: 1.5rem; }
.split__body .btn { margin-top: 1.75rem; }
.checklist--2 { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }

/* ---------- Tarjetas genéricas ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; padding: 1.75rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.section--soft .card, .section--blue .card { background: var(--white); }
.section:not(.section--soft):not(.section--blue):not(.section--dark) .card { background: #fbfcff; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cddbf6; }
.card__icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.15rem;
  background: var(--bg-blue); color: var(--blue-700); border: 1px solid #d8e4fb;
  transition: background-color .3s, color .3s;
}
.card__icon .icon { width: 24px; height: 24px; }
.card:hover .card__icon { background: var(--grad-electric); color: var(--white); border-color: transparent; }
.card h3 { font-size: 1.14rem; margin-bottom: .45rem; }
.card p { font-size: .95rem; color: var(--muted); }
.card .link-arrow { margin-top: 1rem; color: var(--blue-700); font-size: .93rem; }
a.card:hover .link-arrow .icon { transform: translateX(4px); }
.card--center { text-align: center; }
.card--center .card__icon { margin-inline: auto; }
.card__num { position: absolute; top: 1.4rem; right: 1.5rem; font-family: var(--font-head); font-weight: 800; font-size: .9rem; color: #c3d3ef; }

/* Tarjetas en fondo oscuro */
.section.section--dark .card { background: rgba(255, 255, 255, .03); border-color: rgba(148, 182, 255, .12); box-shadow: none; }
.section--dark .card h3 { color: var(--white); }
.section--dark .card p { color: var(--on-dark-muted); }
.section--dark .card__icon { background: rgba(59, 130, 246, .14); color: var(--electric-light); border-color: rgba(96, 165, 250, .2); }

/* ---------- Misión y visión ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mv-card {
  position: relative; overflow: hidden; padding: clamp(2rem, 4vw, 2.75rem); border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.mv-card--dark { background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); border-color: transparent; color: var(--on-dark); }
.mv-card--dark::after {
  content: ""; position: absolute; width: 320px; height: 320px; right: -110px; top: -130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .45), transparent 70%);
}
.mv-card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-electric); color: var(--white); margin-bottom: 1.5rem; box-shadow: var(--shadow-glow); }
.mv-card__icon .icon { width: 26px; height: 26px; }
.mv-card h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: .9rem; }
.mv-card--dark h2 { color: var(--white); }
.mv-card p { position: relative; z-index: 1; font-size: 1.08rem; line-height: 1.75; color: var(--muted); }
.mv-card--dark p { color: var(--on-dark); }

/* ---------- Avisos ---------- */
.notice {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 1.35rem; border-radius: 16px;
  background: var(--bg-blue); border: 1px solid #d5e2fb; color: var(--navy-800); font-size: .95rem;
}
.notice > .icon { color: var(--blue-700); margin-top: .15rem; }
.notice strong { color: var(--navy-900); }
.notice--center { justify-content: center; text-align: left; max-width: 820px; margin-inline: auto; }
.notice + * { margin-top: 2rem; }
* + .notice { margin-top: 2rem; }

/* ---------- Preguntas frecuentes (acordeón) ---------- */
.accordion { display: grid; gap: .75rem; }
.faq { border: 1px solid var(--line); border-radius: 16px; background: var(--white); transition: border-color .25s, box-shadow .25s; }
.faq[open] { border-color: #c9d8f5; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.35rem; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq[open] summary::after { transform: rotate(45deg); background-color: #dbe7ff; }
.faq summary:hover { color: var(--blue-700); }
.faq__body { padding: 0 1.35rem 1.3rem; color: var(--muted); }
.faq__body p + p { margin-top: .75rem; }
.faq__body a { color: var(--blue-700); font-weight: 600; }

.faq-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: .3rem; }
.side-nav p { font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.side-nav a { display: flex; align-items: center; gap: .65rem; padding: .65rem .85rem; border-radius: 12px; font-weight: 500; color: var(--text); transition: background-color .2s, color .2s; }
.side-nav a .icon { color: var(--blue-700); }
.side-nav a:hover { background: var(--white); color: var(--blue-700); box-shadow: var(--shadow-sm); }
.faq-group { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group__title { display: flex; align-items: center; gap: .75rem; font-size: 1.4rem; margin-bottom: 1.15rem; }
.faq-group__title .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--grad-electric); color: var(--white); }
.faq-narrow { max-width: 860px; margin-inline: auto; }

/* ---------- Cursos ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.course {
  display: flex; flex-direction: column; padding: 1.75rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cddbf6; }
.course__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.course__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-electric); color: var(--white); box-shadow: var(--shadow-glow); }
.course__icon .icon { width: 25px; height: 25px; }
.course__cat { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-700); }
.course h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.course > p { font-size: .95rem; color: var(--muted); margin-bottom: 1rem; }
.course__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.15rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; padding: .32rem .7rem; border-radius: 999px; background: var(--bg-blue); color: var(--blue-700); border: 1px solid #dbe6fb; }
.chip .icon { width: 14px; height: 14px; }
.chip--soft { background: var(--bg-soft); color: var(--muted); border-color: var(--line); }
.course .checklist { margin-bottom: 1.5rem; }
.course .btn { margin-top: auto; }

/* ---------- Pasos numerados (claros) ---------- */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: paso; }
.step-card {
  position: relative; padding: 1.75rem 1.5rem; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.step-card::before {
  counter-increment: paso; content: counter(paso, decimal-leading-zero);
  display: block; margin-bottom: 1rem; font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1;
  background: var(--grad-electric); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step-card h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.step-card p { font-size: .93rem; color: var(--muted); }
.section--dark .step-card { background: rgba(255, 255, 255, .03); border-color: rgba(148, 182, 255, .12); box-shadow: none; }
.section--dark .step-card h3 { color: var(--white); }
.section--dark .step-card p { color: var(--on-dark-muted); }

/* ---------- Galería + visor ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery__item {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px;
  cursor: zoom-in; background: var(--navy-900); text-align: left;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.gallery__item:hover img { transform: scale(1.05); opacity: .85; }
.gallery__cap {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem .9rem; color: var(--white); font-size: .9rem; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(4, 10, 28, .85));
}
.gallery__cap small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--electric-light); }
.gallery__item .badge-demo { top: .75rem; left: .75rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 4.5rem 4.5rem 3rem;
  background: rgba(4, 10, 28, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox__figure img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.lightbox__figure figcaption { margin-top: 1rem; text-align: center; color: var(--on-dark); font-size: .95rem; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  color: var(--white); font-size: 1.9rem; line-height: 1; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15);
  transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(59, 130, 246, .4); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-900); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post__media img { transform: scale(1.04); }
.post__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .75rem; font-size: .82rem; color: var(--muted); }
.post h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: .6rem; }
.post h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.post:hover h3 a { background-size: 100% 2px; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post { position: relative; }
.post__body > p { font-size: .95rem; color: var(--muted); margin-bottom: 1.1rem; }
.post .link-arrow { margin-top: auto; color: var(--blue-700); font-size: .92rem; }
.post:hover .link-arrow .icon { transform: translateX(4px); }
.post--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.post--featured .post__media { aspect-ratio: auto; min-height: 340px; }
.post--featured .post__body { padding: clamp(1.75rem, 4vw, 3rem); justify-content: center; }
.post--featured h3 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); }

/* Artículo */
.article { max-width: 780px; margin-inline: auto; }
.article__cover { margin: 0 0 2.75rem; }
.article__cover img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; object-fit: cover; }
.page-hero .post__meta { color: var(--on-dark-muted); margin-bottom: 0; margin-top: 1.25rem; }
.page-hero--center .post__meta { justify-content: center; }
.prose { color: #2a3344; font-size: 1.07rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 2.6rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45rem; }
.prose li::marker { color: var(--blue-600); font-weight: 700; }
.prose strong { color: var(--navy-900); }
.prose a { color: var(--blue-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose .lead { font-size: 1.2rem; color: var(--navy-800); line-height: 1.7; }
.tip {
  padding: 1.25rem 1.4rem; border-radius: 16px; border-left: 4px solid var(--blue-600);
  background: var(--bg-blue); color: var(--navy-800); font-size: 1rem;
}
.article-cta {
  margin-top: 3rem; padding: clamp(1.75rem, 4vw, 2.5rem); border-radius: var(--radius-lg); color: var(--on-dark);
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.article-cta h2 { color: var(--white); font-size: 1.35rem; margin-bottom: .35rem; }
.article-cta p { color: var(--on-dark-muted); }
.article-share { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-weight: 600; color: var(--muted); font-size: .92rem; }

/* ---------- Novedades ---------- */
.news-list { display: grid; gap: 1.25rem; max-width: 920px; margin-inline: auto; }
.news {
  display: grid; grid-template-columns: 112px 1fr; gap: 1.5rem; align-items: start; padding: 1.6rem;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.news__date {
  display: grid; place-items: center; text-align: center; padding: .9rem .5rem; border-radius: 16px;
  background: var(--bg-blue); border: 1px solid #d8e4fb; font-family: var(--font-head); color: var(--blue-700);
}
.news__date strong { font-size: 1.9rem; line-height: 1; font-weight: 800; }
.news__date span { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: .3rem; }
.news--featured .news__date { background: var(--grad-electric); color: var(--white); border-color: transparent; }
.news h2 { font-size: 1.25rem; margin: .5rem 0 .45rem; }
.news p { color: var(--muted); font-size: .97rem; }
.news .link-arrow { color: var(--blue-700); font-size: .92rem; margin-top: .85rem; }
.tag-example { display: inline-flex; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; background: #fff4e0; color: #9a5b00; border: 1px solid #fbe2b4; }

/* ---------- Redes sociales ---------- */
.social-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.social-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.social-card .card__icon { width: 64px; height: 64px; border-radius: 20px; color: var(--white); border: 0; }
.social-card .card__icon .icon { width: 30px; height: 30px; }
.social-card--whatsapp .card__icon { background: #1faa55; }
.social-card--facebook .card__icon { background: #1877f2; }
.social-card--instagram .card__icon { background: linear-gradient(45deg, #f9a825, #e1306c 50%, #833ab4); }
.social-card--tiktok .card__icon { background: #0b0b0f; }
.social-card--linkedin .card__icon { background: #0a66c2; }
.card.social-card:hover .card__icon { background-image: none; }
.social-card--instagram:hover .card__icon { background: linear-gradient(45deg, #f9a825, #e1306c 50%, #833ab4) !important; }
.social-card .btn { margin-top: auto; }
.social-card p { margin-bottom: 1.25rem; }

/* ---------- Mapa y ubicación ---------- */
.map-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; align-items: stretch; }
.map-embed { position: relative; min-height: 440px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--bg-blue); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.info-card { padding: clamp(1.75rem, 3vw, 2.25rem); border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); color: var(--on-dark); display: flex; flex-direction: column; gap: 1.5rem; }
.info-card h2 { color: var(--white); font-size: 1.45rem; }
.info-card .contact__list { margin: 0; }
.info-card .btn { margin-top: auto; }

/* ---------- Directorio ---------- */
.directory .card { display: flex; flex-direction: column; }
.directory .card p { margin-bottom: 1.25rem; }
.directory .card ul { margin-bottom: 1.5rem; }
.directory .btn { margin-top: auto; }

/* ---------- Mapa del sitio ---------- */
.sitemap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sitemap__group { padding: 1.75rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.sitemap__group h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; margin-bottom: 1rem; }
.sitemap__group h2 .icon { color: var(--blue-700); }
.sitemap__group h2 a:hover { color: var(--blue-700); }
.sitemap__group ul { display: grid; gap: .2rem; }
.sitemap__group li a { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; color: var(--muted); transition: color .2s, padding-left .2s; }
.sitemap__group li a .icon { width: 15px; height: 15px; color: var(--electric); }
.sitemap__group li a:hover { color: var(--blue-700); padding-left: .25rem; }

/* ---------- Formulario de inscripción / layout de formularios ---------- */
.form-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-aside h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.form-aside > p { color: var(--muted); margin-bottom: 1.75rem; }
.mini-steps { display: grid; gap: 1rem; counter-reset: mini; }
.mini-steps li { position: relative; padding-left: 3.25rem; }
.mini-steps li::before {
  counter-increment: mini; content: counter(mini);
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; color: var(--white); background: var(--grad-electric); box-shadow: var(--shadow-glow);
}
.mini-steps strong { display: block; font-family: var(--font-head); color: var(--navy-900); }
.mini-steps span { font-size: .93rem; color: var(--muted); }
.form-aside .notice { margin-top: 2rem; }

/* Selector de opciones: estilo para "Inscribirme" etc. */
.btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- Aula virtual ---------- */
.access-box {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.access-box h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: .5rem; }
.access-box p { color: var(--muted); }

/* ---------- Bloque de enlaces rápidos (home) ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.quick a.card { padding: 1.4rem; display: flex; flex-direction: column; }
.quick .card__icon { width: 44px; height: 44px; margin-bottom: .9rem; }
.quick .card h3 { font-size: 1.02rem; }
.quick .card p { font-size: .88rem; }

/* ---------- Enlace "ver más" en tarjetas de servicio ---------- */
.service__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; font-size: .9rem; font-weight: 600; color: var(--blue-700); align-self: center; }
.service__more .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.service__more:hover .icon { transform: translateX(3px); }
.service__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.section-foot { margin-top: 2.5rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .85rem; }

/* ---------- Página 404 ---------- */
.page-hero--404 { min-height: 100vh; display: grid; align-items: center; }
.err-code { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; letter-spacing: -.05em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .5rem; }

/* ---------- Responsive de páginas internas ---------- */
@media (max-width: 1100px) {
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  .quick { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__media { max-width: 620px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { max-width: 680px; }
  .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .mv { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; flex-wrap: wrap; gap: .5rem; }
  .side-nav p { width: 100%; margin-bottom: 0; }
  .side-nav a { background: var(--white); border: 1px solid var(--line); padding: .5rem .85rem; font-size: .9rem; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .post--featured { grid-template-columns: 1fr; }
  .post--featured .post__media { min-height: 0; aspect-ratio: 16 / 9; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .map-wrap { grid-template-columns: 1fr; }
  .sitemap { grid-template-columns: repeat(2, 1fr); }
  .form-layout { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .page-hero { text-align: left; }
  .page-hero__buttons .btn { width: 100%; }
  .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; }
  .checklist--2 { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .gallery__item { border-radius: 12px; }
  .gallery__cap { font-size: .78rem; padding: 2rem .7rem .6rem; }
  .gallery__cap small { display: none; }
  .gallery__item .badge-demo { display: none; }
  .social-grid { grid-template-columns: 1fr 1fr; }
  .news { grid-template-columns: 1fr; gap: 1rem; }
  .news__date { display: inline-flex; gap: .5rem; padding: .45rem .9rem; width: max-content; }
  .news__date strong { font-size: 1.1rem; }
  .news__date span { margin-top: 0; }
  .sitemap { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .access-box { grid-template-columns: 1fr; }
  .lightbox { padding: 4rem .75rem 5rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; translate: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
  .quick { grid-template-columns: 1fr 1fr; }
  .quick .card p { display: none; }
  .article-cta .btn { width: 100%; }
  .map-embed { min-height: 340px; }
}
@media (max-width: 400px) {
  .social-grid { grid-template-columns: 1fr; }
}
.post--featured .link-arrow { margin-top: .75rem; }

/* ==========================================================================
   Contenido editable desde el panel
   ========================================================================== */
/* Artículos del blog: el primer párrafo se destaca y las citas se ven como "consejo" */
.prose > p:first-child { font-size: 1.2rem; color: var(--navy-800); line-height: 1.7; }
.prose blockquote {
  padding: 1.25rem 1.4rem; border-radius: 16px; border-left: 4px solid var(--blue-600);
  background: var(--bg-blue); color: var(--navy-800); font-size: 1rem;
}
.prose blockquote > * + * { margin-top: .6rem; }
.prose img { border-radius: 16px; height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; }

/* Secciones cuando se quita la imagen o un bloque */
.split.split--solo { grid-template-columns: 1fr; max-width: 820px; }
.mv.mv--solo { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.post--noimg .post__body { padding-top: 1.75rem; }
.empty-note { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.steps-row[style*="--n:3"] { grid-template-columns: repeat(3, 1fr); }
.steps-row[style*="--n:2"] { grid-template-columns: repeat(2, 1fr); }
.steps-row[style*="--n:1"] { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
@media (max-width: 1024px) { .steps-row[style*="--n:3"] { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps-row[style] { grid-template-columns: 1fr; } }

/* Página de acceso al panel */
.panel-repo { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: .5rem; color: var(--on-dark-muted); font-size: .92rem; }
.panel-repo .icon { width: 16px; height: 16px; color: var(--electric-light); }
.panel-repo strong { color: var(--white); }
.eyebrow .icon { width: 14px; height: 14px; }

/* ==========================================================================
   Doctor TechRevive (diagnóstico), seguimiento de reparaciones y privacidad
   ========================================================================== */
picture { display: contents; }

.dx-section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.dx { max-width: 1000px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1.25rem, 3.5vw, 2.5rem); }
.dx-tabs { display: flex; gap: .4rem; padding: .35rem; margin-bottom: 1.6rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; flex-wrap: wrap; }
.dx-tab { padding: .6rem 1rem; border-radius: 10px; font-weight: 600; font-size: .94rem; color: var(--muted); }
.dx-tab:hover { color: var(--navy-900); }
.dx-tab.is-on { background: var(--white); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.dx-beta { display: inline-block; margin-left: .25rem; padding: .05rem .45rem; border-radius: 999px; background: var(--grad-electric); color: #fff; font-size: .7rem; font-weight: 700; vertical-align: 1px; }

.dx-progress { display: flex; gap: .5rem; margin-bottom: 1.8rem; counter-reset: dx; }
.dx-progress li { flex: 1; counter-increment: dx; position: relative; padding-top: .9rem; font-size: .8rem; font-weight: 600; color: #8a94a6; }
.dx-progress li::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 5px; background: var(--line); }
.dx-progress li.is-on { color: var(--blue-700); }
.dx-progress li.is-on::before { background: var(--grad-electric); }

.dx-q { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 1.1rem; }
.dx-help { color: var(--muted); margin: -.6rem 0 1.1rem; }
.dx-count { font-size: .82rem; font-weight: 600; color: var(--blue-700); letter-spacing: .02em; margin-bottom: .4rem; }
.dx-grid { display: grid; gap: .75rem; }
.dx-grid--eq { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dx-grid--sx { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.dx-grid--ans { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.dx-opt { display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left; padding: 1rem 1.1rem; border-radius: 16px; background: var(--white); border: 1.5px solid var(--line); color: var(--text); font-weight: 600; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease), background-color .2s; }
.dx-opt:hover { border-color: #b9cdf3; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.dx-opt[aria-pressed="true"] { border-color: var(--electric); background: var(--bg-blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
.dx-opt--eq { flex-direction: column; justify-content: center; text-align: center; padding: 1.4rem 1rem; gap: .6rem; }
.dx-opt__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 13px; background: var(--bg-blue); color: var(--blue-700); }
.dx-opt__icon .icon { width: 1.45em; height: 1.45em; }
.dx-opt--eq .dx-opt__icon { width: 56px; height: 56px; border-radius: 16px; }
.dx-opt__txt strong { display: block; color: var(--navy-900); font-size: .98rem; line-height: 1.3; }
.dx-opt__txt small { display: block; margin-top: .2rem; font-weight: 400; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.dx-opt--ans { min-height: 58px; font-weight: 500; }
.dx-opt--ans::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid #c5d4ef; transition: border-color .2s, box-shadow .2s; }
.dx-opt--ans:hover::before { border-color: var(--electric); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 9px var(--electric); }
.dx-back { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.3rem; padding: .4rem .2rem; color: var(--muted); font-weight: 600; font-size: .92rem; }
.dx-back:hover { color: var(--blue-700); }
.dx-back .icon { transform: scaleX(-1); width: 1.05em; }

.dx-label { display: block; font-size: .9rem; font-weight: 600; color: var(--navy-900); margin: 0 0 .45rem; }
.dx-select, .dx-textarea { width: 100%; padding: .85rem 1rem; border-radius: 12px; background: var(--bg-soft); border: 1.5px solid var(--line); margin-bottom: 1.1rem; font-size: .97rem; }
.dx-select { max-width: 320px; }
.dx-select:focus, .dx-textarea:focus { outline: none; border-color: var(--electric); background: var(--white); box-shadow: 0 0 0 4px rgba(59, 130, 246, .15); }
.dx-textarea { resize: vertical; min-height: 140px; }
.dx-ia__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dx-note { color: var(--muted); font-size: .82rem; max-width: 520px; }
.dx-ia__status, .dx-lead__status { margin-top: .8rem; font-size: .92rem; font-weight: 500; color: var(--blue-700); min-height: 1.2em; }
.dx-ia__status.is-error, .dx-lead__status.is-error { color: #dc2626; }
.dx-disclaimer { max-width: 820px; margin: 1.5rem auto 0; text-align: center; color: var(--muted); font-size: .84rem; }

/* Resultado */
.dx-result:focus { outline: none; }
.dx-res__head { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 1.2rem; align-items: start; padding-bottom: 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.dx-res__kicker { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-700); margin-bottom: .45rem; }
.dx-res__head h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.dx-res__sum { margin-top: .6rem; color: var(--muted); }
.dx-urg { border-radius: 16px; padding: .9rem 1rem; display: grid; gap: .25rem; border: 1px solid; }
.dx-urg strong { font-family: var(--font-head); font-size: .98rem; }
.dx-urg span { font-size: .85rem; line-height: 1.45; }
.dx-urg--alta { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.dx-urg--media { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.dx-urg--baja { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.dx-res__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.dx-box { border: 1px solid var(--line); border-radius: 18px; padding: 1.15rem 1.2rem; background: #fbfcff; min-width: 0; }
.dx-box h3 { font-size: 1rem; margin-bottom: .8rem; }
.dx-box--ok { background: #f3fbf6; border-color: #cfeedd; }
.dx-box--no { background: #fff7f7; border-color: #f6d4d4; }
.dx-causes { display: grid; gap: .8rem; }
.dx-cause { padding-bottom: .8rem; border-bottom: 1px dashed var(--line); }
.dx-cause:last-child { border-bottom: 0; padding-bottom: 0; }
.dx-cause__head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.dx-cause__head strong { color: var(--navy-900); font-size: .96rem; line-height: 1.35; }
.dx-cause--top .dx-cause__head strong { font-size: 1.04rem; }
.dx-cause p { margin-top: .35rem; font-size: .88rem; color: var(--muted); }
.dx-lvl { flex: none; font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.dx-lvl--alta { background: #dbeafe; color: #1e40af; }
.dx-lvl--media { background: #e0f2fe; color: #075985; }
.dx-lvl--baja { background: #f1f5f9; color: #475569; }
.dx-meter { height: 6px; border-radius: 6px; background: #e8eef9; margin-top: .45rem; overflow: hidden; }
.dx-meter span { display: block; height: 100%; border-radius: inherit; background: var(--grad-electric); }
.dx-svcs li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.dx-svcs li:last-child { border-bottom: 0; }
.dx-svcs strong { white-space: nowrap; color: var(--blue-700); font-family: var(--font-head); }
.dx-box--price .dx-note { display: block; margin-top: .6rem; }
.dx-list { display: grid; gap: .5rem; }
.dx-list li { position: relative; padding-left: 1.2rem; font-size: .92rem; }
.dx-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--electric); }
.dx-box--ok .dx-list li::before { background: #16a34a; }
.dx-box--no .dx-list li::before { background: #dc2626; }
.dx-cta { margin-top: 1.4rem; padding: 1.4rem; border-radius: 20px; color: var(--on-dark); background: radial-gradient(90% 120% at 100% 0%, rgba(56, 189, 248, .18), transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy-800)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 1.4rem; align-items: center; }
.dx-cta__text strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: #fff; }
.dx-cta__text span { font-size: .92rem; color: var(--on-dark-muted); }
.dx-cta__btns { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.dx-lead { grid-column: 1 / -1; display: grid; gap: .8rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.dx-lead[hidden] { display: none; }
.dx-lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.dx-lead label { display: grid; gap: .35rem; font-size: .86rem; font-weight: 600; color: #fff; }
.dx-lead input { width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .07); color: #fff; font-weight: 400; }
.dx-lead input::placeholder { color: #8fa0c4; }
.dx-lead input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 189, 248, .2); }
.dx-lead .btn { justify-self: start; }
.dx-lead__status { color: var(--cyan); margin: 0; }
.dx-lead__status.is-ok { color: #86efac; }
.dx-lead__status.is-error { color: #fca5a5; }
.dx-restart { margin: 1.2rem auto 0; display: block; color: var(--blue-700); font-weight: 600; padding: .5rem 1rem; border-radius: 10px; }
.dx-restart:hover { background: var(--bg-blue); }

/* Portada: bloque del Doctor TechRevive */
.dx-promo { padding-block: clamp(3.5rem, 7vw, 5.5rem); background: radial-gradient(70% 90% at 90% 10%, rgba(56, 189, 248, .14), transparent 60%), var(--navy-900); }
.dx-promo__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.dx-promo h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.dx-promo__lead { margin-top: 1rem; color: var(--on-dark-muted); font-size: 1.05rem; max-width: 560px; }
.dx-promo__lead strong { color: #fff; }
.dx-promo__btns { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.dx-promo__card { background: rgba(255, 255, 255, .04); border: 1px solid rgba(148, 178, 255, .18); border-radius: var(--radius); padding: 1.4rem; }
.dx-promo__label { font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: .9rem; }
.dx-promo__chips { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.dx-promo__chip { display: flex; align-items: center; gap: .6rem; padding: .75rem .8rem; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(148, 178, 255, .14); color: var(--on-dark); font-size: .88rem; font-weight: 500; line-height: 1.3; transition: background-color .2s, border-color .2s; }
.dx-promo__chip .icon { color: var(--cyan); }
.dx-promo__chip:hover { background: rgba(59, 130, 246, .16); border-color: rgba(96, 165, 250, .45); }
.dx-promo__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; color: var(--electric-light); font-weight: 600; font-size: .92rem; }
.dx-promo__more:hover { color: #fff; }

/* Seguimiento de reparación */
.trk { max-width: 880px; }
.trk-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1.25rem, 3vw, 2rem); }
.trk-form__row { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 1rem; align-items: end; }
.trk-field label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy-900); margin-bottom: .45rem; }
.trk-input { width: 100%; padding: .9rem 1rem; border-radius: 12px; background: var(--bg-soft); border: 1.5px solid var(--line); font-size: 1.05rem; }
.trk-input:focus { outline: none; border-color: var(--electric); background: var(--white); box-shadow: 0 0 0 4px rgba(59, 130, 246, .15); }
.trk-input--code { text-transform: uppercase; letter-spacing: .12em; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 600; }
.trk-input--code::placeholder { letter-spacing: .12em; }
.trk-help { margin-top: .9rem; font-size: .86rem; color: var(--muted); }
.trk-status { margin-top: .4rem; font-weight: 500; font-size: .93rem; color: var(--blue-700); min-height: 1.2em; }
.trk-status.is-error { color: #dc2626; }
.trk-result { margin-top: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1.25rem, 3vw, 2rem); }
.trk-result:focus { outline: none; }
.trk-steps { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 1.8rem; }
.trk-steps__item { position: relative; display: grid; justify-items: center; gap: .45rem; text-align: center; font-size: .8rem; font-weight: 600; color: #8a94a6; }
.trk-steps__item::before { content: ""; position: absolute; top: 19px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.trk-steps__item:first-child::before { display: none; }
.trk-steps__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); color: #b4bfd1; }
.trk-steps__dot .icon { width: 1.1em; height: 1.1em; }
.trk-steps__item.is-done, .trk-steps__item.is-current { color: var(--navy-900); }
.trk-steps__item.is-done::before, .trk-steps__item.is-current::before { background: var(--electric); }
.trk-steps__item.is-done .trk-steps__dot { background: var(--electric); border-color: var(--electric); color: #fff; }
.trk-steps__item.is-current .trk-steps__dot { background: var(--white); border-color: var(--electric); color: var(--blue-700); box-shadow: 0 0 0 5px rgba(59, 130, 246, .16); }
.trk-result.is-delivered .trk-steps__item .trk-steps__dot { background: #16a34a; border-color: #16a34a; color: #fff; }
.trk-result.is-delivered .trk-steps__item::before { background: #16a34a; }
.trk-result.is-cancelled .trk-steps { opacity: .4; filter: grayscale(1); }
.trk-card__head { display: flex; align-items: center; gap: 1rem; }
.trk-card__icon { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 16px; background: var(--bg-blue); font-size: 1.6rem; }
.trk-card__code { font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: var(--blue-700); text-transform: uppercase; }
.trk-card__title { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.trk-card__note { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 14px; background: var(--bg-soft); border-left: 4px solid var(--electric); }
.trk-card__alert { margin-top: .8rem; padding: .8rem 1rem; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-weight: 500; font-size: .93rem; }
.trk-card__alert--ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.trk-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.trk-meta div { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; }
.trk-meta dt { font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.trk-meta dd { margin-top: .15rem; font-weight: 600; color: var(--navy-900); }
.trk-card__sub { font-size: 1rem; margin: 1.6rem 0 .8rem; }
.trk-timeline { display: grid; gap: 0; }
.trk-timeline li { position: relative; display: flex; gap: .9rem; padding-bottom: 1rem; }
.trk-timeline li::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.trk-timeline li:last-child::before { display: none; }
.trk-timeline__dot { flex: none; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: #c5d4ef; position: relative; z-index: 1; }
.trk-timeline li.is-last .trk-timeline__dot { background: var(--electric); box-shadow: 0 0 0 4px rgba(59, 130, 246, .18); }
.trk-timeline strong { color: var(--navy-900); font-size: .95rem; }
.trk-timeline time { margin-left: .5rem; font-size: .8rem; color: var(--muted); }
.trk-timeline p { margin-top: .2rem; font-size: .9rem; color: #3b4658; }
.trk-card__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* Aviso de privacidad */
.legal { max-width: 780px; }
.legal__date { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 .8rem; }
.legal ul { display: grid; gap: .6rem; }
.legal li { position: relative; padding-left: 1.3rem; color: #333d4f; }
.legal li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--electric); }
.legal a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .dx-res__head, .dx-res__grid, .dx-cta { grid-template-columns: 1fr; }
  .dx-cta__btns { justify-content: flex-start; }
  .dx-promo__inner { grid-template-columns: 1fr; }
  .trk-form__row { grid-template-columns: 1fr 1fr; }
  .trk-form__row .btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .dx-grid--eq { grid-template-columns: 1fr 1fr; }
  .dx-grid--sx, .dx-grid--ans { grid-template-columns: 1fr; }
  .dx-opt--sx { padding: .85rem .9rem; }
  .dx-opt--sx .dx-opt__icon { width: 40px; height: 40px; }
  .dx-progress li { font-size: 0; padding-top: .4rem; }
  .dx-lead__row { grid-template-columns: 1fr; }
  .dx-cta__btns .btn { width: 100%; justify-content: center; }
  .dx-promo__chips { grid-template-columns: 1fr; }
  .trk-form__row { grid-template-columns: 1fr; }
  .trk-steps__item { font-size: .68rem; }
  .trk-steps__dot { width: 34px; height: 34px; }
  .trk-steps__item::before { top: 16px; }
  .trk-card__actions .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   TECHREVIVE · Tarifario y cotizador (cotizador.html)
   ========================================================================== */
.cotz-section { padding-top: clamp(2rem, 4vw, 3rem); }
.cotz { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 1.75rem; align-items: start; }
.cotz__main { min-width: 0; }
.cotz__aside { position: sticky; top: calc(var(--header-h) + 18px); max-height: calc(100vh - var(--header-h) - 30px); overflow-y: auto; border-radius: var(--radius-lg); scrollbar-width: thin; scrollbar-color: #2b4a8f transparent; overscroll-behavior: contain; }

/* Encabezado con logo */
.cotz-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; position: relative; overflow: hidden;
}
.cotz-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-electric); }
.cotz-head__logo { width: min(340px, 100%); height: auto; }
.cotz-head__info { flex: 1 1 280px; display: flex; flex-direction: column; gap: .75rem; align-items: flex-end; text-align: right; }
.cotz-head__sub { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); font-size: 1.02rem; line-height: 1.3; }
.cotz-head__fields { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }
.cotz-head__fields .cf { width: 172px; text-align: left; }

/* Pasos */
.cotz-step {
  border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.5rem 1.5rem; margin: 0 0 1.25rem; min-width: 0;
}
.cotz-step__title { float: left; width: 100%; padding: 0; margin-bottom: 1.15rem; display: flex; align-items: center; gap: .85rem; }
.cotz-step__title > span:last-child { font-family: var(--font-head); font-weight: 800; font-size: 1.12rem; color: var(--navy-900); line-height: 1.25; }
.cotz-step__title small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .86rem; color: var(--muted); margin-top: .15rem; }
.cotz-step__num {
  flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-electric); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: .98rem;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .6);
}
.cotz-step__note { clear: both; display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: #8a5a00; background: #fff8e6; border: 1px solid #f4dca0; border-radius: 10px; padding: .55rem .8rem; margin-bottom: 1rem; }
.cotz-step__note .icon { width: 18px; height: 18px; flex: none; }
.cotz-step > *:not(legend) { clear: both; }

/* Campos */
.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem 1rem; }
.cf { display: flex; flex-direction: column; min-width: 0; }
.cf[hidden] { display: none; }
.cf--full { grid-column: 1 / -1; }
.cf > label, .cf-label { font-size: .85rem; font-weight: 600; color: var(--navy-900); margin-bottom: .4rem; }
.cf .req { color: var(--blue-700); }
.cf input, .cf select, .cf textarea, .parts input, .adjust select {
  width: 100%; padding: .72rem .9rem; border-radius: 11px; font: inherit; font-size: .95rem;
  background: var(--bg-soft); border: 1.5px solid var(--line); color: var(--text);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.cf select, .adjust select {
  -webkit-appearance: none; appearance: none; padding-right: 2.3rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23556072' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px;
}
.cf textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.cf input::placeholder, .cf textarea::placeholder, .parts input::placeholder { color: #8a94a6; }
.cf input:hover, .cf select:hover, .cf textarea:hover, .parts input:hover { border-color: #c5d4ef; }
.cf input:focus, .cf select:focus, .cf textarea:focus, .parts input:focus, .adjust select:focus, .svc-search input:focus {
  outline: none; background: var(--white); border-color: var(--electric); box-shadow: 0 0 0 4px rgba(59, 130, 246, .15);
}
.cf--inline label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .25rem; }
.cf--inline input { padding: .55rem .75rem; font-weight: 600; color: var(--navy-900); }
.cf-help { margin-top: .7rem; font-size: .86rem; color: var(--muted); display: flex; gap: .45rem; align-items: flex-start; }
.cf-help .icon { width: 17px; height: 17px; color: var(--blue-600); flex: none; margin-top: 2px; }
.cf-help strong { color: var(--navy-900); }

/* Chips (casillas) */
.chip-group { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input, .tipo-card input, .svc__main input, .switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip-check span {
  display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); font-size: .87rem; color: var(--text); transition: all .18s;
}
.chip-check span .icon { width: 14px; height: 14px; display: none; }
.chip-check:hover span { border-color: #bcd0f3; }
.chip-check input:checked + span { background: var(--bg-blue); border-color: var(--electric); color: var(--blue-700); font-weight: 600; }
.chip-check input:checked + span .icon { display: inline-block; }
.chip-check input:focus-visible + span, .tipo-card input:focus-visible ~ .tipo-card__name, .svc__main input:focus-visible ~ .svc__box,
.switch-row input:focus-visible + .switch-ui { outline: 3px solid rgba(59, 130, 246, .45); outline-offset: 2px; }

/* Tipos de servicio */
.tipo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.tipo-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; cursor: pointer;
  padding: .85rem .9rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); transition: all .18s;
}
.tipo-card:hover { border-color: #bcd0f3; transform: translateY(-1px); }
.tipo-card__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-blue); color: var(--blue-700); transition: all .18s; }
.tipo-card__icon .icon { width: 18px; height: 18px; }
.tipo-card__name { font-size: .88rem; font-weight: 600; color: var(--navy-900); line-height: 1.25; }
.tipo-card:has(input:checked) { border-color: var(--electric); background: var(--bg-blue); box-shadow: 0 8px 20px -12px rgba(37, 99, 235, .6); }
.tipo-card:has(input:checked) .tipo-card__icon { background: var(--grad-electric); color: var(--white); }
.tipo-card:has(input:checked)::after {
  content: "✓"; position: absolute; top: .55rem; right: .65rem; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-600); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center;
}

/* Interruptor urgencia */
.switch-row { display: flex; align-items: center; gap: .7rem; cursor: pointer; padding: .55rem 0; font-size: .92rem; font-weight: 600; color: var(--navy-900); position: relative; }
.switch-row small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.switch-ui { flex: none; width: 44px; height: 25px; border-radius: 999px; background: #cfd8e8; position: relative; transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.switch-row input:checked + .switch-ui { background: #f59e0b; }
.switch-row input:checked + .switch-ui::after { transform: translateX(19px); }

/* Tarifario */
.svc-tools { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.svc-search { flex: 1 1 260px; position: relative; }
.svc-search .icon { position: absolute; left: .85rem; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.svc-search input { width: 100%; padding: .7rem .9rem .7rem 2.5rem; border-radius: 11px; border: 1.5px solid var(--line); background: var(--bg-soft); font: inherit; font-size: .95rem; }
.svc-empty { font-size: .9rem; color: var(--muted); background: var(--bg-soft); border-radius: 10px; padding: .8rem 1rem; margin-bottom: .8rem; }
.svc-cat { border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: .6rem; background: var(--white); transition: border-color .2s, box-shadow .2s; }
.svc-cat[hidden] { display: none; }
.svc-cat > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem;
  font-family: var(--font-head); font-weight: 700; color: var(--navy-900); border-radius: 13px;
}
.svc-cat > summary::-webkit-details-marker { display: none; }
.svc-cat > summary:hover { background: var(--bg-soft); }
.svc-cat > summary:focus-visible { outline: 3px solid rgba(59, 130, 246, .45); outline-offset: 2px; }
.svc-cat__icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-blue); color: var(--blue-700); flex: none; }
.svc-cat__icon .icon { width: 17px; height: 17px; }
.svc-cat__name { flex: 1; }
.svc-cat__count { white-space: nowrap; font-family: var(--font-body); font-size: .74rem; font-weight: 600; color: var(--white); background: var(--blue-600); padding: .2rem .55rem; border-radius: 999px; }
.svc-cat__count[hidden] { display: none; }
.svc-cat__chev { display: grid; color: var(--muted); transition: transform .2s; }
.svc-cat__chev .icon { width: 16px; height: 16px; transform: rotate(90deg); }
.svc-cat[open] .svc-cat__chev { transform: rotate(180deg); }
.svc-cat.is-suggested { border-color: var(--electric); box-shadow: 0 0 0 4px rgba(59, 130, 246, .12); }
.svc-cat.is-suggested .svc-cat__name::after {
  content: "Sugerido"; margin-left: .55rem; font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--blue-700); background: var(--bg-blue); padding: .18rem .5rem; border-radius: 6px; vertical-align: middle;
}
.svc-list { list-style: none; padding: 0 .5rem .5rem; display: grid; gap: .2rem; }
.svc { display: flex; align-items: center; gap: .5rem; border-radius: 10px; transition: background .15s; }
.svc[hidden] { display: none; }
.svc:hover { background: var(--bg-soft); }
.svc:has(input:checked) { background: var(--bg-blue); }
.svc__main { flex: 1; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .6rem .6rem; cursor: pointer; position: relative; }
.svc__box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #c3cfe4; display: grid; place-items: center; background: #fff; transition: all .15s; }
.svc__box .icon { width: 14px; height: 14px; color: #fff; opacity: 0; }
.svc__main input:checked ~ .svc__box { background: var(--blue-600); border-color: var(--blue-600); }
.svc__main input:checked ~ .svc__box .icon { opacity: 1; }
.svc__name { font-size: .93rem; color: var(--text); line-height: 1.35; }
.svc__name small { display: block; color: var(--muted); font-size: .8rem; margin-top: .1rem; }
.svc__price { font-family: var(--font-head); font-weight: 800; color: var(--blue-700); white-space: nowrap; font-size: .97rem; }
.svc-desde { font-family: var(--font-body); font-weight: 600; font-size: .72rem; color: #b45309; text-transform: uppercase; letter-spacing: .03em; }
.svc-unit { font-family: var(--font-body); font-weight: 500; font-size: .76rem; color: var(--muted); }
.svc-qty input { width: 64px; padding: .45rem .5rem; border-radius: 9px; border: 1.5px solid var(--line); text-align: center; font: inherit; margin-right: .5rem; }
.svc-qty { display: none; }
.svc:has(input:checked) .svc-qty { display: block; }

/* Repuestos */
.parts__head, .parts__row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 130px 38px; gap: .5rem; align-items: center; }
.parts__head { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.parts__rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; margin-bottom: .8rem; }
.parts__row input { padding: .6rem .75rem; min-width: 0; width: 100%; }
.parts { min-width: 0; }
.parts__del { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: #b91c1c; cursor: pointer; font-size: .9rem; }
.parts__del:hover { background: #fef2f2; border-color: #fecaca; }
#part-add .icon { width: 16px; height: 16px; }

/* Descuento y anticipo */
.adjust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.adjust__item label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy-900); margin-bottom: .4rem; }
.adjust__row { display: grid; grid-template-columns: 1fr 84px; gap: .5rem; }

/* Nota */
.cotz-note { display: flex; gap: .8rem; align-items: flex-start; background: #fff8e6; border: 1px solid #f4dca0; border-left: 4px solid #f59e0b; border-radius: 14px; padding: 1rem 1.15rem; font-size: .9rem; color: #5b4300; }
.cotz-note .icon { width: 20px; height: 20px; flex: none; color: #d97706; margin-top: 2px; }

/* Resumen (columna derecha) */
.cotz-sum {
  background: radial-gradient(120% 70% at 100% 0%, #13306f 0%, var(--navy-900) 50%, var(--navy-950) 100%);
  color: var(--on-dark); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .06);
}
.cotz-sum__head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cotz-sum__eyebrow { display: flex; align-items: center; gap: .45rem; font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.05rem; }
.cotz-sum__eyebrow .icon { width: 19px; height: 19px; color: var(--cyan); }
.cotz-sum__no { font-size: .78rem; color: var(--on-dark-muted); }
.cotz-sum__no span { color: #fff; font-weight: 600; }
.cotz-sum__meta { display: grid; gap: .35rem; padding: .85rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); margin-bottom: 1rem; }
.cotz-sum__meta div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .5rem; font-size: .84rem; }
.cotz-sum__meta dt { color: var(--on-dark-muted); }
.cotz-sum__meta dd { color: #fff; overflow-wrap: anywhere; }
.cotz-sum__items { list-style: none; padding: 0; display: grid; gap: .5rem; margin-bottom: 1rem; scrollbar-width: thin; }
.cotz-sum__items li { display: flex; justify-content: space-between; gap: .8rem; font-size: .87rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.cotz-sum__items li strong { color: #fff; white-space: nowrap; font-weight: 600; }
.cotz-sum__items em { color: var(--cyan); font-style: normal; font-weight: 600; }
.cotz-sum__items .tag-desde { font-size: .68rem; color: #fbbf24; text-transform: uppercase; font-weight: 700; }
.cotz-sum__empty { color: var(--on-dark-muted); font-style: italic; justify-content: center !important; border: 0 !important; }
.cotz-sum__totals { display: grid; gap: .35rem; margin-bottom: .9rem; }
.cotz-sum__totals div { display: flex; justify-content: space-between; font-size: .9rem; }
.cotz-sum__totals div[hidden] { display: none; }
.cotz-sum__totals dt { color: var(--on-dark-muted); }
.cotz-sum__totals dd { color: #fff; font-weight: 600; }
.cotz-sum__total { margin-top: .4rem; padding: .9rem 1rem; border-radius: 14px; background: var(--grad-electric); align-items: center; box-shadow: var(--shadow-glow); }
.cotz-sum__total dt { color: #fff !important; font-family: var(--font-head); font-weight: 700; }
.cotz-sum__total dd { font-family: var(--font-head); font-size: 1.55rem; font-weight: 800; letter-spacing: -.01em; }
.cotz-sum__desde { display: flex; gap: .45rem; font-size: .8rem; color: #fcd34d; margin-bottom: .9rem; line-height: 1.4; }
.cotz-sum__desde[hidden] { display: none; }
.cotz-sum__desde .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.cotz-sum__actions { display: grid; gap: .6rem; }
.cotz-sum__actions .btn .icon { width: 18px; height: 18px; }
.cotz-sum__actions #btn-print .icon { color: var(--blue-600); }
.wa-dest { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: .3rem; border-radius: 12px; background: rgba(255, 255, 255, .06); margin-top: .2rem; }
.wa-dest label { position: relative; cursor: pointer; }
.wa-dest input { position: absolute; opacity: 0; }
.wa-dest span { display: block; text-align: center; padding: .45rem .4rem; border-radius: 9px; font-size: .82rem; color: var(--on-dark-muted); transition: all .15s; }
.wa-dest input:checked + span { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
.wa-dest input:focus-visible + span { outline: 2px solid var(--cyan); }
.cotz-sum__saved { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: .9rem; font-size: .76rem; color: var(--on-dark-muted); }
.cotz-sum__saved .icon { width: 14px; height: 14px; color: #34d399; }

/* Barra inferior en móvil */
.cotz-mobilebar { display: none; }
.qp { display: none; }

@media (max-width: 1080px) {
  .cotz { grid-template-columns: 1fr; }
  .cotz__aside { position: static; max-height: none; overflow: visible; }
  .cotz-mobilebar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .7rem .8rem .7rem 1.1rem; border-radius: 16px; background: var(--navy-900); color: var(--on-dark); box-shadow: var(--shadow-lg);
    font-size: .85rem; transform: translateY(140%); transition: transform .3s var(--ease);
  }
  .cotz-mobilebar strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.15rem; }
  .cotz-mobilebar.is-show { transform: none; }
  body.is-cotizador .wa-float { bottom: 92px; }
}
@media (max-width: 640px) {
  .cf-grid { grid-template-columns: 1fr; }
  .cotz-step { padding: 1.15rem 1rem 1.2rem; }
  .cotz-head { padding: 1.1rem 1rem; }
  .cotz-head__info { align-items: stretch; text-align: left; }
  .cotz-head__fields { justify-content: stretch; }
  .cotz-head__fields .cf { flex: 1 1 120px; width: auto; min-width: 0; }
  .tipo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc__main { gap: .6rem; padding: .6rem .4rem; }
  .svc__price { font-size: .9rem; text-align: right; white-space: normal; max-width: 78px; }
  .cotz-head__fields .cf--inline input { padding: .5rem .55rem; font-size: .86rem; }
  .parts__head { display: none; }
  .parts__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px; padding: .6rem; border: 1px solid var(--line); border-radius: 12px; }
  .parts__row .p-desc { grid-column: 1 / -1; }
  .adjust { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Impresión: solo se imprime la cotización (con logo), nada del sitio.
   ========================================================================== */
@media print {
  @page { size: letter; margin: 11mm 12mm; }
  html, body { background: #fff !important; }
  body.is-cotizador > *:not(#qp) { display: none !important; }
  body.is-cotizador #qp { display: block !important; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
.qp { font-family: var(--font-body); color: #1b2333; font-size: 9.2pt; line-height: 1.35; }
.qp h3 { font-family: var(--font-head); }
.qp-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qp-logo { width: 255px; height: auto; display: block; }
.qp-title { font-family: var(--font-head); font-weight: 800; font-size: 21pt; letter-spacing: .12em; text-transform: uppercase; color: #071233; text-align: right; margin-bottom: 4px; }
.qp-meta { border-collapse: collapse; margin-left: auto; font-size: 9pt; }
.qp-meta th { text-align: right; color: #556072; font-weight: 600; padding: 1px 8px 1px 0; }
.qp-meta td { text-align: right; font-weight: 700; color: #071233; }
.qp-bar { height: 5px; border-radius: 3px; background: linear-gradient(90deg, #071233 0%, #1d4ed8 55%, #38bdf8 100%); margin: 10px 0 6px; }
.qp-contact { font-size: 8.4pt; color: #556072; text-align: center; margin-bottom: 10px; }
.qp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; align-items: stretch; }
.qp-box { border: 1px solid #cdd8ea; border-radius: 7px; overflow: hidden; break-inside: avoid; margin-bottom: 8px; }
.qp-grid .qp-box { margin-bottom: 0; }
.qp-box h3 { font-size: 8.4pt; text-transform: uppercase; letter-spacing: .07em; color: #0b1c4a; background: #eaf1ff; padding: 4px 9px; border-bottom: 1px solid #cdd8ea; }
.qp-box dl { padding: 5px 9px 6px; display: grid; gap: 1px; }
.qp-box dl div { display: grid; grid-template-columns: 100px 1fr; gap: 6px; }
.qp-box--wide dl div { grid-template-columns: 110px 1fr; }
.qp-box dt { color: #556072; }
.qp-box dd { font-weight: 600; color: #111827; overflow-wrap: anywhere; }
.qp-box--wide dl { grid-template-columns: 1fr 1fr; column-gap: 14px; border-top: 1px dashed #dbe3f0; }
.qp-p { padding: 4px 9px 0; }
.qp-p:last-of-type { padding-bottom: 5px; }
.qp-p strong { color: #0b1c4a; }
.qp-box--tech { border-color: #9db8ee; }
.qp-table { width: 100%; border-collapse: collapse; margin: 4px 0 8px; font-size: 9pt; }
.qp-table thead th { background: #071233; color: #fff; text-align: left; padding: 5px 8px; font-weight: 600; }
.qp-table thead th:first-child { width: 26px; }
.qp-table th:nth-child(n+3), .qp-table td:nth-child(n+3) { text-align: right; white-space: nowrap; }
.qp-table td { padding: 5px 8px; border-bottom: 1px solid #e2e8f3; vertical-align: top; }
.qp-table td small { display: block; color: #7a8599; font-size: 7.6pt; }
.qp-table tbody tr:nth-child(even) td { background: #f6f9ff; }
.qp-table tr { break-inside: avoid; }
.qp-none { text-align: center !important; color: #7a8599; font-style: italic; padding: 10px !important; }
.qp-sum { display: grid; grid-template-columns: 1fr 285px; gap: 14px; align-items: start; break-inside: avoid; margin-bottom: 8px; }
.qp-sum__note { font-size: 8.2pt; color: #4b5568; display: grid; gap: 4px; background: #fff8e6; border: 1px solid #f4dca0; border-radius: 7px; padding: 7px 9px; }
.qp-totals { width: 100%; border-collapse: collapse; font-size: 9.2pt; }
.qp-totals th { text-align: left; font-weight: 500; color: #4b5568; padding: 3px 8px; }
.qp-totals td { text-align: right; font-weight: 600; padding: 3px 8px; white-space: nowrap; }
.qp-totals .qp-total th, .qp-totals .qp-total td { background: #1d4ed8; color: #fff; font-size: 11.5pt; font-weight: 800; padding: 7px 8px; }
.qp-totals .qp-total th { border-radius: 6px 0 0 6px; }
.qp-totals .qp-total td { border-radius: 0 6px 6px 0; }
.qp-totals .qp-saldo th, .qp-totals .qp-saldo td { font-weight: 800; color: #071233; }
.qp-cond { break-inside: avoid; margin-bottom: 6px; }
.qp-cond h3 { font-size: 8.4pt; text-transform: uppercase; letter-spacing: .07em; color: #0b1c4a; margin-bottom: 3px; }
.qp-cond ol { list-style: decimal; padding-left: 16px; font-size: 7.8pt; color: #4b5568; display: grid; gap: 1px; }
.qp-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin: 34px 30px 10px; break-inside: avoid; }
.qp-sign div { text-align: center; font-size: 8.6pt; color: #4b5568; }
.qp-sign span { display: block; border-top: 1.4px solid #071233; margin-bottom: 4px; }
.qp-sign small { display: block; font-weight: 600; color: #111827; min-height: 1em; }
.qp-foot { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 8pt; color: #1d4ed8; font-weight: 600; border-top: 1px solid #e2e8f3; padding-top: 7px; break-inside: avoid; }
.qp-foot img { width: 110px; height: auto; }
.qp-totals .qp-total td { box-shadow: -2px 0 0 #1d4ed8; }

