/* ============================================================
   SEGHAT – CSS
   Paleta: Blue #2563EB · Navy #0F172A · Green #10B981
           Orange #EA580C · Gray #64748B
   Fonts:  Montserrat · Inter · JetBrains Mono
============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #2563EB;
  --blue-dark: #1d4ed8;
  --navy:      #0F172A;
  --navy-mid:  #1e293b;
  --navy-soft: #334155;
  --green:     #10B981;
  --green-dark:#059669;
  --orange:    #EA580C;
  --gray:      #64748B;
  --gray-light:#94a3b8;
  --gray-bg:   #f1f5f9;
  --white:     #ffffff;

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(15,23,42,.12);
  --shadow-lg: 0 8px 48px rgba(15,23,42,.18);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

.text-green  { color: var(--green); }
.text-blue   { color: var(--blue); }
.text-orange { color: var(--orange); }
.text-gray   { color: var(--gray-light); }
.text-white  { color: var(--white) !important; }
.mono-text   { font-family: var(--font-mono); font-size: .85rem; line-height: 1.8; }

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 96px 0; }
.section-dark  { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-blue  { background: var(--blue); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.section-header h2 { margin: .5rem 0 1rem; }
.section-desc { color: var(--gray); font-size: 1.05rem; }
.section-dark .section-desc { color: var(--gray-light); }

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(37,99,235,.1);
  color: var(--blue);
  padding: .3rem .85rem;
  border-radius: 99px;
}
.section-tag-green { background: rgba(16,185,129,.12); color: var(--green); }
.section-tag-orange{ background: rgba(234,88,12,.12);  color: var(--orange); }
.section-tag-white { background: rgba(255,255,255,.15); color: var(--white); }

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 1.8rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: .83rem 1.8rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,.4);
  transition: border-color var(--transition), background var(--transition);
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(15,23,42,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.nav-logo { width: 38px; height: 38px; object-fit: contain; }
.nav-wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: .06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.btn-nav {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: .45rem 1.2rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  font-size: .85rem !important;
  transition: background var(--transition) !important;
}
.btn-nav:hover { background: var(--blue-dark) !important; }
.btn-nav-green { background: var(--green) !important; }
.btn-nav-green:hover { background: var(--green-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 7rem 6vw 4rem;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--green);
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.25);
  padding: .35rem .9rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

.hero-title { color: var(--white); margin-bottom: .5rem; }
.hero-slogan {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.6);
  letter-spacing: .02em;
  font-style: italic;
  margin-bottom: 1.25rem;
}
.hero-subtitle {
  color: var(--gray-light);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
}
.stat-label { font-size: .75rem; color: var(--gray-light); font-family: var(--font-mono); }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.12); }

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.shield-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 40px rgba(37,99,235,.4));
}
.shield-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(37,99,235,.2);
  animation: expand 4s ease-out infinite;
}
.ring-1 { width: 220px; height: 220px; animation-delay: 0s; }
.ring-2 { width: 270px; height: 270px; animation-delay: 1.3s; }
.ring-3 { width: 316px; height: 316px; animation-delay: 2.6s; }
@keyframes expand {
  0%   { opacity: .6; transform: scale(.9); }
  100% { opacity: 0;  transform: scale(1.05); }
}

/* ── CARDS (Nosotros) ─────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card h3 { margin: 1rem 0 .6rem; }
.card p  { color: var(--gray); font-size: .95rem; line-height: 1.7; }

.card-featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), var(--shadow);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 22px; height: 22px; }
.icon-blue  { background: rgba(37,99,235,.1);  color: var(--blue); }
.icon-green { background: rgba(16,185,129,.1); color: var(--green); }
.icon-navy  { background: rgba(15,23,42,.08);  color: var(--navy); }

.uvp-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue);
  margin-bottom: .75rem;
  line-height: 1.4;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--gray-bg);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
}
.value-icon { font-size: 1.4rem; flex-shrink: 0; }
.value-item strong { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .2rem; }
.value-item span   { font-size: .78rem; color: var(--gray); font-family: var(--font-mono); }

/* ── SERVICES ─────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: rgba(37,99,235,.5);
  transform: translateY(-4px);
}
.service-card-featured {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--navy-mid) 0%, rgba(16,185,129,.08) 100%);
  position: relative;
}
.service-number {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: rgba(37,99,235,.5);
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 1.25rem;
}
.service-card-featured .service-number { color: rgba(16,185,129,.8); }

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.service-icon {
  width: 44px; height: 44px;
  background: rgba(37,99,235,.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.service-icon svg { width: 20px; height: 20px; }

.service-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--gray-light);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}
.service-header h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin: 0;
}

.service-promise {
  font-size: .88rem;
  color: var(--green);
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.service-list { margin-bottom: 1.5rem; }
.service-list li {
  font-size: .88rem;
  color: var(--gray-light);
  padding: .4rem 0 .4rem 1.2rem;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.service-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.service-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.service-time   { font-family: var(--font-mono); font-size: .75rem; color: var(--gray-light); }
.service-target { font-size: .75rem; color: var(--gray); }

/* ── Product Highlight (Sistema de Activos Fijos) ─────────── */
.product-highlight {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, var(--navy-mid) 0%, rgba(37,99,235,.12) 100%);
  border: 1px solid rgba(37,99,235,.35);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
}
.product-highlight-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: center;
}
@media(max-width:860px){ .product-highlight-inner { grid-template-columns: 1fr; } }
.product-highlight-text h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .6rem;
}
.product-highlight-text p {
  color: var(--gray-light);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: .5rem;
}
/* Dashboard mock inside product highlight */
.product-highlight-mock {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
}
.mock-topbar {
  background: #1e293b;
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mock-dot { width:10px; height:10px; border-radius:50%; }
.mock-dot.r { background:#ff5f57; }
.mock-dot.y { background:#febc2e; }
.mock-dot.g { background:#28c840; }
.mock-body { padding: 1.25rem; }
.mock-title { color: var(--white); font-weight: 700; font-size: .88rem; margin-bottom: .2rem; }
.mock-sub   { color: var(--gray); font-size: .72rem; margin-bottom: 1rem; }
.mock-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .75rem; }
.mock-stat  { background: #1e293b; border-radius: 6px; padding: .6rem .75rem; }
.mock-stat-num { color: var(--white); font-weight: 700; font-size: 1rem; }
.mock-stat-lbl { color: var(--gray); font-size: .68rem; margin-top: .1rem; }
.mock-health {
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.25);
  border-radius: 6px;
  padding: .5rem .75rem;
  font-size: .78rem;
  color: var(--gray-light);
  display: flex;
  justify-content: space-between;
}
.mock-health strong { color: var(--green); }

/* ── METHODOLOGY ──────────────────────────────────────────── */
.phases-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}
.phases-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--green));
}
.phase {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.75rem 0;
  position: relative;
}
.phase-number {
  width: 58px; height: 58px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .85rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--blue);
}
.phase:last-child .phase-number { background: var(--green); box-shadow: 0 0 0 3px var(--green); }

