/* Smart Security with Data — estilos del sitio */
:root {
  --navy: #0b1b33;
  --navy-2: #12284b;
  --navy-3: #1b3663;
  --accent: #22d3ee;
  --accent-2: #2dd4a7;
  --accent-ink: #062330;
  --ink: #142236;
  --muted: #5a6b82;
  --line: #e3e9f1;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --c-datos: #3b82f6;
  --c-ia: #8b5cf6;
  --c-automatizacion: #10b981;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 27, 51, .08);
  --shadow-lg: 0 20px 50px rgba(11, 27, 51, .16);
}

html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  padding-top: 76px;
}
a { color: var(--navy-3); }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
p { color: var(--muted); }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 2000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Botones */
.btn { font-weight: 700; border-radius: 12px; }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border: 0; }
.btn-accent:hover, .btn-accent:focus { color: var(--accent-ink); filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(34, 211, 238, .35); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.08); border-color: #fff; }
.btn-outline-dark { border-width: 1.5px; }

/* Cabecera */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1030; background: rgba(11, 27, 51, .92); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.site-header .navbar { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-size: 1.2rem; }
.brand-text { color: #fff; font-weight: 800; line-height: 1.05; font-size: 1.05rem; }
.brand-text small { display: block; font-weight: 500; font-size: .78rem; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.navbar-dark .nav-link { color: rgba(255,255,255,.8); font-weight: 600; padding: .5rem .9rem !important; }
.navbar-dark .nav-link:hover, .navbar-dark .nav-link.active { color: #fff; }
.navbar-dark .nav-link.active { box-shadow: inset 0 -2px 0 var(--accent); }
.dropdown-menu-services { border: 0; border-radius: 14px; box-shadow: var(--shadow-lg); padding: .6rem; min-width: 300px; }
.dropdown-menu-services .dropdown-header { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.dropdown-menu-services .dropdown-item { border-radius: 8px; padding: .45rem .7rem; font-weight: 500; }
.dropdown-menu-services .dropdown-item i { color: var(--navy-3); margin-right: 6px; }
.dropdown-menu-services .dropdown-item:hover { background: var(--bg-alt); }
@media (max-width: 991.98px) {
  .navbar-collapse { padding: 1rem 0 1.5rem; max-height: calc(100vh - 76px); overflow-y: auto; }
  .dropdown-menu-services { box-shadow: none; background: rgba(255,255,255,.04); }
  .dropdown-menu-services .dropdown-item { color: rgba(255,255,255,.85); }
  .dropdown-menu-services .dropdown-item i { color: var(--accent); }
  .dropdown-menu-services .dropdown-item:hover { background: rgba(255,255,255,.08); color: #fff; }
  .dropdown-menu-services .dropdown-divider { border-color: rgba(255,255,255,.15); }
}

/* Etiquetas */
.kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-3); background: rgba(34, 211, 238, .12); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.kicker-light { color: var(--accent); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .25); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, #1d4a7a 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 90px 0 110px; margin-top: -76px; padding-top: 166px; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 30%, transparent); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; margin-bottom: 20px; }
.hero .lead { color: rgba(255,255,255,.75); font-size: 1.15rem; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgba(255,255,255,.8); font-size: .95rem; }
.hero-points i { color: var(--accent-2); margin-right: 6px; }

.hero-visual { position: relative; min-height: 420px; }
.hv-card { position: absolute; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); border-radius: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.hv-main { inset: 0 0 auto 4%; padding: 18px 20px 10px; animation: float 7s ease-in-out infinite; }
.hv-head { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.hv-head span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.hv-head b { margin-left: 8px; font-weight: 600; }
.hv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hv-kpis div { background: rgba(255,255,255,.05); border-radius: 12px; padding: 10px 12px; }
.hv-kpis small { display: block; color: rgba(255,255,255,.6); font-size: .7rem; line-height: 1.3; }
.hv-kpis strong { font-size: 1.5rem; color: #fff; }
.hv-kpis em { font-style: normal; font-size: .75rem; margin-left: 4px; }
.hv-kpis .up { color: var(--accent-2); }
.hv-chart { width: 100%; height: 110px; margin-top: 10px; }
.hv-chat { width: 260px; left: -2%; bottom: 10px; padding: 14px; animation: float 8s ease-in-out infinite reverse; }
.hv-chat-head { font-size: .8rem; color: rgba(255,255,255,.75); margin-bottom: 8px; }
.hv-chat-head i { color: #25d366; }
.bubble { background: #fff; color: var(--ink); border-radius: 12px 12px 12px 4px; padding: 10px 12px; font-size: .85rem; margin: 0 0 8px; }
.hv-btns { display: flex; gap: 6px; }
.hv-btns span { flex: 1; text-align: center; font-size: .75rem; padding: 6px; border-radius: 8px; background: rgba(34,211,238,.15); color: var(--accent); }
.hv-flow { right: 0; bottom: 40px; padding: 14px 18px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.5); animation: float 6s ease-in-out infinite; }
.hv-flow span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--accent); font-size: 1.15rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 991.98px) { .hero-visual { min-height: 400px; } .hv-main { left: 0; } .hv-chat { left: 0; } }
@media (max-width: 575.98px) {
  .hero { padding-bottom: 70px; }
  .hero-visual { min-height: 0; display: grid; gap: 14px; }
  .hv-card { position: static; width: auto; animation: none; }
  .hv-kpis strong { font-size: 1.15rem; }
}

/* Franja de herramientas */
.tools-strip { background: var(--navy-2); border-top: 1px solid rgba(255,255,255,.06); padding: 18px 0; }
.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.tools span { color: rgba(255,255,255,.55); font-weight: 700; letter-spacing: .02em; }

/* Secciones */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 52px; }
@media (max-width: 767.98px) { .section { padding: 64px 0; } }

/* Líneas de servicio */
.line-datos { --c: var(--c-datos); }
.line-ia { --c: var(--c-ia); }
.line-automatizacion { --c: var(--c-automatizacion); }
.line-card { height: 100%; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; border-top: 4px solid var(--c); transition: transform .25s, box-shadow .25s; }
.line-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.line-card > i { font-size: 2rem; color: var(--c); }
.line-card h3 { font-size: 1.35rem; margin: 12px 0 6px; }
.line-card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.line-card li a { display: block; padding: 8px 0; border-top: 1px dashed var(--line); text-decoration: none; font-weight: 600; color: var(--ink); }
.line-card li a:hover { color: var(--c); }

/* Tarjetas de servicio */
.service-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 28px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }
.service-card .icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); margin-bottom: 18px; }
.service-card .line-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--c); }
.service-card h3 { font-size: 1.15rem; margin: 6px 0 10px; }
.service-card p { font-size: .95rem; flex: 1; }
.service-card .more { font-weight: 700; font-size: .9rem; color: var(--navy-3); }
.service-card:hover .more i { transform: translateX(4px); }
.service-card .more i { display: inline-block; transition: transform .2s; }
.badge-new { position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); padding: 4px 10px; border-radius: 999px; }

