/* =====================================================
   BLACK CONTROL — LANDING PAGE STYLES
   Digitalización y Modernización de Archivos 2026
   ===================================================== */

:root {
  --navy: #0c1829;
  --navy-mid: #132238;
  --teal: #0a8f96;
  --teal-light: #0cc0c9;
  --gold: #c9a84c;
  --slate: #94a3b8;
  --off-white: #f0f4f8;
  --white: #ffffff;
  --green-bc: #2e7d32;
  --radius: 16px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: #1e293b;
  background: var(--off-white);
  overflow-x: hidden;
}

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

/* ── NAV ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12,24,41,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}
.nav.scrolled { background: rgba(12,24,41,0.98); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 2rem;
}
.nav-logo {
  font-family: 'Instrument Serif', serif;
  color: var(--white); font-size: 1.6rem; font-weight: 700;
  letter-spacing: 2px; text-decoration: none;
}
.nav-logo span { color: var(--teal-light); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--slate); text-decoration: none; font-size: 0.85rem;
  font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--teal-light); }
.nav-cta {
  background: var(--teal); color: var(--white);
  padding: 0.6rem 1.4rem; border-radius: 8px; text-decoration: none;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px;
  transition: all 0.3s; border: 2px solid transparent;
}
.nav-cta:hover { background: transparent; border-color: var(--teal-light); color: var(--teal-light); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.3s; }

/* Mobile nav */
.nav-links.show {
  display: flex !important; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--navy); padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.18;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(12,24,41,0.95) 0%, rgba(10,143,150,0.25) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 8rem 2rem 4rem;
}
.hero-badge {
  display: inline-block;
  background: rgba(10,143,150,0.15); border: 1px solid rgba(12,204,201,0.3);
  padding: 0.4rem 1rem; border-radius: 100px;
  color: var(--teal-light); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease both;
}
.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  color: var(--white); line-height: 1.08;
  max-width: 800px; margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s 0.15s ease both;
}
.hero h1 em { color: var(--teal-light); font-style: italic; }
.hero-sub {
  font-size: 1.15rem; color: var(--slate);
  max-width: 560px; line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s 0.3s ease both;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.45s ease both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--teal); color: var(--white);
  padding: 1rem 2rem; border-radius: 10px; text-decoration: none;
  font-weight: 700; font-size: 1rem;
  transition: all 0.3s; border: 2px solid var(--teal);
}
.btn-primary:hover { background: transparent; color: var(--teal-light); border-color: var(--teal-light); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--slate);
  padding: 1rem 2rem; border-radius: 10px; text-decoration: none;
  font-weight: 500; font-size: 1rem;
  border: 1px solid rgba(148,163,184,0.3);
  transition: all 0.3s;
}
.btn-ghost:hover { color: var(--white); border-color: var(--white); }
.hero-stats {
  display: flex; gap: 3rem; margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: fadeInUp 0.8s 0.6s ease both;
}
.hero-stat-num {
  font-family: 'Instrument Serif', serif;
  font-size: 2.8rem; color: var(--teal-light); line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem; color: var(--slate); margin-top: 0.3rem;
  text-transform: uppercase; letter-spacing: 1px;
}

/* ── ALERT BAR ────────────────────────────────────── */
.alert-bar {
  background: linear-gradient(90deg, #b91c1c, #991b1b);
  padding: 1.2rem 2rem;
  text-align: center; color: var(--white);
  font-size: 0.95rem; font-weight: 500;
}
.alert-bar strong { font-weight: 700; }

/* ── SECTIONS ─────────────────────────────────────── */
.section {
  padding: 6rem 2rem;
  max-width: 1200px; margin: 0 auto;
}
.section-dark {
  background: var(--navy);
  max-width: 100%; padding: 6rem 2rem;
}
.section-dark .section-inner { max-width: 1200px; margin: 0 auto; }
.section-teal {
  background: linear-gradient(135deg, #064e52 0%, #0a8f96 100%);
  max-width: 100%; padding: 6rem 2rem;
}
.section-teal .section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  color: var(--teal); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.section-dark .section-tag { color: var(--teal-light); }
.section-teal .section-tag { color: rgba(255,255,255,0.7); }
.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15; margin-bottom: 1rem;
}
.section-dark .section-title { color: var(--white); }
.section-teal .section-title { color: var(--white); }
.section-desc {
  font-size: 1.05rem; color: #64748b; line-height: 1.7;
  max-width: 640px; margin-bottom: 3rem;
}
.section-dark .section-desc { color: var(--slate); }
.section-teal .section-desc { color: rgba(255,255,255,0.8); }

/* ── PROBLEM CARDS ────────────────────────────────── */
.problem-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.problem-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; border: 1px solid #e2e8f0;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: var(--teal);
}
.problem-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  opacity: 0; transition: opacity 0.3s;
}
.problem-card:hover::before { opacity: 1; }
.problem-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(10,143,150,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; font-size: 1.4rem;
}
.problem-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.problem-card p { font-size: 0.9rem; color: #64748b; line-height: 1.6; }

/* ── LAW CARDS ────────────────────────────────────── */
.law-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}
.law-card {
  background: var(--navy-mid); border-radius: var(--radius);
  padding: 2.5rem; border: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.law-card::after {
  content: attr(data-number);
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-family: 'Instrument Serif', serif;
  font-size: 4rem; color: rgba(10,143,150,0.12); line-height: 1;
}
.law-card h3 { color: var(--teal-light); font-size: 1.2rem; margin-bottom: 0.8rem; }
.law-card p { color: var(--slate); font-size: 0.92rem; line-height: 1.7; }
.law-year {
  display: inline-block; background: rgba(10,143,150,0.15);
  color: var(--teal-light); padding: 0.2rem 0.7rem; border-radius: 6px;
  font-size: 0.75rem; font-weight: 700; margin-bottom: 1rem;
}

/* ── CONVERGENCE ──────────────────────────────────── */
.convergence-img {
  width: 100%; max-width: 900px; margin: 2rem auto; display: block;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.convergence-quote {
  text-align: center; margin-top: 2rem;
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem; color: rgba(255,255,255,0.9);
  font-style: italic;
}

/* ── SERVICES ─────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 2.5rem 2rem;
  text-align: center; transition: all 0.4s;
}
.service-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-6px);
  border-color: var(--teal-light);
}
.service-num {
  font-family: 'Instrument Serif', serif;
  font-size: 3rem; color: var(--teal-light); opacity: 0.4;
  line-height: 1; margin-bottom: 0.5rem;
}
.service-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 0.8rem; font-weight: 700; }
.service-card p { color: var(--slate); font-size: 0.88rem; line-height: 1.6; }

/* ── METHODOLOGY ──────────────────────────────────── */
.methodology-img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1); margin-top: 2rem;
}
.quality-flow {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center; margin-top: 2rem;
}
.quality-step {
  background: var(--white); border: 1px solid #e2e8f0;
  padding: 0.6rem 1.2rem; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; color: #334155;
  display: flex; align-items: center; gap: 0.5rem;
  transition: all 0.3s;
}
.quality-step:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.q-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
}
.quality-step:hover .q-num { background: var(--white); color: var(--teal); }