.phase-content { padding-top: .8rem; }
.phase-content h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: .4rem; }
.phase-content p  { color: var(--gray); font-size: .93rem; }

/* ── SECTORS ──────────────────────────────────────────────── */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.sector-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}
.sector-card:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-4px);
}
.sector-icon { font-size: 2rem; margin-bottom: .75rem; }
.sector-card h4 { color: var(--white); font-size: .95rem; margin-bottom: .4rem; }
.sector-card p  { font-size: .82rem; color: rgba(255,255,255,.65); line-height: 1.5; }

/* ── SEGHAT ALERTA ────────────────────────────────────────── */
.alerta-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.alerta-content h2 { margin: .75rem 0 1rem; }
.alerta-content p  { color: var(--gray); margin-bottom: 1.5rem; }

.alerta-list { margin-bottom: 2rem; display: flex; flex-direction: column; gap: .65rem; }
.alerta-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--navy);
  font-size: .93rem;
}
.alerta-dot {
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.alerta-channels { display: flex; gap: .75rem; flex-wrap: wrap; }
.channel-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition);
}
.channel-btn:hover { opacity: .85; }
.channel-icon { width: 18px; height: 18px; }
.channel-yt { background: #FF0000; color: var(--white); }
.channel-tt { background: var(--navy); color: var(--white); border: 1px solid rgba(255,255,255,.15); }

/* Alerta Visual Card */
.alerta-visual { display: flex; justify-content: center; }
.alerta-card {
  background: var(--navy);
  border: 1px solid rgba(37,99,235,.3);
  border-radius: var(--radius);
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.alerta-card-header {
  background: rgba(37,99,235,.15);
  padding: .75rem 1.25rem;
  border-bottom: 1px solid rgba(37,99,235,.2);
}
.alerta-badge {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: .08em;
}
.alerta-card-body { padding: 1.5rem 1.25rem; }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { color: var(--white); margin: .75rem 0 1rem; }
.contact-info > p { color: var(--gray-light); margin-bottom: 2rem; line-height: 1.7; }

.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex; align-items: center; gap: .75rem;
  color: var(--gray-light); font-size: .9rem;
}
.contact-item svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }

