/* ============================================================
   MODUM – Sections / Layout
   ============================================================ */

/* ── Header ── */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  box-shadow: 0 1px 12px rgba(0,0,0,0.05);
  transition: box-shadow var(--ease);
  /* Needed so nav-drawer (position:absolute) anchors to header */
  overflow: visible;
}

header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
  height: 76px;
}

.header-logo {
  height: 62px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

header nav {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}
header nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color var(--ease);
  position: relative;
}
header nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--ease);
}
header nav a:hover { color: var(--primary); }
header nav a:hover::after,
header nav a.active::after { width: 100%; }
header nav a.active { color: var(--primary); font-weight: 600; }

.header-btns {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-shrink: 0;
}

.header-btns .btn {
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

/* ── Logo sizes ── */
.footer-logo { height: 58px; width: auto; margin-bottom: 1rem; }

/* ── Hero ── */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #001f3f 0%, var(--primary) 45%, #005a9e 75%, var(--secondary) 100%);
  color: var(--white);
  padding: 5.5rem 0 7rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0,180,230,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(0,153,204,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  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: 48px 48px;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite alternate;
}
.hero-blob-1 {
  width: 32rem; height: 32rem;
  background: var(--accent);
  top: -6rem; right: -8rem;
  animation-delay: -2s;
}
.hero-blob-2 {
  width: 30rem; height: 30rem;
  background: var(--secondary);
  bottom: -5rem; left: -8rem;
}

@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, -20px) scale(1.06); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-lead {
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff 40%, rgba(0,212,255,0.85));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-eyebrow {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-body {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 46ch;
}
.hero-ctas { display: flex; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-img-wrap { position: relative; }
.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(0,180,230,0.25), rgba(0,61,122,0.15));
  filter: blur(24px);
  z-index: 0;
}
.hero-img-wrap img {
  width: 100%;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0,180,230,0.2);
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease);
}
.hero-img-wrap:hover img { transform: scale(1.015); }

/* ── CSOI ── */

.csoi-img { display: flex; justify-content: center; }
.csoi-img img {
  width: 66%;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.csoi-img img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.csoi-body {
  max-width: 48rem;
  margin: 2.5rem auto 0;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ── Desc Box ── */

.desc-box {
  max-width: 54rem;
  margin: 0 auto 3rem;
  padding: 2.25rem 2.5rem;
  background: linear-gradient(135deg, rgba(0,61,122,0.04), rgba(0,153,204,0.04));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,61,122,0.1);
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.8;
  text-align: left;
}

/* ── Value Grid ── */

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

.value-card { padding: 2.25rem 1.75rem; text-align: center; }
.value-card h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 0.5rem; }
.value-card p  { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ── Flow Steps ── */

.flow-steps { max-width: 680px; margin: 0 auto; text-align: left; }

.flow-step {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  transition: background var(--ease);
}
.flow-step:hover { background: rgba(0,61,122,0.04); }

.step-content h3 { font-size: 1.25rem; color: var(--primary); margin-bottom: 0.45rem; }
.step-content p  { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

/* ── Components Grid ── */

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

.comp-card {
  padding: 2rem 2rem 2rem 1.75rem;
  border-left: 4px solid var(--secondary);
  transition: border-color var(--ease), transform var(--ease);
  position: relative;
  overflow: hidden;
}
.comp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,180,230,0.03), transparent);
  opacity: 0;
  transition: opacity var(--ease);
}
.comp-card:hover { border-left-color: var(--accent); }
.comp-card:hover::before { opacity: 1; }