/* ── SICAAD ───────────────────────────────────────── */
.sicaad-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.sicaad-features { display: grid; gap: 1.2rem; }
.sicaad-feat { display: flex; gap: 1rem; align-items: flex-start; }
.sicaad-feat-icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 10px; background: rgba(10,143,150,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.sicaad-feat h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.sicaad-feat p { font-size: 0.85rem; color: #64748b; line-height: 1.5; }
.sicaad-img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* ── BEFORE/AFTER ─────────────────────────────────── */
.ba-container {
  position: relative; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.ba-img { width: 100%; display: block; }

/* ── BENEFITS ─────────────────────────────────────── */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.benefit-card { text-align: center; padding: 2.5rem 1.5rem; }
.benefit-number {
  font-family: 'Instrument Serif', serif;
  font-size: 4rem; color: var(--teal-light);
  line-height: 1; margin-bottom: 0.5rem;
}
.benefit-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 0.8rem; }
.benefit-card p { color: var(--slate); font-size: 0.88rem; line-height: 1.6; }

/* ── CLIENTS ──────────────────────────────────────── */
.clients-img {
  width: 100%; max-width: 1000px; margin: 0 auto; display: block;
  border-radius: var(--radius); background: var(--white);
  padding: 1.5rem; box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* ── CONOCER ──────────────────────────────────────── */
.conocer-img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* ── ISO BADGES ───────────────────────────────────── */
.iso-badges { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; }
.iso-badge {
  background: rgba(10,143,150,0.08); border: 1px solid rgba(10,143,150,0.2);
  padding: 0.6rem 1.2rem; border-radius: 8px;
  font-size: 0.82rem; font-weight: 700; color: var(--teal);
}
.iso-badge--light {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}
.iso-badge--dark {
  background: rgba(12,204,201,0.08);
  border-color: rgba(12,204,201,0.2);
  color: var(--teal-light);
}

/* ── CTA SECTION ──────────────────────────────────── */
.cta-section {
  background: var(--navy); padding: 6rem 2rem;
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(10,143,150,0.2) 0%, transparent 70%);
}
.cta-inner {
  position: relative; z-index: 2;
  max-width: 700px; margin: 0 auto;
}
.cta-inner h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white); margin-bottom: 1rem;
}
.cta-inner p { color: var(--slate); font-size: 1.05rem; line-height: 1.7; margin-bottom: 2.5rem; }
.cta-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; text-align: left; margin-bottom: 3rem;
}
.cta-card {
  background: var(--navy-mid); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 1.5rem;
}
.cta-card h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.3rem; }
.cta-card p { color: var(--slate); font-size: 0.82rem; line-height: 1.5; }
.cta-tagline { margin-top: 1.5rem; font-size: 0.85rem; color: #64748b; }
.cta-tagline strong { color: var(--teal-light); }

/* ── FOOTER ───────────────────────────────────────── */
.footer {
  background: #060d17; padding: 3rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 3rem; flex-wrap: wrap; text-align: left;
}
.footer-col h4 {
  color: var(--white); font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem;
}
.footer-col p, .footer-col a {
  color: var(--slate); font-size: 0.85rem; line-height: 1.8;
  text-decoration: none; display: block;
}
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom {
  max-width: 1200px; margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.footer-bottom p { color: #475569; font-size: 0.8rem; }

/* ── ANIMATIONS ───────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .sicaad-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .cta-cards { grid-template-columns: 1fr; }
  .law-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; text-align: center; }
  .hero-content { padding: 6rem 1.5rem 3rem; }
  .section { padding: 4rem 1.5rem; }
  .section-dark, .section-teal { padding: 4rem 1.5rem; }
}
