/* ═══════════════════════════════════════════════════════════
   CREA — WEB · extra (fusión estructura INN + features)
   text-band · proyectos · stats/about · contacto form · chat IA
═══════════════════════════════════════════════════════════ */

/* ═══════════ TEXT BAND (marquee tipográfico, sello INN) ═══════════ */
.band { background: var(--ink); color: #fff; padding-block: 26px; overflow: hidden; border-block: 1px solid rgba(255,255,255,0.08); }
.band--navy { background: var(--navy); }
.band__track { display: flex; align-items: center; gap: 36px; white-space: nowrap; width: max-content; animation: bandscroll 28s linear infinite; }
.band--rev .band__track { animation-direction: reverse; }
.band__track span { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(26px, 4vw, 52px); font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.band__track .out { -webkit-text-stroke: 1.4px rgba(255,255,255,0.55); color: transparent; }
.band__track .dot { color: var(--red); font-size: 0.6em; }
.band:hover .band__track { animation-play-state: paused; }
@keyframes bandscroll { to { transform: translateX(-50%); } }

/* ═══════════ PROYECTOS ═══════════ */
.proyectos { background: var(--paper); }
.proyectos__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: 40px; }
.proyectos__title { font-size: clamp(34px, 5.4vw, 74px); line-height: 0.96; letter-spacing: -0.02em; margin-top: 18px; }
.proyectos__title .ac { color: var(--red); }
.proyectos__intro { max-width: 38ch; font-size: 16px; color: var(--text-mid); line-height: 1.6; text-wrap: pretty; }

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filter { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 18px; border-radius: 100px;
  background: transparent; border: 1.5px solid var(--line); color: var(--text-mid); cursor: pointer; transition: .25s var(--spring); }
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.proj { position: relative; border-radius: 18px; overflow: hidden; background: var(--navy-deep); cursor: pointer;
  grid-column: span 4; aspect-ratio: 4/5; transition: transform .5s var(--spring), box-shadow .5s, opacity .4s, filter .4s; }
.proj.col-6 { grid-column: span 6; aspect-ratio: 16/11; }
.proj.col-8 { grid-column: span 8; aspect-ratio: 16/10; }
.proj:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(20,36,88,0.28); }
.proj.hide { display: none; }
.proj__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--spring); }
.proj:hover .proj__img { transform: scale(1.05); }
.proj__img--contain { object-fit: contain; padding: 16%; }
.proj__tint { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(10,12,24,0.82)); z-index: 1; }
.proj--brand { background: linear-gradient(150deg, var(--navy), var(--navy-deep)); }
.proj--brand-red { background: linear-gradient(150deg, #2a0d12, var(--ink)); }
.proj__logo { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.proj__logo img { width: 46%; max-height: 38%; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.92; }
.proj__ph { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 12px, transparent 12px 24px); }
.proj__ph span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45);
  border: 1px dashed rgba(255,255,255,0.25); padding: 8px 14px; border-radius: 100px; }
.proj__meta { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; }
.proj__cat { display: inline-block; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,0.16); backdrop-filter: blur(6px); padding: 5px 11px; border-radius: 100px; margin-bottom: 12px; }
.proj__name { font-family: var(--f-display); text-transform: uppercase; font-size: 26px; font-weight: 600; color: #fff; line-height: 1; letter-spacing: -0.01em; }
.proj__view { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85);
  opacity: 0; transform: translateY(6px); transition: .3s var(--spring); }
.proj:hover .proj__view { opacity: 1; transform: none; }
@media (max-width: 880px) {
  .proj, .proj.col-6, .proj.col-8 { grid-column: span 6; aspect-ratio: 4/5; }
}
@media (max-width: 540px) {
  .proj-grid { gap: 12px; }
  .proj, .proj.col-6, .proj.col-8 { grid-column: span 12; aspect-ratio: 4/3; }
}

