/* ========== Base / Tokens ========== */
:root{
  --primary-800:#0B3A9C;
  --primary-700:#0f3ca8;
  --primary-600:#1e40af;
  --primary-500:#2563eb;
  --primary-100:#e7efff;
  --ink-900:#0b1220;
  --ink-700:#1f2937;
  --ink-500:#475569;
  --ink-300:#94a3b8;
  --surface:#ffffff;
  --surface-alt:#f5f8ff;
  --ring: 0 0 0 3px rgba(37,99,235,.25);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-lg: 0 20px 40px rgba(2,6,23,.15);
  --shadow-md: 0 10px 24px rgba(2,6,23,.12);
  --container: 1200px;
}

* { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  color: var(--ink-900);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{max-width:100%; display:block;}
a{ color: var(--primary-600); text-decoration: none; }
a:hover{ text-decoration: underline; }
.container{ width: min(100% - 32px, var(--container)); margin-inline: auto; }

/* ========== Header ========== */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, rgba(15,60,168,.95), rgba(30,64,175,.95));
  color:#fff; backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.site-header.scrolled{
  box-shadow: 0 10px 30px rgba(2,6,23,.25);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding: 14px 0; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; color:#fff; }
.brand-logo{ width:32px; height:32px; display:inline-grid; place-items:center; background:#fff; color: var(--primary-700); border-radius:10px; box-shadow: var(--shadow-md); }
.brand-name{ letter-spacing:.3px; }

.site-nav ul{ display:flex; gap:10px; padding:0; margin:0; list-style:none; }
.site-nav a{
  color: #e8eeff; font-weight:700; padding:10px 14px; border-radius:12px;
}
.site-nav a:hover{ background: rgba(255,255,255,.12); text-decoration:none; }
.site-nav a.is-active{ background: rgba(255,255,255,.22); }

.nav-toggle{ display:none; background:none; border:0; padding:8px; }
.nav-toggle .bar{ display:block; width:24px; height:2px; background:#fff; margin:5px 0; border-radius:2px; }

@media (max-width: 880px){
  .nav-toggle{ display:block; }
  .site-nav{ position: absolute; inset: 60px 16px auto 16px; background: linear-gradient(180deg, rgba(15,60,168,.98), rgba(30,64,175,.98)); border:1px solid rgba(255,255,255,.15); border-radius:12px; padding:10px; display:none; box-shadow: var(--shadow-lg); }
  .site-nav.open{ display:block; }
  .site-nav ul{ flex-direction:column; gap:6px; }
}

/* ========== Hero Slider ========== */
.hero{ position: relative; }
.hero-slider{ position: relative; overflow: hidden; }
.slide{
  position:absolute; inset:0; display:grid; place-items:center; min-height: 70vh; color:#fff; text-align:left;
  background: #0b1220; opacity:0; pointer-events:none; transition: opacity .4s ease;
  touch-action: pan-y;
}
.slide.is-active{ opacity:1; pointer-events:auto; position:relative; }
.slide::before{
  content:""; position:absolute; inset:0; background-image: var(--bg);
  background-size:cover; background-position:center; filter:brightness(.6);
  transform: scale(1.05);
}
.overlay{ position:absolute; inset:0; background: radial-gradient(80% 60% at 30% 40%, rgba(37,99,235,.45), transparent 50%); }
.slide-content{ position:relative; padding: 80px 0; }
.slide h1{ font-size: clamp(32px, 6vw, 56px); line-height:1.05; margin:0 0 12px; }
.slide p{ font-size: clamp(16px, 2.4vw, 20px); color: #f3f7ff; max-width: 700px; }
.actions{ display:flex; gap:12px; margin-top:20px; flex-wrap:wrap; }

.hero-control{
  position:absolute; top:50%; transform: translateY(-50%); border:0; background: rgba(15, 60, 168, .9);
  color:#fff; width:44px; height:44px; border-radius: 12px; box-shadow: var(--shadow-md); cursor:pointer;
}
.hero-control.prev{ left: 16px;}
.hero-control.next{ right: 16px;}
.hero-control:hover{ background: var(--primary-500); }

.hero-dots{ position:absolute; left:50%; transform: translateX(-50%); bottom:18px; display:flex; gap:10px; }
.hero-dots button{
  width:10px; height:10px; border-radius:999px; border:0; background:rgba(255,255,255,.5); cursor:pointer;
}
.hero-dots button[aria-selected="true"]{ background:#fff; width:20px; }

/* ========== Sections / Cards ========== */
.section{ padding: 72px 0; }
.section.alt{ background: var(--surface-alt); }
.section-header{ text-align:center; margin-bottom: 32px; }
.section-header h2{ font-size: clamp(28px, 4.2vw, 40px); margin: 0 0 8px; }
.section-header p{ color: var(--ink-500); margin: 0; }

.grid{ display:grid; gap: 18px; }
.cards{ grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px){ .cards{ grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px){ .cards{ grid-template-columns: 1fr;} }

.card{
  background: #fff; border: 1px solid #eef2ff; border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-md);
}
.card .icon{
  width:48px; height:48px; display:grid; place-items:center; background: var(--primary-100); color: var(--primary-700);
  border-radius: 12px; margin-bottom: 10px; font-size: 20px;
}
.card h3{ margin: 6px 0 8px; }
.card p{ margin:0 0 8px; color: var(--ink-700); }
.features{ margin: 8px 0 0; padding-left: 18px; color: var(--ink-700); }

/* ========== Tech scroller ========== */
.tech-scroller{ overflow: hidden; border: 1px solid #e6eeff; border-radius: var(--radius-lg); background:#fff; box-shadow: var(--shadow-md); }
.tech-track{
  display:flex; gap: 40px; align-items:center; padding: 22px; min-width: max-content; animation: scroll 30s linear infinite;
  cursor: grab;
}
.tech-track:active{ cursor: grabbing; }
.tech-track i{ font-size: 36px; color: var(--primary-600); opacity:.9; }
@keyframes scroll{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

/* ========== Contacto ========== */
.contact-grid{ display:grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items:start; }
@media (max-width: 960px){ .contact-grid{ grid-template-columns: 1fr; } }

.contact-form{
  background:#fff; border:1px solid #e6eeff; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-md);
}
.form-row{ display:flex; flex-direction:column; gap:6px; margin-bottom: 12px; }
label{ font-weight:600; color:var(--ink-700); }
input, textarea{
  border: 1px solid #dbe3ff; border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--ink-900);
}
input:focus, textarea:focus{ outline: none; box-shadow: var(--ring); border-color: var(--primary-500); }

.form-actions{ display:flex; align-items:center; gap: 14px; }

.contact-side{ display:grid; gap: 16px; }
.contact-card{
  background:#fff; border:1px solid #e6eeff; border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-md);
}
.list-check{ margin:0; padding-left: 18px; }

/* ========== Map ========== */
.map-wrap{
  height: 420px; border-radius: var(--radius-lg); overflow:hidden; border:1px solid #e6eeff; box-shadow: var(--shadow-md);
}
.map-wrap iframe{ width:100%; height:100%; border:0; display:block; }

/* ========== Footer ========== */
.site-footer{ background: #0f172a; color: #e5e7eb; padding: 32px 0; }
.footer-grid{ display:grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; }
.brand-footer .brand-logo{ background:#fff; color: #0f172a; }
.site-footer a{ color:#c7d2fe; }
.site-footer h4{ margin:0 0 8px; }

.link-list{ list-style:none; margin:0; padding:0; }
.link-list li{ margin:4px 0; }
.muted{ color: #9aa5b1; font-size: 14px; }

@media (max-width: 800px){
  .footer-grid{ grid-template-columns: 1fr; }
}

/* ========== Buttons ========== */
.btn{
  display:inline-flex; align-items:center; gap:10px; font-weight:700; border-radius: 12px; padding: 12px 16px; border: 2px solid transparent; text-decoration:none; cursor:pointer;
}
.btn-primary{ background: var(--primary-600); color:#fff; }
.btn-primary:hover{ background: var(--primary-700); }
.btn-outline{ background:#fff; border-color: #c7d2fe; color: var(--primary-600); }
.btn-outline:hover{ background: #eef2ff; }

/* Floating WhatsApp */
.whatsapp-float{
  position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 999px;
  display:grid; place-items:center; background: #22c55e; color:#fff; box-shadow: var(--shadow-lg);
}
.whatsapp-float:hover{ filter: brightness(1.1); }

/* Utilities */
.br-md{ display:none; }
@media (min-width: 760px){ .br-md{ display:inline; } }