/* Pasos */
.step { position: relative; height: 100%; padding: 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step-num { position: absolute; top: 18px; right: 20px; font-weight: 800; font-size: 1.6rem; color: var(--line); }
.step > i { font-size: 1.6rem; color: var(--navy-3); }
.step h3 { font-size: 1.1rem; margin: 12px 0 8px; }
.step p { font-size: .93rem; margin: 0; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { display: flex; gap: 14px; margin-bottom: 16px; color: var(--muted); }
.checks i { font-size: 1.3rem; color: var(--navy-3); flex-shrink: 0; }
.checks b { color: var(--ink); }

/* Casos */
.case-card { height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover .case-media img { transform: scale(1.05); }
.case-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 4rem; color: #fff; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c) 80%, #fff), var(--navy) 75%); }
.case-body { padding: 22px 24px 24px; }
.case-tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.case-body h3 { font-size: 1.15rem; margin: 12px 0 10px; }
.case-body dl { margin: 0; font-size: .9rem; }
.case-body dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--navy-3); margin-top: 8px; }
.case-body dd { color: var(--muted); margin: 0; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.filter { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 18px; font-weight: 600; }
.filter.active, .filter:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-line].is-hidden { display: none; }

/* FAQ */
.faq .accordion-item { border: 1px solid var(--line); border-radius: 12px !important; margin-bottom: 12px; overflow: hidden; }
.faq .accordion-button { font-weight: 700; color: var(--navy); font-size: 1rem; }
.faq .accordion-button:not(.collapsed) { background: rgba(34, 211, 238, .08); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: none; }
.faq .accordion-body { color: var(--muted); }

/* CTA */
.cta-band { padding: 0 0 96px; }
.section-alt + .cta-band { background: var(--bg-alt); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 48px; border-radius: 24px; background: radial-gradient(600px 300px at 90% 0%, #1d4a7a, transparent 70%), var(--navy); }
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-inner p { color: rgba(255,255,255,.7); margin: 0; max-width: 620px; }
@media (max-width: 575.98px) { .cta-inner { padding: 32px 24px; } }

/* Cabecera de página interna */
.page-hero { background: radial-gradient(900px 400px at 90% -20%, #1d4a7a 0%, transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; padding: 70px 0 64px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 820px; }
.page-hero .lead { color: rgba(255,255,255,.75); max-width: 720px; margin: 0; }
.page-hero .kicker { color: var(--accent); background: rgba(34,211,238,.1); }
.page-hero[class*="line-"] .kicker { color: #fff; background: color-mix(in srgb, var(--c) 45%, transparent); }
.breadcrumb { font-size: .85rem; margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb-item.active, .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.45); }

/* Página de servicio */
.problem { padding: 28px 30px; border-radius: var(--radius); background: var(--bg-alt); border-left: 4px solid var(--accent); }
.problem p { font-size: 1.1rem; color: var(--ink); margin: 0; }
.feature { display: flex; gap: 16px; height: 100%; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.feature > i { font-size: 1.5rem; color: var(--navy-3); width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--bg-alt); }
.feature h3 { font-size: 1.05rem; margin: 0 0 6px; }
.feature p { font-size: .93rem; margin: 0; }
.side-card { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.side-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.deliverables { list-style: none; padding: 0; margin: 0; }
.deliverables li { display: flex; gap: 10px; padding: 6px 0; color: var(--ink); font-size: .95rem; }
.deliverables i { color: var(--accent-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: .8rem; font-weight: 600; background: var(--bg-alt); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.mini-service { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.mini-service span { flex: 1; }
.mini-service i:first-child { color: var(--navy-3); font-size: 1.2rem; }
.mini-service:hover { color: var(--navy-3); }
.line-block + .line-block { margin-top: 72px; }
.line-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.line-head > i { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; color: #fff; background: var(--c); }
.line-head h2 { margin: 0; }
.line-head p { margin: 0; }

/* Planes */
.plan { position: relative; height: 100%; display: flex; flex-direction: column; padding: 34px 30px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -13px; left: 30px; font-size: .72rem; font-weight: 800; text-transform: uppercase; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.35rem; margin: 0; }
.plan-price { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin: 14px 0 18px; }
.plan-price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 7px 0; border-top: 1px dashed var(--line); font-size: .95rem; }
.plan li i { color: var(--accent-2); margin-right: 6px; }

/* Nosotros */
.team-card { height: 100%; text-align: center; padding: 34px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.team-card > i { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; font-size: 1.8rem; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.team-card h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.team-card p { font-size: .93rem; margin: 0; }
.cap { margin-bottom: 18px; font-weight: 600; font-size: .95rem; }
.cap .bar { height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.cap .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; transition: width 1.2s ease; }
.cap.in .bar span, .reveal.in .cap .bar span { width: var(--w); }

/* Contacto */
.contact-item { display: flex; gap: 16px; padding: 14px 0; }
.contact-item + .contact-item { border-top: 1px solid var(--line); }
.contact-item > i { font-size: 1.3rem; width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--bg-alt); color: var(--navy-3); }
.contact-item h3 { font-size: 1rem; margin: 0 0 2px; }
.contact-item p { margin: 0; font-size: .95rem; word-break: break-word; }
.contact-form { padding: 34px; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-form .form-label { font-weight: 600; font-size: .9rem; }
.contact-form .form-control, .contact-form .form-select { border-radius: 10px; padding: .7rem .9rem; border-color: var(--line); }
.contact-form .form-control:focus, .contact-form .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(34,211,238,.2); }
.php-email-form .loading, .php-email-form .error-message, .php-email-form .sent-message { display: none; padding: 12px 16px; border-radius: 10px; }
.php-email-form .loading { background: var(--bg-alt); }
.php-email-form .error-message { background: #fde8e8; color: #9b1c1c; }
.php-email-form .sent-message { background: #def7ec; color: #03543f; }
.php-email-form .d-block { display: block; }
@media (max-width: 575.98px) { .contact-form { padding: 22px; } }

/* Pie */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 72px 0 0; font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer i { color: var(--accent); margin-right: 6px; }
.text-muted-light { color: rgba(255,255,255,.6); }
.footer-bottom { margin-top: 48px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: rgba(255,255,255,.5); }

.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); opacity: 0; visibility: hidden; transition: .3s; z-index: 999; text-decoration: none; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { color: var(--accent-ink); }

/* Animaciones de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hv-card { animation: none; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.site-footer .user-login-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #fff; font-weight: 600; }
.site-footer .user-login-link i { margin: 0; }
.site-footer .user-login-link:hover { border-color: var(--accent); color: var(--accent); }
.site-footer .brand-mark i { color: var(--accent-ink); margin: 0; }
.site-footer p { color: rgba(255,255,255,.7); }
