/* ==========================================================================
   Angular Core SAS — Design System
   Paleta "Corporativo Confiable": azul corporativo + naranja de marca
   ========================================================================== */

:root {
  /* Navy scale — fondos oscuros (hero, footer, secciones destacadas) */
  --navy-950: #16205c;
  --navy-900: #1e3a8a;
  --navy-800: #24449e;
  --navy-700: #2f52b0;
  --navy-600: #3b63c2;

  /* Marca */
  --brand-orange: #ff4500;
  --brand-orange-light: #ff6b35;
  --brand-orange-gradient: linear-gradient(135deg, #ff4500 0%, #ff6b35 100%);

  /* Acentos tech */
  --accent-cyan: #3b82f6;
  --accent-cyan-light: #60a5fa;
  --accent-cyan-gradient: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  --accent-green: #03af61;
  --accent-green-light: #14c774;
  --accent-green-gradient: linear-gradient(135deg, #03af61 0%, #14c774 100%);
  --navy-gradient: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);

  /* Texto */
  --text-on-light: #0f172a;
  --text-on-light-muted: #475569;
  --text-on-dark: #f1f5f9;
  --text-on-dark-muted: #b6cbf5;

  /* Superficies */
  --surface-light: #ffffff;
  --surface-light-alt: #eff6ff;
  --surface-border: #dbeafe;

  --shadow: 0 8px 32px rgba(6, 13, 26, 0.08);
  --shadow-hover: 0 20px 40px rgba(6, 13, 26, 0.14);
  --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.35);
  --border-radius: 14px;
  --border-radius-sm: 8px;
  --transition: all 0.25s ease;
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-on-light);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

html {
  scroll-behavior: smooth;
}

a { color: inherit; }

img { max-width: 100%; }

/* Utilidades */
.animate-fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.eyebrow.on-dark { color: var(--accent-cyan-light); }

/* ==========================================================================
   Header
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-border);
  z-index: 1000;
  transition: var(--transition);
}

.header-scrolled {
  box-shadow: var(--shadow);
}

/* Compensa el header fijo al llegar por ancla (#contacto, #servicios) desde otra página */
#contacto, #servicios {
  scroll-margin-top: 100px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
}

.logo:hover { transform: scale(1.03); }

.logo-container {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(10, 22, 40, 0.2);
  background: white;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.logo-icon-fallback {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--navy-gradient);
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
}

.logo-text {
  font-family: 'GetVoIP Grotesque', 'Space Grotesk', 'Inter', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1;
  background: var(--brand-orange-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  letter-spacing: -0.02em;
  opacity: 1;
}

/* Navigation */
.main-nav > ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-on-light);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.main-nav > ul > li > a:hover::after { width: 100%; }
.main-nav a:hover { color: var(--accent-cyan); }

.nav-caret { font-size: 0.65rem; transition: transform 0.2s ease; }

.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: 100%;
  left: -1rem;
  background: var(--surface-light);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-hover);
  padding: 1.25rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  max-height: 85vh;
  overflow-y: auto;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown:hover .nav-caret { transform: rotate(180deg); }

.dropdown li a {
  padding: 0.65rem 0.6rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.92rem;
  width: 100%;
  display: block;
}

.dropdown li a:hover { background: var(--surface-light-alt); }

.dropdown li a i { color: var(--accent-cyan); width: 18px; }

.dropdown-grouped {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 0 1.5rem;
}

.dropdown-group-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  padding: 0.4rem 0.6rem 0.6rem;
}

.dropdown-group ul { list-style: none; }

.dropdown-footer-link {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--surface-border);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-900);
  text-decoration: none;
}

.dropdown-footer-link:hover { color: var(--accent-cyan); }

.cta-button {
  padding: 12px 26px;
  background: var(--brand-orange-gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 69, 0, 0.25);
  text-decoration: none;
  white-space: nowrap;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 69, 0, 0.35);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-on-light);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  height: 650px;
  background: var(--navy-gradient);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1100px;
  background:
    radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(255, 69, 0, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(30, 64, 110, 0.25) 0%, transparent 60%);
}

.hero-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1100px;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.25), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.18), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.3), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: float 20s linear infinite;
}

.hero-text { min-width: 0; }

.hero-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  animation: floatSoft 6s ease-in-out infinite;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 7.5rem 5% 2rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: 2rem;
  z-index: 2;
  position: relative;
}

.hero-illustration { margin-top: 0.5rem; }