/* Form */
.contact-form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.form-row .form-group { margin-bottom: 0; }

label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-light);
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
input, select, textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .93rem;
  width: 100%;
  transition: border-color var(--transition), background var(--transition);
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.3); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(37,99,235,.08);
}
select option { background: var(--navy-mid); color: var(--white); }
textarea { resize: vertical; min-height: 110px; }

.form-error { font-size: .78rem; color: #f87171; font-family: var(--font-mono); }
.form-success {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.3);
  color: var(--green);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: .9rem;
  margin-top: 1rem;
}
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }
.form-error-global {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: #f87171;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: .9rem;
  margin-top: 1rem;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .5rem;
  background: rgba(37,99,235,.07);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  transition: border-color .2s;
}
.form-consent.consent-error {
  border-color: #ef4444;
  background: rgba(239,68,68,.07);
}
.form-consent input[type="checkbox"] {
  margin-top: .15rem;
  flex-shrink: 0;
  width: 18px; height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}
.form-consent label {
  font-size: .85rem;
  color: var(--gray-light);
  line-height: 1.55;
  cursor: pointer;
}
.form-consent label strong { color: var(--white); font-weight: 600; }
.consent-link {
  color: #60a5fa !important;
  font-weight: 700;
  text-decoration: underline;
}
.consent-link:hover { color: var(--white) !important; }
.consent-required {
  color: #f87171;
  font-size: .75rem;
  font-weight: 700;
  margin-left: .25rem;
}

.btn-submit {
  width: 100%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  transition: background var(--transition);
}
.btn-submit:hover:not(:disabled) { background: var(--blue-dark); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: #060d1a;
  color: var(--gray-light);
  padding: 4rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 2rem;
}
.footer-brand { display: flex; flex-direction: column; gap: .4rem; }
.footer-logo  { width: 40px; height: 40px; object-fit: contain; }
.footer-wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: .06em;
}
.footer-tagline {
  font-size: .82rem;
  color: var(--gray);
  line-height: 1.6;
  margin-top: .5rem;
}
.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.social-icon {
  width: 36px; height: 36px;
  min-width: 36px; min-height: 36px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-light);
  overflow: hidden;
  transition: background var(--transition), color var(--transition);
}
.social-icon svg {
  width: 17px !important;
  height: 17px !important;
  flex-shrink: 0;
}
.social-icon:hover { background: var(--blue); color: var(--white); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col h5 {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a {
  font-size: .85rem;
  color: var(--gray);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: var(--gray);
}
.footer-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.badge-tech {
  font-family: var(--font-mono);
  font-size: .68rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--gray-light);
  padding: .2rem .6rem;
  border-radius: 4px;
  letter-spacing: .06em;
}

/* ── CLIENTS CAROUSEL ─────────────────────────────────────── */
/* ── PROBLEMAS ─────────────────────────────────────────────── */
.section-problems { background: #f8fafc; }
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media(max-width:860px){ .problems-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:560px){ .problems-grid { grid-template-columns: 1fr; } }
.problem-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.problem-card:hover { box-shadow: 0 8px 24px rgba(37,99,235,.1); transform: translateY(-3px); }
.problem-icon { font-size: 1.6rem; }
.problem-card p { font-size: .9rem; color: #334155; line-height: 1.6; font-style: italic; margin: 0; }
.problems-cta-text { text-align: center; font-size: .95rem; color: var(--gray); }
.problems-cta-text a { color: var(--blue); font-weight: 600; text-decoration: underline; }

/* ── COOPERATIVAS SEPS ─────────────────────────────────────── */
.section-coac { }
.coac-journey {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto 3rem;
  position: relative;
}
.coac-journey::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(37,99,235,.2);
}
.coac-step {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 0;
  position: relative;
}
.coac-step-num {
  width: 46px; height: 46px;
  background: var(--blue);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--navy-mid);
}
.coac-step-body { padding-top: .5rem; }
.coac-step-body h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .35rem;
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.coac-badge {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 700;
  background: rgba(16,185,129,.15);
  color: var(--green);
  padding: .2rem .55rem;
  border-radius: 100px;
  letter-spacing: .05em;
}
.coac-step-body p { font-size: .88rem; color: var(--gray-light); line-height: 1.6; margin: 0; }
.coac-link { display: inline-block; margin-top: .4rem; font-size: .82rem; color: var(--blue); font-weight: 600; }
.coac-link:hover { color: #93c5fd; }

.coac-cta-box {
  background: linear-gradient(135deg, rgba(37,99,235,.12) 0%, rgba(16,185,129,.08) 100%);
  border: 1px solid rgba(37,99,235,.3);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.coac-cta-text h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .4rem;
}
.coac-cta-text p { font-size: .9rem; color: var(--gray-light); }
.coac-cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.section-clients {
  background: var(--white);
  padding: 80px 0 60px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}

.clients-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.clients-eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.clients-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--navy);
  margin-bottom: .9rem;
  line-height: 1.25;
}
.clients-sub {
  color: var(--gray);
  font-size: .97rem;
  line-height: 1.7;
}

