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

:root {
  --bg: #f5f7fb;
  --bg-alt: #eaecf4;
  --bg-card: #ffffff;
  --blue: #1a2a6e;
  --blue-dim: #111f55;
  --blue-pale: #dde3f4;
  --blue-glow: rgba(26,42,110,0.06);
  --navy: #0f1d52;
  --navy-mid: #2a3a7a;
  --text: #0f1d52;
  --text-mid: #374270;
  --text-soft: #6b779e;
  --border: rgba(26,42,110,0.18);
  --border-mid: #b8c0d8;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,85,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,85,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245,247,251,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-mid);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--blue); }

.nav-cta {
  background: var(--blue) !important;
  color: #ffffff !important;
  padding: 0.5rem 1.4rem;
  border-radius: 2px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--blue-dim) !important; }

section {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-x: hidden;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 9rem 6rem 5rem;
  position: relative;
  background:
    linear-gradient(160deg, rgba(10,18,60,0.93) 0%, rgba(15,25,75,0.88) 55%, rgba(10,18,60,0.82) 100%),
    url('../img/bgmarcohero.webp') center/cover no-repeat;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7eb3ff;
  margin-bottom: 1.8rem;
}

.hero-label::before,
.hero-label::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: #7eb3ff;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 780px;
  margin: 0 auto 2rem;
  color: #ffffff;
}

.hero h1 em {
  font-style: normal;
  color: #7eb3ff;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.90);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.75;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: #1a2a6e;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 2.2rem;
  border: 2px solid #1a2a6e;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  display: inline-block;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(30%);
}

.btn-primary:hover {
  background: #111f55;
  border-color: #111f55;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: #7eb3ff;
  color: #7eb3ff;
  background: rgba(126,179,255,0.08);
}

.hero-badges {
  display: flex;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 700px;
}

.badge-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  text-align: center;
}

.badge-num {
  font-family: 'Gill Sans', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #7eb3ff;
  line-height: 1;
}

.badge-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 400;
}

.section-tag {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 620px;
  color: var(--navy);
}

.section-sub {
  color: var(--text-mid);
  max-width: 540px;
  font-size: 1rem;
  margin-bottom: 3.5rem;
}

.leyes {
  padding: 6rem 6rem;
  background: url('../img/bgmarconormativo.webp') center/cover no-repeat;
  border-top: 1px solid var(--border-mid);
  border-bottom: 1px solid var(--border-mid);
}

.leyes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--border-mid);
  border: 1px solid var(--border-mid);
}

.ley-card {
  background: var(--bg-card);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.ley-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--blue);
}

.ley-card:hover { background: var(--blue-pale); }

.ley-num {
  font-family: 'Gill Sans', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: rgba(0, 85, 255, 0.735);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.ley-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--blue);
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}

.ley-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.ley-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ley-items li {
  font-size: 0.85rem;
  color: var(--text-mid);
  padding-left: 1.2rem;
  position: relative;
}

.ley-items li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.8rem;
}

.servicios {
  padding: 7rem 6rem;
  background: url('../img/bgmarcoservicios.webp') center/cover no-repeat;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.servicio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  padding: 2rem;
  border-radius: 0;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
}

.servicio-card:hover {
  border-color: var(--blue);
  background: var(--blue-glow);
  box-shadow: 0 4px 24px rgba(0,85,255,0.07);
}

.servicio-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.servicio-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.servicio-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.servicio-desc {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.soc {
  padding: 7rem 6rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.soc::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.soc .section-tag { color: #7eb3ff; }
.soc .section-title { color: #ffffff; max-width: 700px; }
.soc .section-sub { color: rgba(255,255,255,0.65); }

.soc-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.soc-intro p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.soc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(126,179,255,0.1);
  border: 1px solid rgba(126,179,255,0.25);
  color: #7eb3ff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
}

.soc-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #7eb3ff;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.soc-servicios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.soc-card {
  background: rgba(255,255,255,0.04);
  padding: 1.8rem;
  transition: background 0.2s;
  position: relative;
}

.soc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: #7eb3ff;
  opacity: 0;
  transition: opacity 0.2s;
}

.soc-card:hover { background: rgba(126,179,255,0.08); }
.soc-card:hover::before { opacity: 1; }

.soc-card-icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(126,179,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.soc-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: #7eb3ff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.soc-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.soc-card-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

.soc-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.soc-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: #7eb3ff;
  line-height: 1;
  display: block;
}

.soc-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  display: block;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  padding: 2rem;
}