.hero-text h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.1rem, 3.2vw, 3.1rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.25rem;
  line-height: 1.18;
  max-width: 600px;
}

.hero-line { display: block; margin-bottom: 0.25rem; }

.hero-slide .highlight {
  background: var(--accent-cyan-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 1rem;
  max-width: 520px;
  line-height: 1.65;
}

.hero-tagline {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--accent-cyan-light);
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  margin-bottom: 1.5rem;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
  padding: 14px 24px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-primary {
  padding: 16px 32px;
  background: var(--brand-orange-gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(255, 69, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-secondary {
  padding: 16px 32px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); }

/* Hero carousel — todas las slides ocupan la misma celda de grid para que
   la altura del contenedor no salte al cambiar de slide (se fija al alto
   de la slide más alta en vez de recalcularse por cada una). */
.hero-slides {
  display: grid;
}

.hero-slide {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-carousel-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.25rem;
  margin-bottom: 1.75rem;
}

.hero-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.hero-arrow:hover {
  background: var(--accent-cyan-gradient);
  border-color: transparent;
  transform: scale(1.06);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.hero-dot:hover { background: rgba(255, 255, 255, 0.5); }

.hero-dot.is-active {
  width: 28px;
  border-radius: 6px;
  background: var(--accent-cyan-gradient);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item { display: flex; flex-direction: column; }

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-cyan-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
}

/* Trust bar — tecnologías, dentro del hero */
.trust-bar {
  margin-top: 3rem;
}

.trust-bar-label {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.trust-bar-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
}

.trust-bar-icons i {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.45);
  transition: var(--transition);
}

.trust-bar-icons span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.1rem;
  font-weight: 700;
  transition: var(--transition);
}

.trust-bar-icons i:hover,
.trust-bar-icons span:hover {
  color: var(--accent-cyan-light);
}

/* ==========================================================================
   Page hero — subpáginas (servicios, nosotros, casos de éxito, contacto)
   ========================================================================== */
.page-hero {
  background: var(--navy-gradient);
  padding: 11rem 5% 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 55%);
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 15% 30%, black 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 90% at 15% 30%, black 10%, transparent 70%);
}

.page-hero-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-hero-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius);
  background: var(--accent-cyan-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--navy-950);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.page-hero p {
  font-size: 1.2rem;
  color: var(--text-on-dark-muted);
  max-width: 720px;
  line-height: 1.7;
}

.page-hero-microcopy {
  font-size: 0.95rem !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-cyan) !important;
  margin-top: 0.75rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--text-on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-cyan-light); }

/* ==========================================================================
   Sections generic
   ========================================================================== */
section { padding: 6rem 5%; }
.section-container { max-width: 1400px; margin: 0 auto; }
.section-container.narrow { max-width: 900px; }

.section-header {
  text-align: center;
  margin: 0 auto 3.5rem;
  max-width: 780px;
}
.section-header.align-left { text-align: left; margin: 0 0 2.5rem; max-width: none; }

.section-header h2 {
  font-size: clamp(2.35rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
  color: var(--text-on-light);
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-on-light-muted);
  margin: 0 auto;
  line-height: 1.7;
}

.section-header.align-left p { margin: 0; }

.section-alt { background: var(--surface-light-alt); }
.section-dark { background: var(--navy-gradient); color: var(--text-on-dark); }
.section-dark .section-header h2 { color: white; }
.section-dark .section-header p { color: var(--text-on-dark-muted); }

/* Headline de dos tonos: texto sólido + fragmento en gradiente de acento */
.text-accent {
  background: var(--accent-cyan-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   About / Pillars
   ========================================================================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Composición de fotos superpuestas + badge circular */
.about-photos {
  position: relative;
  padding: 1.5rem 2.5rem 2.5rem 0;
}

.about-photo-main {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-photo-secondary {
  position: absolute;
  bottom: -1.5rem;
  right: 0;
  width: 55%;
  border-radius: var(--border-radius);
  border: 6px solid var(--surface-light);
  box-shadow: var(--shadow-hover);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  top: 0.5rem;
  left: -0.5rem;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--navy-gradient);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-hover);
  border: 3px solid var(--surface-light);
  z-index: 2;
}

.about-badge .badge-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.about-badge .badge-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-on-dark-muted);
  margin-top: 0.2rem;
}

.about-checklist {
  list-style: none;
  margin: 1.5rem 0;
}

.about-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-weight: 600;
  color: var(--text-on-light);
}

