/* =========================================================
   Klipis.com — estilos
   Paleta de marca: #0B1F3B #007BFF #00D1C1 #E5E7EB #111827
   Tipografía: Montserrat (títulos) · Roboto (textos)
   ========================================================= */

:root {
  --navy: #0B1F3B;
  --navy-2: #0f2748;
  --ink-dark: #111827;
  --blue: #007BFF;
  --blue-deep: #0047d6;
  --teal: #00D1C1;
  --gray: #E5E7EB;
  --white: #ffffff;
  --mute: #9fb0c8;
  --line: rgba(229, 231, 235, 0.12);
  --card: rgba(255, 255, 255, 0.04);
  --grad: linear-gradient(100deg, var(--blue) 0%, #1aa3e8 50%, var(--teal) 100%);
  --radius: 20px;
  --shadow: 0 20px 60px -20px rgba(0, 123, 255, 0.45);
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--white); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: 0 24px 70px -18px rgba(0, 209, 193, 0.6); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--white); border-color: rgba(255,255,255,0.2); }
.btn-ghost:hover { border-color: var(--teal); background: rgba(0, 209, 193, 0.08); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.play { width: 0; height: 0; border-left: 10px solid var(--teal); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.link { color: var(--teal); font-weight: 700; font-family: var(--font-display); text-decoration: none; font-size: .95rem; background: linear-gradient(currentColor,currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s ease; }
.link:hover { background-size: 100% 2px; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11, 31, 59, 0.92); border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(10px)) { .nav.is-scrolled { background: rgba(11, 31, 59, 0.72); backdrop-filter: blur(14px) saturate(140%); } }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: auto; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--white); letter-spacing: -0.03em; }
.brand-word span { color: var(--teal); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--gray); opacity: .85; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; color: var(--teal); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s ease, top .3s ease; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav.is-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 24px;
    background: rgba(11, 31, 59, 0.98); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav.is-open { background: rgba(11, 31, 59, 0.98); }
  .nav.is-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 80px;
}
.hero-gradient {
  position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(circle 520px at var(--mx, 70%) var(--my, 40%), rgba(0, 123, 255, 0.55) 0%, transparent 60%),
    radial-gradient(circle 620px at calc(100% - var(--mx, 70%)) calc(var(--my, 40%) + 20%), rgba(0, 209, 193, 0.35) 0%, transparent 60%),
    radial-gradient(circle 900px at 10% 110%, rgba(0, 71, 214, 0.45) 0%, transparent 60%),
    var(--navy);
  filter: blur(30px);
  transition: background-position .4s ease;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 500; letter-spacing: .04em; color: var(--white);
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(0,209,193,.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,209,193,.6); } 70% { box-shadow: 0 0 0 10px rgba(0,209,193,0); } 100% { box-shadow: 0 0 0 0 rgba(0,209,193,0); } }
.hero-title {
  font-weight: 900; font-size: clamp(2.6rem, 8vw, 6.4rem);
  margin: 24px 0 22px; max-width: 12ch;
}
.rotator { position: relative; display: inline-grid; }
.rotator > span {
  grid-area: 1 / 1; white-space: nowrap;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(0.4em); transition: opacity .5s ease, transform .5s ease;
}
.rotator > span.is-on { opacity: 1; transform: none; }
.hero-lead { max-width: 560px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c9d5e6; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-chips { list-style: none; padding: 0; margin: 38px 0 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 620px; }
.hero-chips li { font-size: .8rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--mute); }