/* ═══════════ ABOUT + STATS ═══════════ */
.about { background: var(--ink); color: #fff; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.about__title { font-size: clamp(30px, 4vw, 54px); line-height: 1.05; margin-top: 20px; }
.about__title .ac { color: var(--navy-light); }
.about__body { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.68); margin-top: 22px; max-width: 52ch; text-wrap: pretty; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; overflow: hidden; }
.stat { background: var(--ink); padding: 34px 28px; transition: background .35s; }
.stat:hover { background: #15151a; }
.stat__v { font-family: var(--f-display); font-size: clamp(40px, 5vw, 64px); font-weight: 600; line-height: 0.9; letter-spacing: -0.02em; }
.stat__v .ac { color: var(--navy-light); }
.stat__l { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: 14px; line-height: 1.5; }
@media (max-width: 820px) { .about__grid { grid-template-columns: 1fr; } }

/* ═══════════ CONTACTO (form + WhatsApp + agenda) ═══════════ */
.contacto { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.contacto__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(680px 460px at 82% -10%, rgba(77,127,232,0.4), transparent 62%),
              radial-gradient(540px 420px at 6% 110%, rgba(204,34,51,0.18), transparent 60%); }
.contacto__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 76px); align-items: start; }
.contacto__title { font-size: clamp(36px, 5vw, 68px); line-height: 0.98; letter-spacing: -0.03em; }
.contacto__sub { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.76); margin-top: 24px; max-width: 42ch; text-wrap: pretty; }
.contacto__alts { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.contacto__alt { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 16px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); transition: .25s var(--spring); }
.contacto__alt:hover { background: rgba(255,255,255,0.1); transform: translateX(4px); }
.contacto__alt-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.contacto__alt-ic svg { width: 22px; height: 22px; }
.contacto__alt b { display: block; font-size: 15px; font-weight: 600; }
.contacto__alt span { font-size: 13px; color: rgba(255,255,255,0.6); }