.about-checklist li i {
  color: white;
  background: var(--accent-green-gradient);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* Banner con foto a pantalla completa */
.photo-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(rgba(6, 13, 26, 0.75), rgba(10, 22, 40, 0.85)), url('../img/photos/datacenter-banner.jpg');
  background-size: cover;
  background-position: center;
}

.photo-banner-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 5%;
}

.photo-banner-content h2 {
  color: white;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
}

.photo-banner-content h2 .text-accent { display: inline; }

/* Barras de enfoque */
.focus-bars { margin-top: 2rem; }

.focus-bar-item { margin-bottom: 1.5rem; }

.focus-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.focus-bar-labels .focus-percent { color: var(--accent-cyan); font-family: 'Space Grotesk', sans-serif; }

.focus-bar-track {
  width: 100%;
  height: 10px;
  background: var(--surface-border);
  border-radius: 6px;
  overflow: hidden;
}

.focus-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: var(--accent-cyan-gradient);
  width: 0%;
  transition: width 1.2s ease;
}

.about-description {
  font-size: 1.08rem;
  color: var(--text-on-light-muted);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.mission {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  border-top: 3px solid var(--accent-cyan);
}

.mission-icon {
  width: 56px; height: 56px;
  background: var(--navy-gradient);
  border-radius: var(--border-radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-cyan-light);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.mission-content h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.mission-content p { color: var(--text-on-light-muted); line-height: 1.6; }

.pillars h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 1.75rem; }
.pillars-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }

.pillar-item {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: var(--transition);
}

.pillar-item:hover { transform: translateX(8px); box-shadow: var(--shadow-hover); }

.pillar-icon {
  width: 48px; height: 48px;
  background: var(--navy-gradient);
  border-radius: var(--border-radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-cyan-light);
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.pillar-item:hover .pillar-icon { transform: scale(1.1) rotate(-4deg); }

.pillar-content h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.pillar-content p { color: var(--text-on-light-muted); font-size: 0.94rem; }

/* Experiencia (nosotros) */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.expertise-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--accent-cyan);
  transition: var(--transition);
}

.expertise-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.expertise-card i { font-size: 1.6rem; color: var(--accent-cyan); margin-bottom: 1rem; display: inline-block; transition: var(--transition); }
.expertise-card:hover i { transform: scale(1.15); }
.expertise-card h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; }
.expertise-card ul { list-style: none; color: var(--text-on-light-muted); font-size: 0.95rem; }
.expertise-card ul li { padding: 0.2rem 0; }

/* ==========================================================================
   Franja de confianza
   ========================================================================== */
.trust-strip {
  background: var(--surface-light-alt);
  border-bottom: 1px solid var(--surface-border);
  padding: 3rem 5%;
}

.trust-strip-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.trust-strip-item { display: flex; flex-direction: column; gap: 0.35rem; }

.trust-strip-number {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-900);
}

.trust-strip-label {
  font-size: 0.88rem;
  color: var(--text-on-light-muted);
  line-height: 1.4;
}

.trust-strip-tech {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--surface-border);
}

.trust-strip-tech-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  margin-bottom: 1.1rem;
}

.trust-strip-tech-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.trust-strip-tech-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 1.1rem;
  transition: var(--transition);
}

.trust-strip-tech-logo:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.trust-strip-tech-icons img {
  height: 30px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .trust-strip-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .trust-strip-stats { grid-template-columns: 1fr; text-align: center; }
  .trust-strip-tech-icons { gap: 0.6rem 1.25rem; }
}

/* ==========================================================================
   Macro-soluciones (Proteger / Modernizar / Operar / Conectar)
   ========================================================================== */
.macro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.macro-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--surface-border);
  border-top: 4px solid var(--accent-cyan);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.macro-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }

.macro-icon {
  width: 60px; height: 60px;
  background: var(--navy-gradient);
  border-radius: var(--border-radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-cyan-light);
  font-size: 1.5rem;
}

.macro-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.65rem; }
.macro-card > p { color: var(--text-on-light-muted); line-height: 1.6; margin-bottom: 1.25rem; font-size: 0.95rem; }

.macro-links { list-style: none; margin-bottom: 1.5rem; flex-grow: 1; }
.macro-links li { border-top: 1px solid var(--surface-border); }
.macro-links li:first-child { border-top: none; }
.macro-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-on-light);
  text-decoration: none;
  transition: var(--transition);
}
.macro-links a::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--accent-cyan);
  font-size: 0.8rem;
}
.macro-links a:hover { color: var(--accent-cyan); padding-left: 0.35rem; }