.comp-emoji { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.comp-card h3 { font-size: 1rem; color: var(--primary); margin-bottom: 0.75rem; font-weight: 700; }
.comp-card p  { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* ── Satellite Section ── */

.satellite-card {
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem;
  border-left: 4px solid var(--secondary);
}
.satellite-card h3 { font-size: 1.4rem; color: var(--primary); margin-bottom: 1rem; }
.satellite-card > p { color: var(--muted); font-size: 1rem; line-height: 1.75; margin-bottom: 1.5rem; }

.sat-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.sat-list li { display: flex; gap: 1rem; align-items: flex-start; }
.sat-check {
  color: var(--white);
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}
.sat-list strong { color: var(--text); }
.sat-list p { font-size: 0.875rem; color: var(--muted); margin-top: 0.15rem; line-height: 1.6; }

/* ── Stats ── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  padding: 2.25rem;
  text-align: center;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}
.stat-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value {
  font-size: 2.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

.stats-note {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  font-style: italic;
}

/* ── Vision ── */

.vision-card {
  max-width: 58rem;
  margin: 0 auto;
  padding: 3.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #005a9e 50%, var(--secondary) 100%);
  color: var(--white);
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}
.vision-card::before {
  content: '';
  position: absolute;
  top: -30%; right: -15%;
  width: 22rem; height: 22rem;
  border-radius: 50%;
  background: rgba(0,180,230,0.12);
  filter: blur(50px);
  pointer-events: none;
}
.vision-card h3 { font-size: 1.8rem; margin-bottom: 1.25rem; line-height: 1.25; }
.vision-card p  { font-size: 1rem; color: rgba(255,255,255,0.85); line-height: 1.78; margin-bottom: 1rem; }

/* ── Partners ── */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.partner-card {
  border: 1.5px solid rgba(0,61,122,0.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.partner-card:hover {
  border-color: var(--secondary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,61,122,0.12);
}
.partner-card h3  { font-size: 1.6rem; color: var(--primary); margin-bottom: 0.4rem; }
.partner-type     { font-size: 0.82rem; color: var(--accent); font-weight: 600; margin-bottom: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.partner-desc     { font-size: 0.82rem; color: var(--muted); line-height: 1.6; flex: 1; }
.partner-url      { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-top: 1rem; opacity: 0.7; transition: opacity var(--ease); }
.partner-card:hover .partner-url { opacity: 1; }

/* ── CTA Band ── */

.cta-band {
  background: linear-gradient(135deg, #001f3f 0%, var(--primary) 50%, var(--secondary) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,180,230,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.cta-band p { font-size: 1.05rem; color: rgba(255,255,255,0.85); max-width: 42rem; margin: 0 auto 2.25rem; line-height: 1.75; }

/* ── Pricing ── */

.pricing-box {
  background: var(--white);
  border: 1px solid rgba(0,61,122,0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 3rem;
  max-width: 56rem;
  margin: 0 auto;
  text-align: left;
}
.pricing-box h3  { font-size: 1.5rem; color: var(--primary); margin-bottom: 1rem; }
.pricing-box > p { color: var(--muted); font-size: 1rem; line-height: 1.75; margin-bottom: 2rem; }

.pricing-steps { display: flex; flex-direction: column; gap: 1.5rem; }

.ps-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.ps-num {
  flex-shrink: 0;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0,61,122,0.2);
}
.ps-content h4 { font-size: 0.95rem; color: var(--primary); margin-bottom: 0.3rem; }
.ps-content p  { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

.cersat-link { margin-top: 2.25rem; }
.cersat-link details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
  overflow: hidden;
  transition: box-shadow var(--ease);
}
.cersat-link details[open] { box-shadow: var(--shadow-sm); }
.cersat-link summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--primary);
  user-select: none;
  padding: 1rem 1.25rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--ease);
}
.cersat-link summary:hover { background: #f1f5f9; }
.cersat-link summary::marker,
.cersat-link summary::-webkit-details-marker { display: none; }

/* ── Contact ── */

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  background: #22c55e;
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px rgba(34,197,94,0.35);
  transition: all var(--ease);
  margin-bottom: 3.5rem;
}
.wa-btn:hover {
  background: #16a34a;
  box-shadow: 0 8px 28px rgba(34,197,94,0.45);
  transform: translateY(-2px);
}

.social-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  transition: all var(--ease);
}
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.social-ig { background: linear-gradient(135deg, #e1306c, #f56040); }
.social-fb { background: #1877f2; }
.social-tw { background: #111; }

/* ── Footer ── */

footer {
  background: linear-gradient(135deg, #001a35, var(--primary));
  color: var(--white);
  padding: 3.5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
footer h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase; }
footer ul { display: flex; flex-direction: column; gap: 0.55rem; }
footer ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.6); transition: color var(--ease), padding-left var(--ease); }
footer ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-tagline { color: rgba(255,255,255,0.6); font-size: 0.85rem; font-weight: 500; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */

/* Tablet grande */
@media (max-width: 1024px) {
  .header-inner { gap: 1rem; padding: 0 1.5rem; }
  header nav { gap: 1.5rem; }
  .comp-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet / móvil grande */
@media (max-width: 768px) {
  /* Header: ocultar nav y btn plataforma, mostrar hamburger */
  header nav { display: none; }
  .header-btns .btn-gradient { display: none; }
  .nav-toggle { display: flex; }
  .header-logo { height: 52px; }
  .header-inner { height: 64px; padding: 0 1rem; gap: 0.75rem; }

  /* Hero */
  .hero { padding: 3.5rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-img-wrap { display: none; }
  .hero-ctas { gap: 0.75rem; }

  /* Sections */
  .csoi-img img { width: 90%; }
  .desc-box { padding: 1.75rem 1.5rem; }
  .satellite-card { padding: 2rem 1.5rem; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .comp-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .partners-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-box { padding: 2rem 1.5rem; }
  .vision-card { padding: 2.5rem 1.75rem; }
  .flow-steps { padding: 0 0.5rem; }
  .flow-step { gap: 1.25rem; padding: 1.25rem 1rem; }
  .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }
}

/* Móvil chico */
@media (max-width: 480px) {
  :root { --section-py: 3.5rem; }

  /* Header */
  .header-logo { height: 44px; }
  .header-btns .btn-primary { display: none; }
  .header-inner { height: 58px; }

  /* Hero */
  .hero { padding: 3rem 0 4rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-tags { gap: 0.5rem; }
  .tag { font-size: 0.72rem; padding: 0.3rem 0.75rem; }

  /* Grids → 1 columna */
  .value-grid { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Cards */
  .value-card { padding: 1.75rem 1.25rem; }
  .comp-card { padding: 1.5rem 1.25rem; }
  .stat-card { padding: 1.75rem 1.25rem; }
  .vision-card { padding: 2rem 1.25rem; }
  .satellite-card { padding: 1.75rem 1rem; }

  /* Steps */
  .step-num { width: 3.25rem; height: 3.25rem; font-size: 1rem; }
  .flow-step { gap: 0.9rem; padding: 1rem 0.5rem; }
  .step-content h3 { font-size: 1.05rem; }

  /* WhatsApp & social */
  .wa-btn { font-size: 0.95rem; padding: 0.85rem 1.5rem; }
  .social-btn { padding: 0.6rem 1.1rem; font-size: 0.82rem; }

  /* Pricing */
  .pricing-box { padding: 1.75rem 1rem; }
  .ps-item { gap: 0.85rem; }
}