/* Track container — clips overflow */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: .5rem 0;
}

/* Fade edges */
.carousel-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.carousel-fade-left  { left: 0;  background: linear-gradient(to right, var(--white), transparent); }
.carousel-fade-right { right: 0; background: linear-gradient(to left,  var(--white), transparent); }

/* Moving track — CSS-only infinite scroll */
.carousel-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: carousel-scroll 28s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }

@keyframes carousel-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Individual logo item */
.carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 72px;
  padding: .75rem 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  flex-shrink: 0;
  text-decoration: none;
}
.carousel-item:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(37,99,235,.12);
  transform: translateY(-2px);
}
.carousel-item img {
  max-height: 44px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .65;
  transition: filter var(--transition), opacity var(--transition);
}
.carousel-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Fallback si no carga la imagen */
.logo-fallback {
  display: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.carousel-item:hover .logo-fallback { color: var(--blue); }

/* Bottom link */
.clients-bottom { text-align: center; margin-top: 2.5rem; }
.clients-join-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.clients-join-link:hover { border-color: var(--blue); }

/* ── BACK TO TOP ──────────────────────────────────────────── */
#backToTop {
  position: fixed;
  bottom: 6.5rem;        /* encima del botón WhatsApp */
  right: 2rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  background: rgba(15,23,42,.85);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, visibility .25s, transform .25s, background .2s;
  backdrop-filter: blur(8px);
}
#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover { background: var(--blue); border-color: var(--blue); }
#backToTop svg  { width: 18px; height: 18px; color: #fff; }

/* ── WHATSAPP FLOAT ───────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
}
.wa-icon { width: 30px; height: 30px; color: #fff; }

.contact-link {
  color: var(--green);
  font-weight: 600;
  transition: color var(--transition);
}
.contact-link:hover { color: var(--white); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 7rem 6vw 4rem; text-align: center; }
  .hero-subtitle { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats   { justify-content: center; }
  .hero-visual  { display: none; }
  .alerta-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute;
    top: 100%; left: 0; right: 0; background: rgba(15,23,42,.97);
    backdrop-filter: blur(12px); padding: 1rem 0; }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0; }
  .nav-links a { display: block; padding: .75rem 1.5rem; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .phases-timeline::before { left: 22px; }
  .phase-number { width: 46px; height: 46px; font-size: .75rem; }
  /* Liderazgo: foto arriba, texto abajo */
  #liderazgo .container > div { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  #liderazgo .container > div > div:first-child { justify-content: center; }
  #liderazgo .container > div > div:last-child > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .footer-links { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
  .hero { padding: 6rem 1.5rem 3rem; }
  .services-grid { grid-template-columns: 1fr; }
}