.field-help { color: var(--text-mid); }

.privacy-box {
  border: 1px solid var(--border-mid);
  background: var(--blue-pale);
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.75rem;
  color: var(--text-mid);
  font-size: 0.85rem;
  line-height: 1.7;
}

.privacy-box strong { color: var(--navy); }

.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--text-mid);
  font-size: 0.88rem;
  line-height: 1.6;
}

.checkbox-wrap input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.security-note {
  background: rgba(0,85,255,0.06);
  border: 1px solid rgba(0,85,255,0.16);
  color: var(--blue);
  padding: 0.9rem 1rem;
}

.form-status {
  min-height: 1.4rem;
  color: var(--blue);
}

.form-status.error { color: #b42318; }
.form-status.success { color: #0f766e; }

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.proceso {
  padding: 6rem 6rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-mid);
  border-bottom: 1px solid var(--border-mid);
}

.proceso-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 3.5rem;
  position: relative;
}

.proceso-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10px;
  right: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  z-index: 0;
  opacity: 0.3;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 64px;
  height: 64px;
  border: 1px solid var(--blue);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blue);
  position: relative;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.sectores {
  padding: 6rem 6rem;
  overflow: hidden;
}

.sectores-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border-mid);
  border: 1px solid var(--border-mid);
  margin-top: 3rem;
}

.sector-item {
  background: var(--bg-card);
  padding: 1.5rem 2rem;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: background 0.2s, color 0.2s;
}

.sector-item:hover {
  background: var(--blue-pale);
  color: var(--navy);
}

.sector-item::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue);
  flex-shrink: 0;
}

.cta-section {
  padding: 7rem 2rem;
  text-align: center;
  background: var(--navy);
  border-top: 1px solid var(--border-mid);
}

.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 7vw, 3.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  color: #ffffff;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.cta-section h2 em {
  font-style: normal;
  color: #7eb3ff;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.contacto {
  padding: 6rem 6rem;
  background: var(--bg-alt);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contacto-info h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--blue);
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-mid);
}

.contact-row strong {
  color: var(--navy);
  font-weight: 500;
  min-width: 80px;
  display: inline-block;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

input, textarea, select {
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  padding: 0.8rem 1rem;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,85,255,0.08);
}

select option { background: #ffffff; }

textarea {
  resize: vertical;
  min-height: 120px;
}

.turnstile-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0.75rem 0 1.25rem;
}

.cf-turnstile {
  width: 100%;
  display: flex;
  justify-content: center;
}

.cf-turnstile iframe {
  max-width: 100%;
}

footer {
  padding: 2.5rem 6rem;
  border-top: 1px solid var(--border-mid);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-card);
}

footer p {
  font-size: 0.82rem;
  color: var(--text-soft);
}

footer a {
  color: var(--blue);
  text-decoration: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero { animation: fadeUp 0.7s ease both; }
.hero .hero-label { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero .hero-sub { animation-delay: 0.32s; }
.hero .hero-actions { animation-delay: 0.44s; }
.hero .hero-badges { animation-delay: 0.56s; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  background: #ffffff;
  color: var(--blue);
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-mid);
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus { top: 1rem; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid #7aa2ff;
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .nav-links { display: none; }

  nav,
  .hero,
  .leyes,
  .servicios,
  .soc,
  .proceso,
  .sectores,
  .cta-section,
  .contacto,
  footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero { padding-top: 7rem; padding-bottom: 4rem; }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero-sub { font-size: 1rem; }

  .leyes-grid,
  .servicios-grid,
  .sectores-list,
  .soc-servicios,
  .soc-layout,
  .proceso-steps {
    grid-template-columns: 1fr;
  }

  .contacto-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-grid { grid-template-columns: 1fr; }
  .proceso-steps::before { display: none; }

  .cta-section h2 {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
    letter-spacing: -0.01em;
  }

  footer { flex-direction: column; text-align: center; }

  .turnstile-wrap {
    transform: scale(0.92);
    transform-origin: center top;
  }
  .cta-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
  }
}