.macro-cta {
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  color: var(--text-on-light);
  border: 2px solid var(--surface-border);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
}
.macro-card:hover .macro-cta { background: var(--navy-gradient); color: white; border-color: transparent; }

@media (max-width: 1100px) {
  .macro-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ==========================================================================
   Services carousel + cards (legado, sin usar en la home actual — se
   conserva por si vuelve a necesitarse el listado plano de 13 servicios)
   ========================================================================== */
.services-carousel { position: relative; }

.services-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0.25rem 1.5rem;
  margin: -0.25rem -0.25rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-border) transparent;
}

.services-track::-webkit-scrollbar { height: 8px; }
.services-track::-webkit-scrollbar-track { background: transparent; }
.services-track::-webkit-scrollbar-thumb { background: var(--surface-border); border-radius: 10px; }
.services-track::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

.services-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: white;
  color: var(--text-on-light);
  box-shadow: var(--shadow-hover);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.services-nav-btn:hover { background: var(--accent-cyan-gradient); color: white; border-color: transparent; transform: translateY(-50%) scale(1.06); }
.services-nav-btn:disabled { cursor: default; }
.services-nav-btn:disabled:hover { background: white; color: var(--text-on-light); border-color: var(--surface-border); transform: translateY(-50%); }
.services-nav-btn.prev { left: -23px; }
.services-nav-btn.next { right: -23px; }

.service-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--surface-border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex: 0 0 calc((100% - 4 * 1.25rem) / 5);
  scroll-snap-align: start;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent-cyan-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

.service-icon {
  width: 52px; height: 52px;
  background: var(--navy-gradient);
  border-radius: var(--border-radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.15rem;
  color: var(--accent-cyan-light);
  font-size: 1.3rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 20px rgba(13, 101, 163, 0.35);
}

.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; line-height: 1.3; }
.service-card > p { color: var(--text-on-light-muted); line-height: 1.55; margin-bottom: 1rem; flex-grow: 1; font-size: 0.9rem; }

/* Se ocultan visualmente (no se eliminan del HTML) para no perder el contenido
   indexado por buscadores y mantener tarjetas más compactas/cuadradas. */
.service-card .service-features { display: none; }

.service-features { list-style: none; margin-bottom: 1.25rem; }
.service-features li { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; color: var(--text-on-light-muted); font-size: 0.83rem; line-height: 1.4; }
.service-features i { color: var(--accent-green); font-size: 0.75rem; margin-top: 0.2rem; }

.service-cta {
  width: 100%;
  padding: 9px 18px;
  background: transparent;
  color: var(--text-on-light);
  border: 2px solid var(--surface-border);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  display: inline-block;
  text-decoration: none;
}

.service-card:hover .service-cta,
.service-cta:hover {
  background: var(--navy-gradient);
  color: white;
  border-color: transparent;
}

/* Service detail page (subpáginas /servicios/*) */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.detail-block { margin-bottom: 2.5rem; }
.detail-block h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.detail-block h3 i { color: var(--accent-cyan); }
.detail-block > p { color: var(--text-on-light-muted); line-height: 1.75; margin-bottom: 1.25rem; }

.feature-list { list-style: none; display: grid; gap: 0.85rem; }
.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-on-light-muted);
  line-height: 1.5;
}
.feature-list li i { color: var(--accent-green); margin-top: 0.25rem; flex-shrink: 0; }

.sidebar-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border-top: 3px solid var(--brand-orange);
}

.sidebar-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.sidebar-card ul { list-style: none; }
.sidebar-card ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-on-light-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card ul li i { color: var(--accent-cyan); width: 16px; }

.sidebar-cta {
  background: var(--navy-gradient);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  color: white;
}
.sidebar-cta h4 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.sidebar-cta p { color: var(--text-on-dark-muted); font-size: 0.92rem; margin-bottom: 1.5rem; }

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.process-step {
  background: var(--surface-light-alt);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  position: relative;
}
.process-step-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}
.process-step h5 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.88rem; color: var(--text-on-light-muted); }

