/* QuanTicPro – hoja de estilos del sitio estático */
:root {
  --navy: #101828;
  --navy-2: #1d2939;
  --red: #E40137;
  --red-dark: #b8002c;
  --sky: #BEEBFF;
  --ink: #101828;
  --muted: #475467;
  --line: #e4e7ec;
  --soft: #f2f4f7;
  --white: #ffffff;
  --radius: 14px;
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 750; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 680; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 860px; text-align: center; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo img { width: 170px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 6px; align-items: center; }
.nav a, .sub-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--ink); text-decoration: none; font: 600 15.5px/1.2 var(--font); border-radius: 8px; background: none; border: 0; cursor: pointer; }
.nav a:hover, .sub-toggle:hover, .nav a[aria-current="page"], .has-sub.current > .sub-toggle { color: var(--red); }
.sub-toggle i { font-size: 11px; transition: transform .2s; }
.has-sub { position: relative; }
.sub { display: none; position: absolute; right: -120px; top: calc(100% + 8px); width: 640px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(16,24,40,.14); padding: 18px; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.has-sub.open .sub { display: grid; }
.has-sub.open .sub-toggle i { transform: rotate(180deg); }
.sub ul a { display: block; padding: 7px 10px; font-weight: 550; font-size: 15px; }
.sub ul a:hover { background: var(--soft); }
.sub-cta { background: var(--navy); color: #fff; border-radius: 10px; padding: 18px; font-size: 15px; }
.sub-cta strong { display: block; margin-bottom: 8px; font-size: 16px; }
.sub-cta p { color: #cfd4dc; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; font-size: 18px; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 18px; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .sub-toggle { width: 100%; justify-content: space-between; padding: 12px 8px; }
  .sub { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0 10px; grid-template-columns: 1fr; }
  .sub-cta { display: none; }
}

/* Secciones */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec-hero { background: linear-gradient(180deg, #eef1f5 0%, #f6f7f9 100%); }
.sec-soft { background: var(--soft); }
.sec-dark, .sec-cta { background: var(--navy); color: #fff; }
.sec-dark h2, .sec-dark h3, .sec-cta h2 { color: #fff; }
.sec-dark .prose, .sec-cta .prose { color: #d0d5dd; }
.sec-dark > .wrap > h2, .sec-dark > .wrap > .prose, .sec-dark > .wrap > .actions { text-align: center; }
.sec-legal .wrap { max-width: 900px; }
.sec-legal h2 { font-size: 1.6rem; text-align: center; margin-bottom: 1.2em; }
.sec-legal .prose { color: var(--muted); font-size: 16px; }
.sec-legal .prose strong { color: var(--ink); }
.prose { overflow-wrap: anywhere; }
.sec-legal table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
.sec-legal td { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; }
.sec-legal td p { margin: 0; }
.prose { color: var(--muted); max-width: 72ch; }
.narrow .prose, .sec-dark .prose { margin-left: auto; margin-right: auto; }
.prose ul { padding-left: 1.2em; }
.prose em { color: var(--ink); }
.sec-hero h1, .sec-hero h2 { max-width: 22ch; }
.narrow h1, .narrow h2 { margin-left: auto; margin-right: auto; }
.actions { margin: 1.6em 0 0; }

/* Cabecera con vídeo o imagen de fondo */
.sec-hero-media { position: relative; overflow: hidden; background: var(--navy); color: #fff; min-height: min(78vh, 720px); display: flex; align-items: center; }
.sec-hero-media .wrap { position: relative; z-index: 2; }
.sec-hero-media h1, .sec-hero-media h2, .sec-hero-media h3 { color: #fff; }
.sec-hero-media .prose { color: #e4e7ec; }
.sec-hero-media .prose em { color: #fff; }
.sec-hero-media .btn { background: var(--red); }
.sec-hero-media .btn:hover { background: #fff; color: var(--navy); }
.hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,24,40,.88) 0%, rgba(16,24,40,.6) 55%, rgba(16,24,40,.35) 100%); }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Collage decorativo */
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 520px; width: 100%; margin: 0 auto; }
.collage img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; background: var(--soft); }
.collage img:nth-child(1) { border-radius: 50% 50% 18px 50%; }
.collage img:nth-child(2) { object-fit: contain; padding: 18%; background: var(--sky); border-radius: 18px 50% 50% 50%; }
.collage img:nth-child(3) { border-radius: 50% 18px 50% 50%; }
.collage img:nth-child(4) { border-radius: 50% 50% 50% 18px; }

/* Dos columnas */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } .split-rev .media { order: -1; } }
.media img { width: 100%; border-radius: 22px; object-fit: cover; box-shadow: 0 24px 60px rgba(16,24,40,.16); }
.split-rev .media img { border-radius: 48% 52% 40% 60% / 50% 45% 55% 50%; aspect-ratio: 1; max-width: 460px; margin: 0 auto; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 650; font-size: 14px; }
.badge i { color: var(--red); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy); color: #fff; border: 0; border-radius: 10px; padding: 15px 26px; font: 650 16px/1.25 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; text-align: center; }
.btn:hover { background: var(--red); color: #fff; transform: translateY(-1px); }
.sec-dark .btn, .sec-cta .btn { background: var(--red); }
.sec-dark .btn:hover, .sec-cta .btn:hover { background: #fff; color: var(--navy); }
.btn-sm { padding: 10px 16px; font-size: 14.5px; background: var(--red); }

/* Tarjetas */
.cards { display: grid; gap: 20px; margin: 32px 0; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(16,24,40,.12); color: var(--ink); }
.card h3 { margin: 0; }
.card-text { color: var(--muted); font-size: 15.5px; margin-top: 8px; }
.card-text p:last-child { margin: 0; }
.card-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 16px; border-radius: 75% 25% 43% 57% / 46% 29% 71% 54%; background: var(--red); color: #fff; font-size: 24px; }
.cards .card:nth-child(even) .card-icon { background: var(--navy); }
.sec-dark .card { background: var(--navy-2); border-color: rgba(255,255,255,.08); color: #fff; text-align: center; }
.sec-dark .card-icon { margin-left: auto; margin-right: auto; }
.sec-dark .cards .card:nth-child(even) .card-icon { background: #fff; color: var(--navy); }

/* Listas */
.checklist { list-style: none; padding: 0; margin: 1em 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: baseline; }
.checklist i { color: var(--red); font-size: 14px; }
.checklist a { color: var(--ink); }

/* Logos de clientes */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; align-items: center; margin: 32px 0; }
@media (min-width: 700px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(6, 1fr); } }
.logos img { max-height: 70px; width: auto; margin: 0 auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logos img:hover { filter: none; opacity: 1; }

/* Formulario */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); margin-top: 20px; max-width: 820px; }
.form-grid { display: grid; gap: 0 20px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.form input[type=text], .form input:not([type]), .form input[type=email], .form input[type=tel], .form textarea { width: 100%; font: 16px/1.4 var(--font); padding: 12px 14px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { border-color: var(--navy); outline: 3px solid rgba(228,1,55,.2); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.form .check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.form .check label { font-weight: 450; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: 12px 14px; border-radius: 10px; background: var(--soft); font-size: 15px; }
.form-status.error { background: #fef3f2; color: #b42318; }

/* Pie */
.site-footer { background: #0b1220; color: #98a2b3; font-size: 15px; padding-top: 64px; }
.site-footer a { color: #d0d5dd; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr .9fr; } }
.footer-brand img { width: 170px; margin-bottom: 18px; background: #fff; padding: 8px 12px; border-radius: 8px; }
.f-title { font-size: 1rem; color: #fff; margin-bottom: 14px; }
.f-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.f-list li { display: flex; gap: 10px; align-items: baseline; }
.f-list i { color: var(--red); width: 14px; }
.social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 18px 0 0; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 17px; }
.social a:hover { background: var(--red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 20px; padding-bottom: 20px; font-size: 14px; }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