.hero-visual { position: absolute; right: max(16px, calc((100vw - 1180px) / 2)); top: 50%; width: 420px; height: 520px; transform: translateY(-46%); z-index: 1; pointer-events: none; }
.float { position: absolute; margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); animation: bob 7s ease-in-out infinite; }
.float img { width: 100%; height: 100%; object-fit: cover; }
.f1 { width: 230px; height: 400px; right: 40px; top: 40px; animation-delay: -1s; }
.f2 { width: 230px; height: 180px; left: 0; top: 10px; animation-delay: -3s; }
.f3 { width: 210px; height: 172px; left: 20px; bottom: 30px; animation-delay: -5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (max-width: 1100px) { .hero-visual { opacity: .35; right: -120px; } }
@media (max-width: 760px) { .hero-visual { display: none; } }

/* ---------- Marquesina ---------- */
.marquee { border-block: 1px solid var(--line); background: rgba(0,0,0,.18); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; gap: 42px; animation: marquee 48s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--mute); white-space: nowrap; display: inline-flex; align-items: center; gap: 42px; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifiesto ---------- */
.manifesto { padding: clamp(80px, 12vw, 150px) 0; }
.manifesto p { max-width: 30ch; margin-inline: auto; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.3; color: var(--white); letter-spacing: -0.02em; }
.manifesto strong { color: var(--white); text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 6px; }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 10vw, 130px) 0; }
.section-alt { background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.05)); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.kicker { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.section-head h2, .band h2, .contact h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
.section-sub { margin-top: 16px; color: var(--mute); font-size: 1.1rem; }
.center { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

/* ---------- Servicios (acordeón) ---------- */
.services { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc-head {
  width: 100%; background: none; border: 0; color: inherit; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 56px 1fr auto 40px; align-items: center; gap: 16px;
  padding: 26px 4px; font: inherit;
  transition: background .3s ease;
}
.svc-head:hover .svc-title { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc-num { font-family: var(--font-display); font-weight: 700; color: var(--teal); font-size: .95rem; }
.svc-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 3vw, 2.2rem); color: var(--white); letter-spacing: -0.02em; }
.svc-tag { color: var(--mute); font-size: .9rem; text-align: right; }
.svc-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); position: relative; transition: transform .35s ease, background .3s ease, border-color .3s; }
.svc-icon::before, .svc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--white); transform: translate(-50%, -50%); border-radius: 2px; }
.svc-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s ease; }
.svc-head[aria-expanded="true"] .svc-icon { background: var(--grad); border-color: transparent; }
.svc-head[aria-expanded="true"] .svc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.svc-head[aria-expanded="true"] + .svc-body { grid-template-rows: 1fr; }
.svc-body > .svc-body-inner { overflow: hidden; }
.svc-body-inner { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center; padding: 0 4px 0 76px; }
.svc-head[aria-expanded="true"] + .svc-body .svc-body-inner { padding-bottom: 34px; }
.svc-body-inner p { max-width: 620px; color: #c9d5e6; }
.svc-body-inner img { width: 100%; height: 190px; object-fit: cover; border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); }
.ticks { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 8px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.svc-code { display: grid; gap: 8px; font-family: var(--font-display); font-weight: 700; padding: 22px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.svc-code span:last-child { color: var(--teal); }
.kiosk-mini { display: grid; place-items: center; height: 190px; border-radius: 16px; background: radial-gradient(circle at 50% 30%, rgba(0,123,255,.35), transparent 70%); }
.kiosk-screen { width: 110px; height: 170px; border-radius: 12px; border: 6px solid #1c2a40; background: var(--white); padding: 12px 10px; display: grid; align-content: start; gap: 8px; }
.kiosk-screen span { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: .75rem; }
.kiosk-screen i { display: block; height: 20px; border-radius: 6px; background: var(--grad); }
.kiosk-screen i:last-child { background: var(--gray); }

@media (max-width: 760px) {
  .svc-head { grid-template-columns: 36px 1fr 40px; padding: 22px 0; }
  .svc-tag { display: none; }
  .svc-body-inner { grid-template-columns: 1fr; padding-left: 0; gap: 22px; }
  .svc-body-inner img, .kiosk-mini, .svc-code { max-width: 360px; }
}

/* ---------- Videos ---------- */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.video-card { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); padding: 10px; min-height: 560px; display: grid; place-items: center; overflow: hidden; }
.video-card .tiktok-embed { margin: 0 !important; max-width: 100% !important; min-width: 0 !important; width: 100%; }
.video-card .tiktok-embed section a { display: inline-block; padding: 12px 18px; border-radius: 999px; background: var(--grad); color: var(--white); text-decoration: none; font-family: var(--font-display); font-weight: 700; }
@media (max-width: 960px) {
  .videos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(325px, 86%); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .video-card { scroll-snap-align: start; }
}

/* ---------- Banda kioscos ---------- */
.band { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 130px) 0; background: radial-gradient(ellipse at 80% 50%, rgba(0,123,255,.28), transparent 60%), var(--ink-dark); }
.band-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.band-copy p:not(.kicker) { margin-top: 20px; color: #c9d5e6; max-width: 560px; font-size: 1.1rem; }
.band-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.kiosk { display: grid; justify-items: center; }
.kiosk-body { width: 260px; height: 420px; border-radius: 28px; background: linear-gradient(160deg, #24344d, #0e1726); padding: 18px; box-shadow: 0 40px 90px -30px rgba(0,123,255,.6), inset 0 0 0 1px rgba(255,255,255,.08); }
.kiosk-display { height: 100%; border-radius: 14px; background: linear-gradient(180deg, #ffffff, #eef4ff); padding: 20px 16px; display: grid; align-content: start; gap: 12px; }
.kd-top { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: .85rem; }
.kd-top img { width: 22px; }
.kd-title { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 1.25rem; line-height: 1.2; margin: 18px 0 8px; }
.kd-btn { padding: 14px; border-radius: 12px; background: var(--grad); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: .9rem; text-align: center; animation: tap 6s ease-in-out infinite; }
.kd-btn:nth-of-type(2) { animation-delay: 2s; }
.kd-btn-alt { background: var(--navy); animation-delay: 4s; }
@keyframes tap { 0%, 20%, 100% { transform: scale(1); } 8% { transform: scale(.95); filter: brightness(1.15); } }
.kiosk-stand { width: 70px; height: 70px; background: linear-gradient(180deg, #1c2a40, #0e1726); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
@media (max-width: 860px) { .band-inner { grid-template-columns: 1fr; } .kiosk { order: -1; } .kiosk-body { width: 220px; height: 350px; } }

/* ---------- Tarjetas IA ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { position: relative; padding: 34px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(0,209,193,.5); background: rgba(0,209,193,.05); }
.card-num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: var(--white); font-family: var(--font-display); font-weight: 800; margin-bottom: 22px; }
.card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.card p { color: #c9d5e6; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }

/* ---------- Soluciones ---------- */
.solutions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sol { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: transform .3s ease, border-color .3s ease; }
.sol:hover { transform: translateY(-6px); border-color: rgba(0,123,255,.6); }
.sol h3 { font-size: 1.25rem; }
.sol p { color: var(--mute); font-size: .95rem; flex: 1; }
.sol-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; color: var(--teal); margin-bottom: 8px; }
.sol-more { background: linear-gradient(160deg, rgba(0,123,255,.18), rgba(0,209,193,.08)); }
.disclosure { margin-top: 26px; font-size: .85rem; color: var(--mute); }
@media (max-width: 1000px) { .solutions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .solutions { grid-template-columns: 1fr; } }

/* ---------- Proceso ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); position: relative; overflow: hidden; }
.step::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.step-n { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step p { color: #c9d5e6; }
.reach { margin-top: 30px; padding: 24px 28px; border-radius: var(--radius); background: rgba(0,123,255,.08); border: 1px solid rgba(0,123,255,.25); }
.reach strong { color: var(--white); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 130px) 0 60px; background: var(--ink-dark); }
.contact-glow { position: absolute; inset: auto -10% -40% -10%; height: 80%; background: radial-gradient(ellipse at 30% 60%, rgba(0,123,255,.35), transparent 60%), radial-gradient(ellipse at 80% 70%, rgba(0,209,193,.25), transparent 60%); filter: blur(30px); }
.contact-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy > p:not(.kicker) { margin-top: 18px; color: #c9d5e6; font-size: 1.1rem; }
.mail {
  display: inline-block; margin-top: 28px; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--white); text-decoration: none; letter-spacing: -0.02em;
  background: var(--grad) 0 100% / 0 4px no-repeat; padding-bottom: 6px; transition: background-size .4s ease;
}
.mail:hover { background-size: 100% 4px; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; color: #c9d5e6; }
.ci { margin-right: 6px; }
.socials { display: flex; gap: 12px; margin-top: 28px; }
.socials a { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); transition: background .25s, border-color .25s, transform .2s; }
.socials a:hover { background: var(--grad); border-color: transparent; transform: translateY(-3px); }
.socials svg { width: 22px; height: 22px; fill: var(--white); }

.form { padding: 32px; border-radius: 24px; background: rgba(11, 31, 59, .85); border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); }
.form h3 { font-size: 1.5rem; margin-bottom: 20px; }
.field { display: grid; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; }
.field label, .field legend { font-size: .85rem; font-weight: 500; color: var(--mute); padding: 0; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--white);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 13px 14px;
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #6f819c; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: rgba(0,209,193,.06); }
.field .is-invalid { border-color: #ff6b6b; }
.field textarea { resize: vertical; min-height: 110px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { margin: 0; cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: .88rem; color: var(--gray); transition: background .2s, border-color .2s; }
.pills input:checked + span { background: var(--grad); border-color: transparent; color: var(--white); }
.pills input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.form-note { margin-top: 12px; font-size: .82rem; color: var(--mute); text-align: center; }
.form-note.is-error { color: #ff8f8f; }
.form-note.is-ok { color: var(--teal); }

.map { position: relative; margin-top: 60px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); height: 320px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; } .form { padding: 24px 18px; } }

/* ---------- Footer ---------- */
.footer { background: #08172c; border-top: 1px solid var(--line); padding: 50px 0 90px; }
.footer-inner { display: grid; gap: 16px; justify-items: center; text-align: center; }
.footer-tag { font-family: var(--font-display); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; color: var(--mute); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer-links a { text-decoration: none; color: var(--gray); opacity: .8; font-size: .92rem; }
.footer-links a:hover { opacity: 1; color: var(--teal); }
.footer-copy { font-size: .82rem; color: #6f819c; }

/* ---------- Botón flotante ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  padding: 14px 22px; border-radius: 999px; background: var(--grad); color: var(--white);
  font-family: var(--font-display); font-weight: 800; text-decoration: none; box-shadow: var(--shadow);
  transform: translateY(120px); transition: transform .4s ease;
}
.fab.is-on { transform: none; }

/* ---------- Revelado al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Solo efectos intrusivos se apagan con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .float { animation: none; }
  .marquee-track { animation-duration: 120s; }
  .kd-btn { animation: none; }
}

/* Ajustes finos */
.hero-visual { width: 480px; }
.f2 { width: 200px; height: 156px; left: 0; top: 0; }
@media (max-width: 560px) { .eyebrow-x { display: none; } }

/* =========================================================
   Páginas internas: servicios y blog
   ========================================================= */
.hero-chips a { color: inherit; text-decoration: none; }
.hero-chips li:hover { border-color: var(--teal); color: var(--white); }

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + 56px) 0 64px; border-bottom: 1px solid var(--line); }
.page-hero .hero-gradient { inset: -30%; }
.page-hero h1 { font-weight: 900; font-size: clamp(2.1rem, 5.4vw, 4rem); max-width: 18ch; margin: 6px 0 20px; }
.post-hero h1 { max-width: 24ch; font-size: clamp(1.9rem, 4.6vw, 3.3rem); }
.page-lead { max-width: 640px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c9d5e6; }
.post-meta { color: var(--mute); font-size: .92rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--mute); margin-bottom: 26px; }
.crumbs a { color: var(--gray); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.crumbs .sep { opacity: .5; }

.prose-wrap { padding: 56px 0 90px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 44px 0 14px; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 8px; color: var(--white); }
.prose p { margin: 0 0 16px; color: #d3dceb; font-size: 1.08rem; }
.prose a { color: var(--teal); text-underline-offset: 3px; }
.prose strong { color: var(--white); }
.prose .ticks { margin: 10px 0 22px; }
.prose .ticks li { color: #d3dceb; }
.prose-intro { font-size: 1.25rem !important; color: var(--white) !important; line-height: 1.55; border-left: 3px solid var(--teal); padding-left: 18px; }

.faq { display: grid; gap: 10px; margin-top: 10px; }
.prose .faq h2 { margin-bottom: 18px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 0 20px; transition: border-color .25s; }
.faq details[open] { border-color: rgba(0,209,193,.45); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative; font-family: var(--font-display); font-weight: 700; color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--teal); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 18px; margin: 0; color: #c9d5e6; }
.faq-wrap { max-width: 860px; }

.cta-box { margin: 60px 0 10px; padding: clamp(28px, 5vw, 48px); border-radius: 28px; position: relative; overflow: hidden; background: radial-gradient(circle at 85% 20%, rgba(0,209,193,.35), transparent 55%), radial-gradient(circle at 10% 90%, rgba(0,123,255,.45), transparent 60%), var(--ink-dark); border: 1px solid rgba(0,123,255,.35); }
.cta-box h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); margin-bottom: 12px; }
.cta-box p:not(.kicker) { color: #d3dceb; max-width: 620px; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.related { margin-top: 60px; }
.related h2 { font-size: 1.5rem; margin: 30px 0 18px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip-link { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); text-decoration: none; font-size: .9rem; color: var(--gray); background: rgba(255,255,255,.04); transition: border-color .2s, color .2s, background .2s; }
.chip-link:hover { border-color: var(--teal); color: var(--white); background: rgba(0,209,193,.08); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); text-decoration: none; transition: transform .3s ease, border-color .3s ease; }
.post-card:hover { transform: translateY(-6px); border-color: rgba(0,209,193,.5); }
.post-cover { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 20% 20%, hsl(var(--h) 100% 55% / .9), transparent 55%), radial-gradient(circle at 85% 80%, rgba(0,209,193,.8), transparent 55%), linear-gradient(135deg, #0047d6, #0B1F3B); }
.post-cover span { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; color: var(--white); letter-spacing: -0.02em; text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.post-tag { font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.post-body strong { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.3; color: var(--white); }
.post-ex { font-size: .92rem; color: var(--mute); line-height: 1.5; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* Videos de Bunny */
.video-card { min-height: 0; display: block; padding: 10px; margin: 0; }
.video-frame { position: relative; display: block; width: 100%; height: 0; padding-top: 177.78%; border-radius: 14px; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card figcaption { display: grid; gap: 2px; padding: 14px 6px 6px; }
.video-card figcaption strong { font-family: var(--font-display); color: var(--white); font-size: 1.1rem; }
.video-card figcaption span { color: var(--mute); font-size: .9rem; }
.video-card .video-giro { font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal) !important; }
.videos { max-width: 1000px; margin-inline: auto; }

/* Campo trampa anti-spam */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---- Videos: portada + reproductor en ventana ---- */
.video-poster { position: relative; display: block; width: 100%; height: 0; padding: 0 0 177.78%; border: 0; border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; }
.video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.video-poster:hover img { transform: scale(1.04); filter: brightness(.85); }
.play-btn { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; background: var(--grad); box-shadow: 0 10px 40px rgba(0,0,0,.45); transition: transform .25s ease; }
.play-btn::after { content: ""; position: absolute; left: 30px; top: 23px; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video-poster:hover .play-btn { transform: scale(1.08); }
.video-desc { font-size: .88rem !important; color: #c9d5e6 !important; margin-top: 4px; }
.video-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.vshare { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: var(--white); font: 700 .85rem var(--font-display); cursor: pointer; }
.vshare::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 16a3 3 0 0 0-2.4 1.2l-6.7-3.4a3 3 0 0 0 0-1.6l6.7-3.4A3 3 0 1 0 15 7a3 3 0 0 0 .1.8L8.4 11.2a3 3 0 1 0 0 1.6l6.7 3.4A3 3 0 1 0 18 16z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 16a3 3 0 0 0-2.4 1.2l-6.7-3.4a3 3 0 0 0 0-1.6l6.7-3.4A3 3 0 1 0 15 7a3 3 0 0 0 .1.8L8.4 11.2a3 3 0 1 0 0 1.6l6.7 3.4A3 3 0 1 0 18 16z'/%3E%3C/svg%3E") center / contain no-repeat; }
.vshare:hover { border-color: var(--teal); background: rgba(0,209,193,.1); }
.vlink { color: var(--teal); font: 700 .85rem var(--font-display); text-decoration: none; }

.vmodal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 12px; }
.vmodal[hidden] { display: none; }
.vmodal-back { position: absolute; inset: 0; background: rgba(4, 12, 26, .88); }
.vmodal-box { position: relative; width: min(420px, 100%, calc((100dvh - 90px) * 9 / 16)); display: grid; gap: 10px; }
.vmodal-frame { position: relative; width: 100%; padding-top: 177.78%; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.vmodal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal-bar { display: flex; align-items: center; gap: 10px; }
.vmodal-bar strong { flex: 1; font-family: var(--font-display); color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vclose { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy); font-size: 1.1rem; font-weight: 800; cursor: pointer; }
html.no-scroll, html.no-scroll body { overflow: hidden; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, 140%); padding: 12px 18px; border-radius: 12px; background: var(--white); color: var(--navy); font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .3s ease; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); }
.toast:empty { display: none; }

/* ---- Galería 4 por fila con filtros ---- */
.vfilters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; margin: 0 0 14px; }
.vfilters select[hidden] { display: none; }
.vfilters:has(select[hidden]) { grid-template-columns: 2fr 1fr 1fr auto; }
.vsearch { position: relative; display: block; }
.vsearch input, .vfilters select { width: 100%; height: 50px; font: inherit; font-size: .98rem; color: var(--white); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 0 16px; }
.vsearch input { padding-left: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb0c8' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 14px 50%; background-size: 20px; }
.vsearch input::placeholder { color: #6f819c; }
.vfilters select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D1C1' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.vfilters select option { color: #111; }
.vsearch input:focus, .vfilters select:focus { outline: none; border-color: var(--teal); }
.vshuffle { height: 50px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: var(--white); font: 700 .92rem var(--font-display); cursor: pointer; white-space: nowrap; }
.vshuffle:hover { border-color: var(--teal); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vcount { color: var(--mute); font-size: .9rem; margin: 0 0 16px; }
.videos.vgrid4 { max-width: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; overflow: visible; padding: 0; grid-auto-flow: row; grid-auto-columns: auto; scroll-snap-type: none; }
.vgrid4 .video-card { padding: 8px; border-radius: 18px; }
.vgrid4 .video-poster { border-radius: 12px; }
.vgrid4 .play-btn { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
.vgrid4 .play-btn::after { left: 23px; top: 17px; border-left-width: 18px; border-top-width: 12px; border-bottom-width: 12px; }
.vgrid4 figcaption { padding: 12px 4px 4px; gap: 3px; }
.vgrid4 figcaption strong { font-size: 1rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vgrid4 .video-giro { font-size: .66rem; }
.vgrid4 .video-tipo { font-size: .82rem; color: var(--mute); }
.vgrid4 .video-actions { margin-top: 8px; gap: 8px; }
.vgrid4 .vshare { padding: 6px 11px; font-size: .78rem; }
.vgrid4 .vlink { font-size: .78rem; }
.vempty { text-align: center; color: var(--mute); padding: 30px 0; }
.vempty button { background: none; border: 0; color: var(--teal); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.vpager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.vpager button { height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: var(--white); font: 700 .92rem var(--font-display); cursor: pointer; }
.vpager button:not(:disabled):hover { border-color: var(--teal); background: rgba(0,209,193,.1); }
.vpager button:disabled { opacity: .35; cursor: default; }
.vpager span { color: var(--mute); font-size: .92rem; }
@media (max-width: 1000px) { .videos.vgrid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .videos.vgrid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .vfilters { grid-template-columns: 1fr 1fr; }
  .vsearch { grid-column: 1 / -1; }
  .vshuffle { grid-column: 1 / -1; }
  .vgrid4 .video-actions .vlink { display: none; }
  .vpager button { padding: 0 14px; }
}

/* ---- Etiquetas del pie ---- */
.footer-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; margin: 6px auto 4px; }
.footer-tags a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--mute); font-size: .78rem; text-decoration: none; transition: color .2s, border-color .2s; }
.footer-tags a:hover { color: var(--white); border-color: var(--teal); }
.vpager[hidden], .vempty[hidden] { display: none; }
.videos.vgrid4 { align-items: stretch; }
.vgrid4 .video-card { display: flex; flex-direction: column; }
.vgrid4 figcaption { flex: 1; display: flex; flex-direction: column; }
.vgrid4 .video-actions { margin-top: auto; padding-top: 8px; }