/* SLA table */
.sla-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.sla-item {
  background: var(--surface-light-alt);
  border-radius: var(--border-radius-sm);
  padding: 1.25rem;
  text-align: center;
  border-top: 3px solid var(--accent-cyan);
}
.sla-item.priority-critical { border-top-color: #ef4444; }
.sla-item.priority-urgent { border-top-color: var(--brand-orange); }
.sla-item .sla-label { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.35rem; }
.sla-item .sla-time { font-size: 1.4rem; font-weight: 800; color: var(--navy-900); }

/* Filter pills */
.capability-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-pill {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid var(--surface-border);
  background: white;
  color: var(--text-on-light-muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.filter-pill.is-active {
  background: var(--accent-cyan-gradient);
  border-color: transparent;
  color: white;
}

.capability-card.is-hidden { display: none; }

/* ==========================================================================
   Capabilities grid (casos de éxito / home)
   ========================================================================== */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.capability-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
}

.capability-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-6px);
}

.capability-icon {
  width: 56px; height: 56px;
  background: var(--accent-cyan-gradient);
  border-radius: var(--border-radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  color: var(--navy-950);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.capability-card:hover .capability-icon { transform: scale(1.1) rotate(-4deg); }

.capability-card h4 { color: white; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.65rem; }
.capability-card p { color: var(--text-on-dark-muted); font-size: 0.95rem; line-height: 1.6; }

/* Variante clara, para secciones blancas */
.capability-card.on-light {
  background: white;
  border-color: var(--surface-border);
  box-shadow: var(--shadow);
}
.capability-card.on-light:hover { box-shadow: var(--shadow-hover); }
.capability-card.on-light h4 { color: var(--text-on-light); }
.capability-card.on-light p { color: var(--text-on-light-muted); }

/* Mini casos de éxito (home) — formato problema/solución/resultado */
.case-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.case-teaser-card {
  background: white;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.case-teaser-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.case-teaser-sector {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.case-teaser-card h4 { font-size: 1.15rem; font-weight: 800; margin-bottom: 1rem; color: var(--text-on-light); }
.case-teaser-card p { font-size: 0.9rem; line-height: 1.55; color: var(--text-on-light-muted); margin-bottom: 0.75rem; }
.case-teaser-card p strong { color: var(--text-on-light); }
.case-teaser-result { margin-bottom: 0 !important; padding-top: 0.5rem; border-top: 1px dashed var(--surface-border); }

@media (max-width: 900px) {
  .case-teaser-grid { grid-template-columns: 1fr; }
}

/* Nuestra evolución — timeline resumido + trayectoria */
.evolution-section .section-header { max-width: 820px; }

.evolution-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin: 3rem 0;
  position: relative;
}

.evolution-step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--navy-700);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  position: relative;
}

.evolution-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-cyan-gradient);
}

.evolution-year {
  display: inline-block;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan-light);
  margin-bottom: 0.6rem;
}

.evolution-step h4 { color: white; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.evolution-step p { color: var(--text-on-dark-muted); font-size: 0.88rem; line-height: 1.55; }

.evolution-trajectory {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid var(--navy-700);
}

.evolution-trajectory-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.5rem;
}

.evolution-trajectory-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 2.25rem;
}

.evolution-trajectory-logos span {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
  opacity: 0.8;
  transition: var(--transition);
}

.evolution-trajectory-logos span:hover { opacity: 1; color: var(--accent-cyan-light); }

.evolution-trajectory-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 1.1rem;
  opacity: 0.9;
  transition: var(--transition);
}

.evolution-trajectory-logo-card:hover { opacity: 1; transform: translateY(-2px); }

.evolution-trajectory-logo-card img {
  height: 30px;
  width: auto;
  display: block;
}

@media (max-width: 1100px) {
  .evolution-timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .evolution-timeline { grid-template-columns: 1fr; }
}

/* Página de historia (/nosotros/historia.php) */
.history-era { padding: 0.5rem 0; }
.history-era-badge {
  display: inline-block;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  background: var(--accent-cyan-gradient);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.history-era h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 1.1rem; color: var(--text-on-light); }
.history-era p { color: var(--text-on-light-muted); line-height: 1.75; margin-bottom: 1.1rem; font-size: 1.02rem; }
.history-era-message {
  font-style: italic;
  color: var(--navy-900) !important;
  font-weight: 600;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 1rem;
  margin-top: 1.5rem !important;
}
.history-era-message i { color: var(--accent-cyan); margin-right: 0.4rem; }

.history-logo-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}
.history-logo-group h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-on-light);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--surface-border);
}
.history-logo-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.history-logo-list span:not(.history-logo-card) {
  background: white;
  border: 1px solid var(--surface-border);
  border-radius: 50px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-on-light-muted);
}
.history-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 1.1rem;
}
.history-logo-card img { height: 30px; width: auto; display: block; }

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

