/* Kaitek Solutions · sitio web */
:root {
  --navy: #1B202B;
  --navy-2: #222836;
  --navy-3: #11151C;
  --bg: #F2F6FB;
  --white: #FFFFFF;
  --ink: #1B202B;
  --body: #3D4452;
  --soft: #5A6272;
  --line: #D5DAE2;
  --line-dark: #3A4252;
  --muted-dark: #C9CED8;
  --green: #64B583;
  --green-d: #2F7D52;
  --radius: 4px;
  --max: 1200px;
  --sans: 'DM Sans', Arial, sans-serif;
  --display: 'Oswald', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--green-d); }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 5.2vw, 64px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand svg { width: 40px; height: 40px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 1.5px; line-height: 1; }
.brand small { display: block; color: #A9AFBA; font-size: 13px; letter-spacing: 3px; margin-top: 3px; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.nav a { color: var(--muted-dark); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav .btn { color: var(--navy); }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; background: none; border: 1px solid var(--line-dark); color: var(--white); font: inherit; font-size: 16px; padding: 8px 14px; border-radius: var(--radius); cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--navy); border-bottom: 1px solid var(--line-dark); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .nav li a { display: block; padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line-dark); }
  .nav li:last-child a { border: 0; margin-top: 12px; text-align: center; }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--green); color: var(--navy); font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: var(--radius); border: 2px solid var(--green); font-size: 16px; cursor: pointer; font-family: inherit; }
.btn:hover { background: #7CC498; border-color: #7CC498; color: var(--navy); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.08); color: var(--white); border-color: var(--white); }
.btn-dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); border-color: var(--navy-2); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Portada */
.hero { position: relative; color: var(--white); background: var(--navy-3); overflow: hidden; }
.hero video, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,21,28,.92) 0%, rgba(17,21,28,.55) 60%, rgba(17,21,28,.25) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 120px; }
.hero h1 { max-width: 820px; }
.hero .lead { max-width: 680px; font-size: 20px; color: var(--muted-dark); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--green-d); margin-bottom: 12px; }
.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--green); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); color: var(--muted-dark); font-size: 16px; }
.trust b { color: var(--white); }

/* Encabezado de páginas internas */
.page-hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 64px; }
.page-hero.has-img .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.page-hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,32,43,.95) 0%, rgba(27,32,43,.6) 100%); }
.page-hero h1 { max-width: 900px; font-size: clamp(34px, 4.4vw, 54px); }
.page-hero .lead { max-width: 760px; font-size: 20px; color: var(--muted-dark); margin: 0; }
.crumbs { font-size: 15px; color: #A9AFBA; margin-bottom: 28px; }
.crumbs a { color: #A9AFBA; text-decoration: none; }
.crumbs a:hover { color: var(--white); }

/* Secciones */
section.block { padding: 88px 0; }
section.block.tint { background: var(--bg); }
section.block.dark { background: var(--navy); color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { color: var(--body); font-size: 19px; }
.dark .section-head p, .dark p { color: var(--muted-dark); }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } section.block { padding: 64px 0; } }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.rev > :first-child { order: 0; } }

/* Tarjetas */
.card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: 28px; border-radius: var(--radius); display: flex; flex-direction: column; }
.tint .card { border-color: var(--line); }
.card p { color: var(--body); font-size: 17px; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .more::after { content: " →"; }
a.card { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-top-color: var(--green); transform: translateY(-2px); }
.dark .card { background: var(--navy-2); border-color: var(--line-dark); border-top-color: var(--green); }
.dark .card p { color: var(--muted-dark); }
.card .tag { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green-d); margin-bottom: 8px; }
.dark .card .tag { color: var(--green); }
.card ul { margin: 0 0 16px; padding-left: 18px; color: var(--body); font-size: 16px; }
.dark .card ul { color: var(--muted-dark); }
.card .ilus { width: 100%; aspect-ratio: 4 / 3; background: var(--bg); border-radius: var(--radius); margin-bottom: 18px; }
.card .ilus { min-height: 0; flex-shrink: 0; height: auto; }
.card .ilus.foto { object-fit: cover; }
.stat { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--green-d); margin-bottom: 12px; }
.dark .stat { color: var(--green); }

/* Listas y tablas */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding: 0 0 12px 30px; color: var(--body); }
.checks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 8px; border-left: 3px solid var(--green-d); border-bottom: 3px solid var(--green-d); transform: rotate(-45deg); }
.dark .checks li { color: var(--muted-dark); }
.dark .checks li::before { border-color: var(--green); }
.specs { width: 100%; border-collapse: collapse; font-size: 17px; }
.specs th, .specs td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; font-weight: 700; color: var(--ink); background: var(--bg); }
.specs td { color: var(--body); }
.table-scroll { overflow-x: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips a, .chips span { display: inline-block; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.chips a:hover { border-color: var(--green-d); color: var(--green-d); }
.note { font-size: 15px; color: var(--soft); border-left: 3px solid var(--line); padding-left: 14px; }
.dark .note { color: #A9AFBA; border-color: var(--line-dark); }

/* Figuras */
figure { margin: 0; }
figure img { width: 100%; height: auto; border-radius: var(--radius); background: var(--bg); }
figure.contain img { object-fit: contain; padding: 16px; }
figcaption { font-size: 14px; color: var(--soft); margin-top: 8px; }
.dark figcaption { color: #A9AFBA; }
.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.photo-row img { aspect-ratio: 4 / 3; object-fit: cover; }
.photo-row .contain img { object-fit: contain; background: var(--white); border: 1px solid var(--line); }
@media (max-width: 640px) { .photo-row { grid-template-columns: 1fr; } }

/* Barras de comparación */
.bars { display: grid; gap: 18px; }
.bar-label { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.bar-track { background: var(--bg); height: 28px; border-radius: var(--radius); overflow: hidden; }
.bar-fill { height: 100%; }

/* Llamado a la acción */
.cta { background: var(--green); color: var(--navy); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; color: #1F3A2B; font-size: 18px; }

/* Contacto */
.contact-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-box dl { margin: 0; }
.contact-box dt { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--soft); margin-top: 18px; }
.contact-box dd { margin: 4px 0 0; font-size: 19px; font-weight: 500; }
form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
form label { font-weight: 700; font-size: 15px; }
form input, form textarea { font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid #B4BBC7; border-radius: var(--radius); background: var(--white); color: var(--ink); }
form textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* Pie */
.site-footer { background: var(--navy-3); color: #A9AFBA; font-size: 15px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--white); font-size: 15px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #A9AFBA; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.legal { border-top: 1px solid var(--line-dark); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.wa-float svg { width: 30px; height: 30px; }

/* En celular se muestra solo la imagen fija para no descargar el video */
@media (max-width: 640px) { .hero video { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero video { display: none; } a.card { transition: none; } }
