/* ============================================
   Grupo Meridian — Sitio Multi-servicio (8 páginas)
   Plan Normal · Paleta clara con acento azul pastel
   ============================================ */
:root {
  --bg-deep: #F8FAFC;
  --bg-panel: #F1F5F9;
  --bg-panel-2: #E8EEF5;
  --bg-card: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --accent: #3B82F6;
  --accent-light: #DBEAFE;
  --accent-dark: #1D4ED8;
  --accent-gradient: linear-gradient(135deg, #3B82F6, #60A5FA);
  --border: rgba(15, 23, 42, 0.06);
  --border-light: rgba(15, 23, 42, 0.03);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ============================================
   ICONOS SVG
   ============================================ */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: currentColor;
}
.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--filled svg {
  fill: currentColor;
  stroke: none;
}
.icon--lg { width: 24px; height: 24px; }
.icon--xl { width: 32px; height: 32px; }
.icon--accent { color: var(--accent); }
.icon--white { color: #fff; }

/* ============================================
   HEADER
   ============================================ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
header.scrolled {
  box-shadow: var(--shadow-sm);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}
.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
nav.main-nav a {
  position: relative;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-bottom: 4px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s ease;
}
nav.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  border-radius: 2px;
}
nav.main-nav a:hover {
  color: var(--text-primary);
}
nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  transform: scaleX(1);
}
nav.main-nav a.active {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--accent-gradient);
  color: #fff !important;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta::after {
  display: none !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s ease;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06), transparent 70%);
  top: -180px;
  right: -140px;
  filter: blur(50px);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.8rem;
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.04);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.02em;
  max-width: 700px;
  margin-bottom: 1.1rem;
  color: var(--text-primary);
}
.hero h1 .highlight {
  color: var(--accent-dark);
}
.hero p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.8;
}

/* ============================================
   BOTONES
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(59, 130, 246, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary .icon {
  width: 18px;
  height: 18px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(59, 130, 246, 0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.btn-ghost .icon {
  width: 18px;
  height: 18px;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.04);
}

/* ============================================
   SECCIONES
   ============================================ */
section {
  padding: 4.5rem 0;
}
section:not(:first-of-type) {
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 580px;
  margin-bottom: 2.5rem;
}
.section-head .eyebrow {
  margin-bottom: 0.5rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.section-head p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}
.section-head.between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: none;
}

/* ============================================
   STATS STRIP
   ============================================ */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0;
}
.stats-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  text-align: center;
  border-left: 1px solid var(--border);
}
.stat:first-child {
  border-left: none;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--accent);
}
.stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ============================================
   LÍNEAS DE NEGOCIO
   ============================================ */
.lines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.line-card {
  position: relative;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.line-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: var(--shadow-md);
}
.line-card .icon {
  width: 48px;
  height: 48px;
  background: var(--accent-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}
.line-card .icon .icon {
  width: 24px;
  height: 24px;
}
.line-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}
.line-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}
.line-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.line-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.line-link .icon {
  width: 16px;
  height: 16px;
  background: none;
  box-shadow: none;
  color: var(--accent);
}

/* ============================================
   FEATURES GRID (para líneas internas)
   ============================================ */
.line-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.line-feature {
  padding: 2rem 1.75rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.line-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.line-feature .icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.line-feature h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}
.line-feature p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   PROCESO MINI
   ============================================ */
.process-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.process-mini-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.process-mini-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.process-mini-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}
.process-mini-item h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}
.process-mini-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   CLIENTES / LOGOS
   ============================================ */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.logo-tile {
  height: 90px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.logo-tile:hover {
  border-color: rgba(59, 130, 246, 0.15);
  color: var(--text-primary);
  transform: translateY(-3px);
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.testi-card {
  padding: 2rem 1.75rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testi-card .icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 0.8rem;
}
.testi-card p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.testi-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================
   NOVEDADES
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.news-card {
  padding: 1.75rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.1);
  box-shadow: var(--shadow-md);
}
.news-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
}
.news-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}
.news-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   EQUIPO
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}
.team-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}
.team-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.team-card .team-bio {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ============================================
   CONTACTO
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 3rem;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-row label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.form-row input,
.form-row select,
.form-row textarea {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.06);
}
.form-row textarea {
  resize: vertical;
  min-height: 110px;
}
.info-card {
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.info-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}
.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.87rem;
}
.info-row:last-child {
  border-bottom: none;
}
.info-row span:first-child {
  color: var(--text-secondary);
}
.info-row span:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

.contact-extra {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--bg-panel);
  text-align: center;
}
.contact-extra p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.contact-extra .highlight {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg-panel);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .logo {
  font-size: 1rem;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  max-width: 260px;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.footer-col a {
  display: block;
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  background: #fff;
}
.footer-social a .icon {
  width: 16px;
  height: 16px;
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-bottom .accent {
  color: var(--accent);
}

/* ============================================
   SCROLL-REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .lines-grid {
    grid-template-columns: 1fr 1fr;
  }
  .line-feature-grid {
    grid-template-columns: 1fr;
  }
  .process-mini {
    grid-template-columns: 1fr 1fr;
  }
  .logo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-strip .wrap {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(3) {
    border-left: none;
  }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  nav.main-nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    transform: translateY(-140%);
    transition: transform 0.3s ease;
    z-index: 49;
    box-shadow: var(--shadow-lg);
  }
  nav.main-nav.open {
    transform: translateY(0);
  }
  .nav-toggle {
    display: flex;
  }
  .lines-grid {
    grid-template-columns: 1fr;
  }
  .line-feature-grid {
    grid-template-columns: 1fr;
  }
  .process-mini {
    grid-template-columns: 1fr;
  }
  .logo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .stats-strip .wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}