/* Galería de equipo — fotos reales, bento asimétrico */
.team-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(2, 260px);
  gap: 1.5rem;
  margin-top: 3rem;
}

.team-photo {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-photo:hover { box-shadow: var(--shadow-hover); }

.team-photo:first-child { grid-row: span 2; }

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.team-photo:hover img { transform: scale(1.05); }

.team-photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(180deg, rgba(6, 13, 26, 0) 0%, rgba(6, 13, 26, 0.82) 100%);
  color: white;
}

.team-photo-caption .eyebrow { color: var(--accent-cyan-light); margin-bottom: 0.35rem; }

.team-photo-caption p {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .team-photo, .team-photo:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
}

/* Reto → Solución → Tecnologías → Resultado */
.case-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.case-flow-step {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.75rem;
  padding-top: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
}
.case-flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.case-flow-step::before {
  content: attr(data-step);
  position: absolute;
  top: -14px;
  left: 1.5rem;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-cyan-gradient);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(13, 101, 163, 0.35);
}

.case-flow-step:not(:last-child)::after {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 1px;
  right: -1.35rem;
  color: var(--accent-cyan);
  font-size: 1.1rem;
  z-index: 2;
}

.case-flow-step .flow-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  display: block;
}
.case-flow-step p { color: var(--text-on-light-muted); font-size: 0.95rem; line-height: 1.6; }
.case-flow-step ul { list-style: none; }
.case-flow-step ul li {
  font-size: 0.9rem;
  color: var(--text-on-light-muted);
  padding: 0.25rem 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.case-flow-step ul li i { color: var(--accent-cyan); font-size: 0.75rem; }

.result-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.result-item { text-align: center; padding: 1.5rem 1rem; background: var(--surface-light-alt); border-radius: var(--border-radius-sm); }
.result-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--accent-cyan-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.result-label { font-size: 0.88rem; color: var(--text-on-light-muted); font-weight: 500; }

/* ==========================================================================
   Clients carousel / technologies
   ========================================================================== */
.clients-marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.clients-track {
  display: flex;
  gap: 1.75rem;
  width: max-content;
  animation: clientsMarqueeScroll 160s linear infinite;
}

.clients-marquee:hover .clients-track { animation-play-state: paused; }

@keyframes clientsMarqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
  .clients-marquee { overflow-x: auto; }
}

.client-logo {
  background: white;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  flex: 0 0 200px;
}

.client-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-cyan);
}

.client-logo-img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: var(--transition);
  margin-bottom: 0.75rem;
}

.client-logo:hover .client-logo-img {
  opacity: 1;
}

.client-name { font-size: 1.35rem; font-weight: 700; display: block; margin-bottom: 0.5rem; }
.client-sector { font-size: 0.85rem; color: var(--text-on-light-muted); font-weight: 500; }

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

.partner-logo {
  background: white;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.partner-logo:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--accent-cyan); }

.partner-icon {
  font-size: 1.6rem;
  color: var(--navy-900);
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-light-alt);
  border-radius: var(--border-radius-sm);
  flex-shrink: 0;
  transition: var(--transition);
}

.partner-logo:hover .partner-icon { background: var(--accent-cyan-gradient); color: white; transform: scale(1.08); }

.partner-name { font-size: 1.05rem; font-weight: 600; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; }
.contact-intro { font-size: 1.05rem; color: var(--text-on-light-muted); line-height: 1.75; margin-bottom: 2rem; }

