/* ==========================================================================
   SEGELAD — Sistema de diseño compartido
   Paleta heredada de la identidad actual + tipografía técnica de refuerzo
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0B1E33;
  --navy-deep: #0A0F1A;
  --navy-mid: #132b44;
  --red: #DC2626;
  --red-dark: #b91c1c;
  --amber: #F59E0B;
  --amber-dark: #d97706;
  --white: #FFFFFF;
  --paper: #F9FAFB;
  --line: #E5E7EB;
  --slate: #4B5563;
  --ink: #111827;
  --ink-soft: #1F2937;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1 { font-size: 3.1rem; }
h2 { font-size: 2.1rem; margin-bottom: 1.2rem; }
h3 { font-size: 1.35rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--slate); font-size: 1.08rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3, .bg-navy .eyebrow { color: var(--white); }
.bg-navy .eyebrow::before { background: var(--amber); }
.bg-paper { background: var(--paper); }
.text-center { text-align: center; }

/* ---------- Circuit motif (firma visual, tomada del isotipo) ---------- */
.circuit-divider {
  width: 100%;
  height: 28px;
  display: block;
}
.circuit-rule {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.98rem;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.btn-primary { background-color: var(--red); color: white; border: 1px solid var(--red); }
.btn-primary:hover { background-color: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background-color: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background-color: white; color: var(--navy); }
.btn-outline-dark { background-color: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline-dark:hover { background-color: var(--navy); color: white; }
.btn-warning { background-color: var(--amber); color: var(--navy); font-weight: 700; }
.btn-warning:hover { background-color: var(--amber-dark); color: white; }
.btn-block { display: block; width: 100%; }

/* ---------- Header ---------- */
.header {
  padding: 16px 0;
  background-color: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.brand-word { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--navy); }
.brand-word span { color: var(--red); }
.brand-sub { display: block; font-size: 0.62rem; letter-spacing: 0.06em; color: var(--slate); font-weight: 500; text-transform: uppercase; }

nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--red); }

.header-cta {
  background-color: var(--red);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle { display: none; }

@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
    background: white; font-size: 1.1rem; color: var(--navy); cursor: pointer;
  }
  nav.main-nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0; background: white;
    padding: 12px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  nav.main-nav.open a { padding: 10px 0; width: 100%; border-bottom: 1px dashed var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 88px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.hero-grid { display: flex; align-items: center; gap: 48px; position: relative; z-index: 1; }
.hero-content { flex: 1.1; }
.hero-eyebrow { color: var(--amber); }
.hero-eyebrow::before { background: var(--amber); }
.hero h1 { color: white; font-size: 3rem; margin-bottom: 20px; }
.hero .accent { color: var(--amber); border-bottom: 3px solid var(--red); display: inline-block; }
.hero-sub { font-size: 1.2rem; margin-bottom: 32px; opacity: 0.88; max-width: 540px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-visual { flex: 0.9; display: flex; justify-content: center; align-items: center; }
.hero-visual img { width: 240px; max-width: 70vw; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35)); }

@media (max-width: 860px) {
  .hero-grid { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 2.3rem; }
  .hero-buttons { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
}

/* ---------- Tarjetas de servicio ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  height: 100%;
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--paper); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--navy); margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 0.97rem; }
.card a.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; color: var(--red); text-decoration: none; font-size: 0.92rem; }

.checklist { list-style: none; }
.checklist li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.checklist i { color: var(--red); font-size: 1.1rem; margin-top: 3px; }

/* ---------- Proceso AISR (secuencia real → numeración justificada) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  background: white;
}
.process-step .step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem; font-weight: 700; color: var(--amber-dark);
  letter-spacing: 0.06em; margin-bottom: 10px; display: block;
}
.process-step .step-letter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem; font-weight: 700; color: var(--navy);
  opacity: 0.14; position: absolute; top: 18px; right: 20px;
}

/* ---------- Planes / pricing ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0; }
@media (max-width: 860px) { .plans-grid { grid-template-columns: 1fr; } }
.plan-card { background: white; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-md); border: 1px solid var(--line); position: relative; }
.plan-card.highlight { border: 2px solid var(--amber); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -12px; left: 22px; background: var(--amber); color: var(--navy); font-weight: 800; padding: 4px 16px; border-radius: 30px; font-size: 0.76rem; }
.plan-name { font-size: 1.35rem; font-weight: 700; color: var(--navy); font-family: 'Space Grotesk', sans-serif; margin-bottom: 4px; }
.plan-price { font-size: 1.5rem; font-weight: 700; color: var(--red); margin-bottom: 4px; }
.plan-price span { font-size: 0.85rem; color: var(--slate); font-weight: 500; }
.plan-note { font-size: 0.85rem; color: var(--slate); margin-bottom: 18px; }
.plan-features { list-style: none; margin: 20px 0; }
.plan-features li { padding: 8px 0; display: flex; gap: 10px; border-bottom: 1px dashed var(--line); font-size: 0.94rem; }
.plan-features i { color: var(--red); width: 18px; margin-top: 3px; }

/* ---------- Cifras ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat .num { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--amber); }
.stat .label { font-size: 0.88rem; opacity: 0.85; margin-top: 4px; }

/* ---------- Diferenciador ---------- */
.diff-block { background: var(--navy-deep); color: white; padding: 56px 40px; border-radius: 28px; text-align: center; }
.diff-quote { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; line-height: 1.3; }
.diff-quote span { color: var(--amber); }

/* ---------- Formulario ---------- */
.form-card { background: white; border-radius: 28px; padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--ink-soft); font-size: 0.94rem; }
.form-control, select.form-control, textarea.form-control {
  width: 100%; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 14px;
  font-size: 1rem; transition: border 0.15s; font-family: inherit; background: white;
}
.form-control:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
.success-message { background: #10b981; color: white; padding: 14px; border-radius: 14px; margin-top: 20px; display: none; font-weight: 500; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.85); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 30px; }
.footer-brand span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: white; font-size: 1.1rem; }
footer.site-footer p { font-size: 0.9rem; opacity: 0.75; line-height: 1.6; }
footer.site-footer h4 { color: white; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
footer.site-footer ul { list-style: none; }
footer.site-footer ul li { margin-bottom: 10px; }
footer.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.92rem; }
footer.site-footer a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; opacity: 0.6; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; background-color: #25D366; color: white;
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 30px; box-shadow: 0 6px 16px rgba(0,0,0,0.25); z-index: 999; transition: 0.2s; text-decoration: none;
}
.wa-float:hover { transform: scale(1.08); background-color: #20b859; }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero { background: var(--navy); color: white; padding: 64px 0 56px; }
.page-hero h1 { color: white; font-size: 2.5rem; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 620px; font-size: 1.08rem; margin-top: 12px; }
.breadcrumb { font-size: 0.85rem; opacity: 0.7; margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }

/* ---------- Utilidades ---------- */
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.6rem; } .mt-3 { margin-top: 1.6rem; }
.tag { display: inline-block; background: var(--paper); color: var(--navy); font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: 20px; margin-right: 8px; margin-bottom: 8px; border: 1px solid var(--line); }