.cform { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 22px; padding: clamp(26px, 3vw, 38px); backdrop-filter: blur(10px); }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cfield { margin-top: 14px; }
.cfield:first-child { margin-top: 0; }
.cfield label { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.cfield input, .cfield textarea, .cfield select {
  width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: 12px;
  padding: 14px 16px; color: #fff; font-family: var(--f-ui); font-size: 15px; transition: border-color .2s, background .2s; }
.cfield input::placeholder, .cfield textarea::placeholder { color: rgba(255,255,255,0.35); }
.cfield input:focus, .cfield textarea:focus, .cfield select:focus { outline: none; border-color: var(--navy-light); background: rgba(255,255,255,0.1); }
.cfield textarea { resize: vertical; min-height: 96px; }
.cfield select option { color: #111; }
.cform__send { margin-top: 18px; width: 100%; justify-content: center; }
.cform__note { margin-top: 14px; text-align: center; font-size: 12.5px; color: rgba(255,255,255,0.5); }
@media (max-width: 860px) { .contacto__grid { grid-template-columns: 1fr; } .cform__row { grid-template-columns: 1fr; } }

/* ═══════════ CHAT IA — liquid glass ═══════════ */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 95; display: inline-flex; align-items: center; gap: 11px;
  padding: 13px 20px 13px 14px; border-radius: 100px; cursor: pointer; border: 1px solid rgba(255,255,255,0.35);
  background: rgba(27,47,110,0.55); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 14px 40px rgba(10,16,40,0.4), inset 0 1px 0 rgba(255,255,255,0.4);
  color: #fff; opacity: 0; transform: translateY(20px) scale(0.9); transition: all .45s var(--spring); }
.chat-fab.show { opacity: 1; transform: none; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab__dot { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(150deg, var(--navy-light), #6f9bf0);
  display: grid; place-items: center; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); }
.chat-fab__dot svg { width: 20px; height: 20px; fill: #fff; }
.chat-fab__txt { font-size: 14px; font-weight: 600; line-height: 1.1; }
.chat-fab__txt small { display: block; font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); font-weight: 400; margin-top: 2px; }
.chat-fab__pulse { position: absolute; top: 12px; left: 40px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: chatpulse 2s infinite; }
@keyframes chatpulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,0.5)} 70%{box-shadow:0 0 0 8px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }

.chat { position: fixed; right: 22px; bottom: 22px; z-index: 130; width: min(390px, calc(100vw - 32px)); height: min(620px, calc(100vh - 44px));
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
  background: rgba(18,22,40,0.72); backdrop-filter: blur(26px) saturate(170%); -webkit-backdrop-filter: blur(26px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 30px 80px rgba(6,10,28,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
  opacity: 0; transform: translateY(24px) scale(0.96); pointer-events: none; transform-origin: bottom right; transition: all .4s var(--spring); }
.chat.open { opacity: 1; transform: none; pointer-events: auto; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 18px 18px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(150deg, var(--navy-light), #6f9bf0); display: grid; place-items: center; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); }
.chat__avatar svg { width: 20px; height: 20px; fill: #fff; }
.chat__id b { color: #fff; font-size: 15px; font-family: var(--f-display); text-transform: uppercase; letter-spacing: 0.01em; }
.chat__id span { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 2px; }
.chat__id span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.chat__close { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,0.08); color: #fff; font-size: 18px; display: grid; place-items: center; transition: background .2s; }
.chat__close:hover { background: rgba(255,255,255,0.18); }
.chat__body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.chat__body::-webkit-scrollbar { width: 5px; } .chat__body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.msg { max-width: 84%; padding: 12px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }
.msg--bot { align-self: flex-start; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); color: #fff; border-bottom-left-radius: 5px; }
.msg--user { align-self: flex-end; background: var(--navy-light); color: #06122e; font-weight: 500; border-bottom-right-radius: 5px; }
.msg--bot strong { font-weight: 700; }
.msg__link { color: #9cc0ff; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.msg__link:hover { opacity: 0.82; }
.msg--typing { display: inline-flex; gap: 5px; align-items: center; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.6); animation: typing 1.2s infinite; }
.msg--typing i:nth-child(2){animation-delay:.2s}.msg--typing i:nth-child(3){animation-delay:.4s}
@keyframes typing { 0%,60%,100%{opacity:.3;transform:translateY(0)} 30%{opacity:1;transform:translateY(-3px)} }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 18px 14px; }
.chat__chip { font-size: 12.5px; line-height: 1.25; font-weight: 500; padding: 9px 15px; border-radius: 100px; cursor: pointer;
  max-width: 100%; white-space: nowrap; color: rgba(255,255,255,0.94);
  background: linear-gradient(180deg, rgba(255,255,255,0.17), rgba(255,255,255,0.06));
  backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 14px rgba(6,10,28,0.22);
  transition: .25s var(--spring); }
.chat__chip:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.42);
  background: linear-gradient(180deg, rgba(255,255,255,0.27), rgba(255,255,255,0.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.42), 0 8px 22px rgba(6,10,28,0.3); }
.chat__chip:active { transform: translateY(0) scale(0.97); }
.chat__foot { padding: 12px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; gap: 9px; align-items: flex-end; }
.chat__input { flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: 14px;
  padding: 12px 14px; color: #fff; font-family: var(--f-ui); font-size: 14.5px; resize: none; max-height: 90px; min-height: 44px; }
.chat__input::placeholder { color: rgba(255,255,255,0.4); }
.chat__input:focus { outline: none; border-color: var(--navy-light); }
.chat__send { width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer; background: var(--navy-light); display: grid; place-items: center; flex-shrink: 0; transition: .2s var(--spring); }
.chat__send:hover { background: #6f9bf0; transform: translateY(-1px); }
.chat__send:disabled { opacity: 0.5; cursor: default; transform: none; }
.chat__send svg { width: 19px; height: 19px; fill: #06122e; }
.chat__wa { margin: 0 18px 14px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px;
  background: #25D366; color: #06311a; font-size: 14px; font-weight: 600; transition: .2s var(--spring); }
.chat__wa:hover { background: #1fbb59; }
.chat__wa svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 520px) {
  /* Alto controlado por JS con visualViewport (--chat-vh): cuando se abre el
     teclado, el panel se achica para quedar SIEMPRE por encima del teclado y
     no superponerse. Si JS no corre, cae al dvh/vh clásico. */
  .chat { right: 8px; left: 8px; bottom: calc(8px + env(safe-area-inset-bottom));
    width: auto;
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px - env(safe-area-inset-bottom));
    height: var(--chat-vh, calc(100dvh - 16px - env(safe-area-inset-bottom)));
    max-height: none; border-radius: 20px; }
  .chat__head { padding-top: max(16px, env(safe-area-inset-top)); }
  .chat__close { width: 40px; height: 40px; font-size: 22px; }
  .chat-fab__txt { display: none; }
  .chat-fab { padding: 12px; }
  /* chips: cada uno en UNA sola línea (nowrap) y que floten como unidades;
     antes con white-space:normal "Quiero una web" se partía en 3 renglones */
  .chat__chips { padding: 4px 14px 14px; gap: 8px; }
  .chat__chip { white-space: nowrap; font-size: 13px; padding: 10px 16px; }
}

/* con el chat abierto en mobile, ocultamos el nav flotante para que la X del
   chat no choque con la hamburguesa (antes, al tocar la X se abría el menú) */
@media (max-width: 860px) {
  body.chat-open .nav { opacity: 0; pointer-events: none; transform: translateY(-12px); }
}

/* ═══════════ BARRA DE URGENCIA (ticker) ═══════════
   Línea fina arriba de todo con mensajes de urgencia que van pasando.
   Solo aparece en páginas que tienen el elemento .ticker (home). */
.ticker {
  position: fixed; top: 0; left: 0; right: 0; z-index: 98;
  height: 36px; display: flex; align-items: center; gap: 12px;
  padding: 0 clamp(12px, 3vw, 22px);
  background: linear-gradient(90deg, #0b1736, #15275f 50%, #0b1736);
  color: #fff; overflow: hidden; text-decoration: none;
  font-family: var(--f-ui, 'Inter', sans-serif); font-size: 12.5px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 18px -10px rgba(7,12,30,0.6);
}
.ticker__pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: chatpulse 2s infinite; }
.ticker__win { flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 90%, transparent); }
.ticker__track { display: inline-flex; align-items: center; gap: 26px; white-space: nowrap;
  animation: tickerScroll 34s linear infinite; will-change: transform; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { color: rgba(255,255,255,0.80); }
.ticker__item b { color: #fff; font-weight: 700; }
.ticker__item b.gold { color: #E9C77B; }
.ticker__sep { color: rgba(233,199,123,0.55); }
.ticker__cta { flex-shrink: 0; font-weight: 600; color: #E9C77B; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.ticker__cta .arrow { transition: transform .3s var(--spring); }
.ticker:hover .ticker__cta .arrow { transform: translateX(4px); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }
@media (max-width: 600px) { .ticker { height: 34px; font-size: 12px; } .ticker__cta { display: none; } }

/* el nav se corre hacia abajo SOLO si hay ticker arriba.
   !important porque web-premium.css fija .nav { top: 18px !important } y
   .nav.scrolled { top: 12px !important } y cargan después que este archivo. */
.ticker ~ .nav { top: calc(36px + 8px) !important; }
.ticker ~ .nav.scrolled { top: calc(36px + 4px) !important; }
@media (max-width: 600px) {
  .ticker ~ .nav { top: calc(34px + 6px) !important; }
  .ticker ~ .nav.scrolled { top: calc(34px + 4px) !important; }
}
/* con el chat o el menú mobile abierto, el ticker queda tapado: lo ocultamos */
body.chat-open .ticker, body.menu-open .ticker { opacity: 0; pointer-events: none; }

/* ═══════════ BANNER · REGISTRO DE MARCA (home) ═══════════
   Banda promocional del servicio nuevo, self-contained (no depende de
   recursos-archive.css). Mismo lenguaje visual que el house-ad de Recursos. */
/* aire arriba/abajo para que el nav flotante nunca quede montado sobre la
   tarjeta oscura al scrollear (deja una banda clara de separación) */
.homemark-sec { padding-block: clamp(34px, 6vw, 72px); scroll-margin-top: 110px; }
.homemark {
  position: relative; overflow: hidden; isolation: isolate;
  display: block; border-radius: 22px; text-decoration: none; color: #fff;
  min-height: 196px;
  background: linear-gradient(135deg, #12245c 0%, #0b1736 78%);
  box-shadow: 0 26px 60px -28px rgba(11,23,54,0.7);
  transition: transform .4s var(--spring), box-shadow .4s var(--spring);
}
.homemark:hover { transform: translateY(-3px); box-shadow: 0 34px 70px -26px rgba(11,23,54,0.8); }
.homemark__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.homemark__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 90% at 85% 8%, #000, transparent 70%);
  mask-image: radial-gradient(120% 90% at 85% 8%, #000, transparent 70%);
}
.homemark__seal {
  position: absolute; z-index: 1; right: clamp(18px, 5vw, 64px); top: 50%; transform: translateY(-50%);
  font-family: var(--f-display); font-weight: 700; font-size: clamp(120px, 18vw, 210px);
  line-height: 1; color: rgba(233,199,123,0.14); pointer-events: none;
}
.homemark__in {
  position: relative; z-index: 2; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(22px, 4vw, 52px); padding: clamp(28px, 3.2vw, 44px) clamp(26px, 3.6vw, 52px);
}
.homemark__txt { max-width: 60ch; }
.homemark__lab {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #E9C77B; margin-bottom: 14px;
}
.homemark__lab::before { content: ""; width: 24px; height: 1.5px; background: currentColor; opacity: 0.7; }
.homemark__title {
  font-family: var(--f-display); text-transform: uppercase; font-weight: 600; letter-spacing: 0.004em;
  font-size: clamp(24px, 3.2vw, 38px); line-height: 1.04; color: #fff;
}
.homemark__title .ac { color: #E9C77B; }
.homemark__sub { font-family: var(--f-ui, 'Inter', sans-serif); font-size: 15px; line-height: 1.55; margin-top: 14px; color: rgba(255,255,255,0.78); text-wrap: pretty; }
.homemark__cta { white-space: nowrap; flex-shrink: 0; }
.homemark__cta .arrow { transition: transform .3s var(--spring); }
.homemark:hover .homemark__cta .arrow { transform: translateX(5px); }
@media (max-width: 680px) {
  .homemark__in { flex-direction: column; align-items: flex-start; gap: 20px; }
  .homemark__cta { width: 100%; justify-content: center; }
  .homemark__title { font-size: 23px; max-width: none; }
  .homemark__seal { right: 8px; top: 10px; transform: none; font-size: 88px; }
}

/* ═══════════ FORM · corner decorations (estilo index) ═══════════ */
.cform { position: relative; overflow: hidden; }
.cform__corner { position: absolute; width: 26px; height: 26px; z-index: 2; pointer-events: none; opacity: .7; }
.cform__corner--tl { top: 16px; left: 16px; border-top: 2px solid var(--navy-light); border-left: 2px solid var(--navy-light); border-top-left-radius: 6px; }
.cform__corner--br { bottom: 16px; right: 16px; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); border-bottom-right-radius: 6px; }
.cfield__opt { text-transform: none; letter-spacing: 0; opacity: .55; font-size: 0.92em; }

/* ═══════════ CAT · botón "ver planes" ═══════════ */
.cat { font: inherit; text-align: left; cursor: pointer; width: 100%; position: relative; }
.cats__lab-hint { color: var(--navy-light); }
.cat__see { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); margin-top: 6px; opacity: 0; transform: translateY(4px);
  transition: opacity .25s, transform .25s; }
.cat:hover .cat__see, .cat:focus-visible .cat__see { opacity: 1; transform: none; }

/* ═══════════ MODAL · planes del servicio ═══════════ */
.svc { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.svc.open { opacity: 1; pointer-events: auto; }
.svc__overlay { position: absolute; inset: 0; background: rgba(8,12,30,0.58); backdrop-filter: blur(8px) saturate(130%); -webkit-backdrop-filter: blur(8px) saturate(130%); }
.svc__card { position: relative; z-index: 1; width: min(880px, 100%); max-height: min(90vh, 880px); overflow-y: auto;
  background: rgba(18,22,42,0.9); backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 26px; padding: clamp(24px, 3.4vw, 42px);
  box-shadow: 0 40px 100px rgba(6,10,28,0.6), inset 0 1px 0 rgba(255,255,255,0.22);
  transform: translateY(26px) scale(0.97); transition: transform .38s var(--spring); scrollbar-width: thin; }
.svc.open .svc__card { transform: none; }
.svc__card::before { content: ""; position: absolute; inset: 0; border-radius: 26px; pointer-events: none;
  background: radial-gradient(120% 80% at 88% -6%, rgba(77,127,232,0.2), transparent 60%); }
.svc__card::-webkit-scrollbar { width: 6px; } .svc__card::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 5px; }
.svc__close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.08); color: #fff; font-size: 21px; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.svc__close:hover { background: rgba(255,255,255,0.18); }
.svc__eyebrow { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-light); }
.svc__title { font-family: var(--f-display); text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.02; color: #fff; margin-top: 12px; }
.svc__eyebrow, .svc__title, .svc__tag, .svc__plansbar, .svc__intro, .svc__plans, .svc__foot { position: relative; z-index: 1; }
.svc__tag { font-size: 15.5px; line-height: 1.55; color: rgba(255,255,255,0.72); margin-top: 12px; max-width: 52ch; text-wrap: pretty; }

/* barra de conteo */
.svc__plansbar { margin-top: 22px; display: flex; align-items: center; gap: 12px;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.svc__plansbar-lab { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.42); }
.svc__plansbar-count { margin-left: auto; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy-light); padding: 4px 11px; border-radius: 100px; border: 1px solid rgba(77,127,232,0.4); background: rgba(77,127,232,0.1); }
.svc__intro { font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,0.6); margin-top: 14px; max-width: 64ch; text-wrap: pretty; }

/* board de planes */
.svc__plans { margin-top: 20px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.svc__plans--multi { grid-template-columns: repeat(2, 1fr); }
.splan { position: relative; display: flex; flex-direction: column; padding: 20px 22px; border-radius: 18px;
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.12);
  transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
  opacity: 0; transform: translateY(12px); animation: splanIn .5s var(--spring) forwards; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes splanIn { to { opacity: 1; transform: none; } }
.splan:hover { background: rgba(255,255,255,0.075); border-color: rgba(255,255,255,0.24); transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(6,10,28,0.4); }
.splan--pop { border-color: rgba(77,127,232,0.55); background: linear-gradient(180deg, rgba(77,127,232,0.16), rgba(77,127,232,0.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12); }
.splan--pop:hover { border-color: rgba(120,160,255,0.75); }
.splan__top { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.splan__num { font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.34); letter-spacing: 0.04em; }
.splan__name { font-family: var(--f-display); text-transform: uppercase; font-size: 18px; font-weight: 600; color: #fff; letter-spacing: 0.01em; line-height: 1.05; }
.splan__badge { margin-left: auto; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; background: var(--navy-light); color: #06122e; font-weight: 700; white-space: nowrap; }
.splan__mod { display: inline-block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-top: 8px; }
.splan__ideal { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.78); margin-top: 12px; text-wrap: pretty;
  padding: 10px 12px; border-radius: 11px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.splan__ideal b { color: var(--navy-light); font-weight: 600; }
.splan--pop .splan__ideal { background: rgba(77,127,232,0.12); border-color: rgba(77,127,232,0.28); }
.splan__feats { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.splan__feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,0.82); text-wrap: pretty; }
.splan__feats li svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 1px; color: var(--navy-light); }
.splan--pop .splan__feats li svg { color: #8fb2f4; }
.splan__best { font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,0.62); font-style: italic; margin-top: 13px;
  padding-top: 12px; border-top: 1px dashed rgba(255,255,255,0.14); text-wrap: pretty; }
.splan__cta { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 16px; font-family: var(--f-display);
  text-transform: uppercase; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--navy-light); transition: gap .2s, color .2s; }
.splan__cta:hover { gap: 11px; color: #8fb2f4; }
.splan__cta .arrow { transition: transform .2s; }
.splan__cta:hover .arrow { transform: translateX(2px); }
.svc__foot { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); }
.svc__note { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.55); margin-bottom: 16px; text-wrap: pretty; }
.svc__foot .btn { width: 100%; justify-content: center; }
@media (max-width: 720px) { .svc__plans--multi { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .svc { padding: 14px; } .svc__card { border-radius: 22px; } }