.contact-details { margin-bottom: 2rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-item:hover { transform: translateX(5px); }

.contact-icon {
  width: 48px; height: 48px;
  background: var(--navy-gradient);
  border-radius: var(--border-radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-cyan-light);
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:hover .contact-icon { transform: scale(1.1) rotate(-4deg); }

.contact-content h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.contact-content p { color: var(--text-on-light-muted); font-size: 0.94rem; }
.contact-content a { color: var(--text-on-light-muted); text-decoration: none; transition: var(--transition); }
.contact-content a:hover { color: var(--accent-cyan); }

.social-links { display: flex; gap: 1rem; }
.social-link {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.4rem;
  text-decoration: none;
  transition: var(--transition);
}
.social-link.linkedin { background: #0077b5; }
.social-link.whatsapp { background: #25d366; }
.social-link:hover { transform: translateY(-3px) scale(1.08); }

.contact-form {
  background: white;
  padding: 2.75rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-form h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 1.75rem; text-align: center; }

.form-group { margin-bottom: 1.4rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.94rem; }

.form-group-consent { margin-bottom: 1.6rem; }
.form-consent-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400 !important;
  font-size: 0.85rem !important;
  color: var(--text-on-light-muted);
  cursor: pointer;
  line-height: 1.5;
}
.form-consent-label input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}
.form-consent-label a { color: var(--accent-cyan); font-weight: 600; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid var(--surface-border);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--surface-light-alt);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: white;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

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

.form-submit {
  width: 100%;
  padding: 16px;
  margin-top: 0.5rem;
  border-radius: var(--border-radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.error { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important; }

/* FAQ Accordion */
.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  background: white;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.is-open { border-color: var(--accent-cyan); box-shadow: var(--shadow); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-on-light);
  cursor: pointer;
}

.faq-question i {
  color: var(--accent-cyan);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-question i { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-on-light-muted);
  line-height: 1.7;
}

/* Final CTA band */
.cta-band {
  background: var(--brand-orange-gradient);
  border-radius: var(--border-radius);
  padding: 3.5rem 3rem;
  text-align: center;
  color: white;
  margin: 0 5%;
}
.cta-band h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; }
.cta-band p { font-size: 1.1rem; opacity: 0.92; margin-bottom: 0.75rem; }
.cta-band-microcopy { font-size: 0.9rem !important; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 2rem !important; }
.cta-band .btn-primary { background: white; color: var(--navy-950); box-shadow: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--navy-950);
  color: white;
  padding: 4rem 5% 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 0%, black 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 80% at 85% 0%, black 10%, transparent 70%);
  pointer-events: none;
}

.footer-container { max-width: 1400px; margin: 0 auto; position: relative; z-index: 1; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-section h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }

.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.footer-logo .logo-container { width: 44px; height: 44px; }
.footer-logo-text {
  font-size: 1.4rem;
  font-family: 'GetVoIP Grotesque', 'Inter', sans-serif;
  font-style: italic;
  font-weight: 800;
  background: var(--brand-orange-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description { color: var(--text-on-dark-muted); line-height: 1.6; margin-bottom: 1rem; }
.footer-tagline { color: var(--text-on-dark-muted); font-style: italic; font-size: 0.92rem; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.15rem; }
.footer-links a { color: var(--text-on-dark-muted); text-decoration: none; transition: var(--transition); display: inline-block; padding: 0.5rem 0; }
.footer-links a:hover { color: var(--accent-cyan-light); }

.footer-section-wide { grid-column: span 2; }
.footer-links-grouped { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.footer-links-group-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-cyan-light);
  margin-bottom: 0.9rem;
}
.footer-links-grouped .footer-links a { font-size: 0.92rem; }

.footer-contact p { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.7rem; color: var(--text-on-dark-muted); }
.footer-contact a { color: var(--text-on-dark-muted); text-decoration: none; }
.footer-contact a:hover { color: var(--accent-cyan-light); }

.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--brand-orange); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--text-on-dark-muted); text-decoration: none; display: inline-block; padding: 0.5rem 0; }
.footer-legal a:hover { color: var(--accent-cyan-light); }
.footer-copyright { color: var(--text-on-dark-muted); font-size: 0.88rem; }

/* ==========================================================================
   Misc: scroll-to-top, loading, notification
   ========================================================================== */
.scroll-to-top {
  position: fixed;
  bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  right: calc(2rem + env(safe-area-inset-right, 0px));
  width: 50px; height: 50px;
  background: var(--brand-orange-gradient);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 1000;
}
.scroll-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.scroll-to-top.show { display: flex; }

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  left: calc(2rem + env(safe-area-inset-left, 0px));
  width: 56px; height: 56px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  text-decoration: none;
  transition: var(--transition);
  animation: whatsappPulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.55);
  animation-play-state: paused;
}

.whatsapp-float-tooltip {
  position: absolute;
  left: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: var(--text-on-light);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: var(--border-radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-float-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

@media (max-width: 480px) {
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); left: calc(1.25rem + env(safe-area-inset-left, 0px)); }
  .scroll-to-top { bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); right: calc(1.25rem + env(safe-area-inset-right, 0px)); }
  .whatsapp-float-tooltip { display: none; }
}

.loading {
  display: inline-block;
  width: 20px; height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .header-container, .section-container, .hero-container { padding-left: 3%; padding-right: 3%; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-card { flex: 0 0 calc((100% - 3 * 1.25rem) / 4); }
}

@media (max-width: 1100px) {
  .hero-illustration { display: none; }
  .hero-container { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-container { grid-template-columns: 1fr; gap: 2.5rem; }
  .case-flow { grid-template-columns: repeat(2, 1fr); }
  .case-flow-step:nth-child(2)::after { display: none; }
  .service-card { flex: 0 0 calc((100% - 2 * 1.25rem) / 3); }
  .services-nav-btn { width: 44px; height: 44px; }
  .services-nav-btn.prev { left: 0; }
  .services-nav-btn.next { right: 0; }
}

@media (max-width: 560px) {
  .case-flow { grid-template-columns: 1fr; }
  .case-flow-step::after { display: none; }
}

@media (max-width: 640px) {
  .service-card { flex: 0 0 82%; }
  .services-nav-btn { display: none; }
}

/* El menú hamburguesa arranca en 1250px (no 768px): con el logo más grande,
   los 7 ítems de nav + CTA ya no caben en anchos típicos de portátil (1280-1440px). */
@media (max-width: 1250px) {
  .header-container { position: relative; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
  }

  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.25rem; align-items: stretch; }
  .main-nav > ul > li > a { padding: 0.75rem 0.25rem; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: var(--surface-light-alt);
    display: none;
    margin-top: 0.25rem;
  }
  .has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { display: block; }
  .dropdown-grouped { grid-template-columns: 1fr; gap: 1rem; }
  .dropdown-group-title { padding-top: 0.75rem; }

  .mobile-menu-toggle { display: flex; }
  .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

  .cta-button { display: none; }
}

@media (max-width: 768px) {
  .header-container { padding: 1rem 5%; }

  .logo-container { width: 46px; height: 46px; }
  .logo-text { font-size: 1.35rem; }

  .hero { height: 720px; align-items: flex-start; }
  .hero-container { padding-top: 7rem; text-align: left; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .page-hero { padding: 9rem 5% 3.5rem; }

  section { padding: 4rem 5%; }
  .section-header h2 { font-size: 2rem; }
  .section-header p { font-size: 1.05rem; }

  .service-card { padding: 2rem; }
  .contact-form { padding: 2rem; }
  .cta-band { margin: 0 5%; padding: 2.5rem 1.5rem; }

  .footer-content { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
  .footer-section-wide { grid-column: span 1; }
  .footer-links-grouped { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
  .footer-legal { flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 480px) {
  .hero { height: 880px; }
  .logo-text { font-size: 1.15rem; }
  .hero-text h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .result-number { font-size: 1.8rem; }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  .service-card, .contact-form, .capability-card { border: 2px solid currentColor; }
  .btn-primary, .btn-secondary, .cta-button { border: 2px solid; }
}

/* Print */
@media print {
  header, .footer, .scroll-to-top, .whatsapp-float { display: none !important; }
  section { padding: 2rem 0; page-break-inside: avoid; }
}

/* Fuente de marca */
@font-face {
  font-family: 'GetVoIP Grotesque';
  src: url('../../fonts/GetVoIP-Grotesque-Italic.woff2') format('woff2'),
       url('../../fonts/GetVoIP-Grotesque-Italic.woff') format('woff'),
       url('../../fonts/GetVoIP-Grotesque-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   Blog / contenido informacional
   ========================================================================== */
.article-content {
  max-width: 760px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-on-light-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--text-on-light);
}

.article-author i {
  color: var(--accent-cyan);
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-on-light);
}

.article-content > p {
  color: var(--text-on-light-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.article-content ul.feature-list {
  margin-bottom: 1.5rem;
}

.article-cta {
  background: var(--surface-light-alt);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

.article-cta h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.article-cta p { color: var(--text-on-light-muted); margin-bottom: 1.25rem; }

.article-tag {
  display: inline-block;
  background: var(--surface-light-alt);
  color: var(--accent-cyan);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.blog-card {
  background: white;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.blog-card .article-tag { margin-bottom: 1rem; align-self: flex-start; }
.blog-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-on-light); margin-bottom: 0.65rem; }
.blog-card p { color: var(--text-on-light-muted); font-size: 0.92rem; line-height: 1.55; flex-grow: 1; }
.blog-card .service-cta { margin-top: 1rem; }

@media (max-width: 1200px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-content h2 { font-size: 1.3rem; }
}
