/* ====================================================
   DATSAY STYLES v2.1
   Paleta: fiel al original (#121212 + #2c3c5b) con mayor claridad en secciones
   Fuentes: Sora (headings) + Inter (body)
   ==================================================== */

:root {
  --datsay-primary:       #2c3c5b;
  --datsay-primary-light: #3d5180;
  --datsay-primary-dark:  #1e2d45;

  --background-color: #121212;
  --surface-dark:     #1a2438;
  --surface-mid:      #f5f7fa;
  --surface-white:    #ffffff;

  --text-color:      #e0e0e0;
  --text-muted:      #9aa3b8;
  --text-dark:       #1a2236;
  --text-dark-muted: #546078;

  --light-gray:  #f2f2f2;
  --accent-bg:   rgba(255,255,255,0.05);

  --saq-color:      #3a7bd5;
  --saq-bg:         rgba(58,123,213,0.10);
  --kexel-color:    #27ae89;
  --kexel-bg:       rgba(39,174,137,0.10);
  --especial-color: #e07a30;
  --especial-bg:    rgba(224,122,48,0.10);

  --border-color:       rgba(255,255,255,0.09);
  --border-color-light: rgba(44,60,91,0.13);

  --radius:    12px;
  --radius-lg: 20px;
  --shadow:       0 4px 20px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.18);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; height: auto; }

/* ====================================================
   HEADER
   Estructura: [Logo fijo izq] ----------- [Nav + CTA derecha]
   El ancho fijo en .logo-wrapper evita que el typewriter
   desplace el nav cuando la frase es más larga.
   ==================================================== */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.4rem 2.5rem;
  z-index: 999;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  min-height: 80px;
}

.main-header.scrolled {
  background-color: rgba(44, 60, 91, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  padding: 0.8rem 2.5rem;
}

/* Logo: ancho fijo para que el typewriter no empuje el nav */
.logo-section {
  flex: 0 0 auto;          /* ancho reservado fijo */
  min-width: 200px;
  display: flex;
  align-items: center;
  padding-top: 0;
  align-self: auto;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  min-width: 200px;             /* igual que logo-section */
  overflow: visible;         /* recortar si la frase desborda */
  justify-content: center;
}

.logo {
  max-width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
}

.tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.8);
  margin-top: 3px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  margin-top: 5px;
}

.typing-text { display: inline-block; }

.typing-text::after {
  content: '|';
  display: inline-block;
  width: 1ch;
  margin-left: 1px;
  animation: caret-blink 1s steps(1,end) infinite;
}

.typing-text.is-typing::after { animation: none; opacity: 1; }

@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Nav + CTA: siempre a la derecha */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-links { display: flex; }

.navbar-links ul {
  list-style: none;
  display: flex;
  gap: 0.1rem;
  align-items: center;
}

.navbar-links ul li a {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--text-color);
  padding: 0.38rem 0.85rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.navbar-links ul li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.navbar-links ul li a.active {
  color: var(--light-gray);
  border-bottom: 2px solid var(--light-gray);
  padding-bottom: 2px;
  font-weight: bold;
}

/* Botón CTA del header */
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--datsay-primary) !important;
  font-family: 'Sora', sans-serif;
  font-size: 0.87rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  border: none;
}

.nav-cta:hover {
  background: var(--light-gray);
  transform: translateY(-1px);
}

.menu-icon {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-color);
  background: none;
  border: none;
  padding: 0.3rem;
  line-height: 1;
}

/* ====================================================
   BOTONES
   ==================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--saq-color);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: #2d68c0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58,123,213,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-color);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.72rem 1.7rem;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--datsay-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--datsay-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-outline:hover { background: var(--datsay-primary); color: #fff; }

.btn-small  { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
.btn-full   { width: 100%; justify-content: center; font-size: 1rem; padding: 0.9rem; }

/* ====================================================
   HERO – dark, misma imagen original
   ==================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
  padding-top: 7rem;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/analytics_city.webp') center/cover no-repeat;
  opacity: 0.9;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.40), rgba(0,0,0,0.38));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  line-height: 1.7;
}

.hero-content p strong { color: #fff; }

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1rem 2rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.hero-stat strong { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; }
.hero-stat span   { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.2); }

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

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

.bounce-button.animate { animation: gentleBounce 1.6s ease-in-out; }

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
  50% { transform: translateY(-4px); }
  70% { transform: translateY(-7px); }
}

/* ====================================================
   SECTION HELPERS
   ==================================================== */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--saq-color);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.section-subtitle { font-size: 1rem; max-width: 600px; margin: 0 auto; line-height: 1.7; }

.hidden-on-load {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal { opacity: 1 !important; transform: translateY(0) !important; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ====================================================
   SERVICES – sección CLARA para contraste con hero dark
   ==================================================== */
#servicios { background-color: var(--surface-mid); }

.services-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.services-header { text-align: center; margin-bottom: 3rem; }
.services-header .section-title { color: var(--text-dark); }
.services-header .section-subtitle { color: var(--text-dark-muted); }

/* Tabs */
.pilares-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.pilar-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1.5px solid var(--border-color-light);
  color: var(--text-dark-muted);
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.pilar-tab:hover { border-color: var(--datsay-primary); color: var(--datsay-primary); }

.pilar-tab.active {
  background: var(--datsay-primary);
  border-color: var(--datsay-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(44,60,91,0.3);
}

.pilar-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.saq-dot   { background: var(--saq-color); }
.kexel-dot { background: var(--kexel-color); }

/* Pilar Group */
.pilar-group {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color-light);
  background: #fff;
  box-shadow: var(--shadow);
}

.pilar-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid var(--border-color-light);
  flex-wrap: wrap;
  background: #fff;
}

.saq-header     { border-left: 4px solid var(--saq-color); }
.kexel-header   { border-left: 4px solid var(--kexel-color); }
.especial-header{ border-left: 4px solid var(--especial-color); }

.pilar-icon-wrap {
  font-size: 1.8rem;
  min-width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
}

.saq-header .pilar-icon-wrap      { color: var(--saq-color);    background: var(--saq-bg); }
.kexel-header .pilar-icon-wrap    { color: var(--kexel-color);  background: var(--kexel-bg); }
.especial-header .pilar-icon-wrap { color: var(--especial-color); background: var(--especial-bg); }

.pilar-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.pilar-tagline { font-weight: 400; color: var(--text-dark-muted); }
.pilar-header p { font-size: 0.87rem; color: var(--text-dark-muted); margin: 0; }

.pilar-badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  white-space: nowrap;
}

.saq-badge   { background: var(--saq-bg);   color: var(--saq-color); }
.kexel-badge { background: var(--kexel-bg); color: var(--kexel-color); }

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border-color-light);
}

.services-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.service-card {
  background: #fff;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s;
}

.service-card:hover { background: #f8faff; }

.service-card .icon { width: 46px; height: 46px; object-fit: contain; }

.service-card h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.service-card p { font-size: 0.87rem; color: var(--text-dark-muted); line-height: 1.65; flex: 1; }

/* CTA inferior */
.services-cta {
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--datsay-primary), var(--datsay-primary-light));
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
}

.services-cta p { font-size: 1.1rem; color: rgba(255,255,255,0.88); margin-bottom: 1.2rem; }

/* ====================================================
   CLIENTES – franja primary
   ==================================================== */
.clientes-section {
  padding: 3.5rem 2rem;
  background-color: var(--datsay-primary-light);
}

.clientes-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.clientes-container.reveal { opacity: 1; transform: translateY(0); }

.clientes-texto p {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.2rem;
}

.clientes-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 0.85rem 1.5rem;
  margin-top: 0.5rem;
}

.clientes-logos { display: flex; gap: 2rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }
.clientes-logos img { height: 80px; object-fit: contain; filter: brightness(0) invert(-1); transition: filter 0.2s; }
.clientes-logos img:hover { filter: brightness(-1) invert(0) opacity(0.8); }

/* ====================================================
   ABOUT – fondo blanco
   ==================================================== */
.about-section {
  padding: 6rem 2rem;
  background-color: var(--surface-white);
}

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-content .section-label { color: var(--saq-color); }

.about-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  margin-top: 0.5rem;
}

.about-content p { color: var(--text-dark-muted); font-size: 0.95rem; line-height: 1.75; margin-bottom: 1rem; }
.about-content p strong { color: var(--text-dark); }

.about-values { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }

.value-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  background: var(--saq-bg);
  border: 1px solid rgba(58,123,213,0.2);
  color: var(--saq-color);
}

.about-carousel-wrap { position: sticky; top: 100px; }

.about-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  background: url('../assets/edificio-contacto.jpeg') center/cover no-repeat;
  box-shadow: var(--shadow-hover);
}

.about-hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(44,60,91,0.88), rgba(30,45,69,0.78));
  z-index: 1;
}

.carousel-box {
  position: relative; z-index: 2;
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column;
  min-height: 360px; justify-content: center;
}

.carousel-item { display: none; flex-direction: column; gap: 0.8rem; animation: fadeSlide 0.5s ease; }
.carousel-item.active { display: flex; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.carousel-icon { font-size: 2rem; color: rgba(255,255,255,0.7); }
.carousel-box h3 { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 700; color: #fff; }
.carousel-box p  { font-size: 0.95rem; color: rgba(255,255,255,0.78); line-height: 1.65; }
.carousel-controls { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

.carousel-dot {
  background: none; border: none;
  color: rgba(255,255,255,0.35);
  font-size: 1rem; cursor: pointer;
  transition: color 0.2s; padding: 0; line-height: 1;
}

.carousel-dot.active-dot,
.carousel-controls button:hover { color: #fff; }

/* ====================================================
   CONTACT – fondo dark
   ==================================================== */
#contacto { background-color: var(--background-color); }

.contact-section { padding: 6rem 2rem; }

.contact-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-col h2  { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; margin-bottom: 1rem; margin-top: 0.5rem; }
.contact-info-col > p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.8rem; }

.contact-detail-item { display: flex; align-items: center; gap: 0.75rem; color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.contact-detail-item:hover { color: var(--text-color); }
.contact-detail-item i { color: var(--saq-color); font-size: 1.1rem; min-width: 20px; }

.contact-social { display: flex; gap: 0.8rem; }

.contact-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--surface-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px; color: var(--text-muted); font-size: 1rem; transition: all 0.2s;
}

.contact-social a:hover { background: var(--saq-color); border-color: var(--saq-color); color: #fff; }

.contact-form-col {
  background: var(--surface-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full-width { grid-column: 1 / -1; }

.form-field label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.02em; }

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s;
  width: 100%; outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--saq-color);
  box-shadow: 0 0 0 3px rgba(58,123,213,0.12);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-field select option { background: #1a2438; }
.form-field textarea { resize: vertical; min-height: 80px; }

#form-message { font-size: 0.9rem; padding: 0.6rem; border-radius: 6px; text-align: center; }
#form-message.success { background: rgba(39,174,137,0.1); color: var(--kexel-color); border: 1px solid rgba(39,174,137,0.2); }
#form-message.error   { background: rgba(220,60,60,0.1);  color: #e85050;            border: 1px solid rgba(220,60,60,0.2); }
#submit-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
  }

.iti { width: 100%; }

/* ====================================================
   FOOTER
   ==================================================== */
.footer-section {
  background: var(--datsay-primary-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}

.footer-brand p { font-size: 0.87rem; color: rgba(255,255,255,0.5); line-height: 1.65; margin-top: 1rem; margin-bottom: 1.2rem; max-width: 240px; }
.footer-logo { filter: brightness(0) invert(1); max-width: 120px; }

.footer-social { display: flex; gap: 0.6rem; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: rgba(255,255,255,0.55); font-size: 0.85rem; transition: all 0.2s; }
.footer-social a:hover { background: var(--saq-color); border-color: var(--saq-color); color: #fff; }

.footer-col h4 { font-family: 'Sora', sans-serif; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.8); margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col ul li a:hover { color: rgba(255,255,255,0.9); }

.footer-contact-list li { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-contact-list li a { color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 0.4rem; }
.footer-contact-list li a:hover { color: rgba(255,255,255,0.9); }
.footer-contact-list li span { display: flex; align-items: center; gap: 0.4rem; }

.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
  flex-wrap: wrap; gap: 0.5rem;
}

/* ====================================================
   WHATSAPP FLOAT
   ==================================================== */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 9000;
  display: flex; align-items: center; gap: 0.6rem;
}

.whatsapp-float img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); transition: transform 0.25s; }
.whatsapp-float:hover img { transform: scale(1.1); }

.whatsapp-tooltip {
  background: #25d366; color: #fff;
  font-size: 0.8rem; font-weight: 600;
  padding: 0.4rem 0.85rem; border-radius: 8px;
  white-space: nowrap; opacity: 0; transform: translateX(10px);
  transition: opacity 0.25s, transform 0.25s; pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }

/* ====================================================
   MODAL DASHBOARD
   ==================================================== */
.modal-dashboard { position: fixed; inset: 0; background: rgba(0,0,0,0.88); display: none; justify-content: center; align-items: center; z-index: 99999; padding: 1rem; }

.modal-content { background: #121212; padding: 1rem; border-radius: 12px; max-width: 95%; width: 900px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: 0 0 20px rgba(0,0,0,0.6); }

.close-button { position: absolute; top: 0.5rem; right: 0.8rem; background: transparent; border: none; font-size: 1.8rem; color: white; cursor: pointer; z-index: 10; }

.loader-overlay { width: 100%; height: 100%; background-color: rgba(18,18,18,0.9); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 10; border-radius: 10px; }

.progress-ring { width: 80px; height: 80px; border: 6px solid rgba(255,255,255,0.2); border-top: 6px solid white; border-radius: 50%; animation: spin 1.2s linear infinite; display: flex; justify-content: center; align-items: center; position: relative; }

.progress-text { position: absolute; color: white; font-size: 1rem; font-weight: bold; }
.loader-label  { color: white; font-size: 1rem; margin-top: 1rem; }

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

.embed-container { position: relative; padding-bottom: 60%; height: 0; overflow: hidden; max-width: 90%; margin: 2rem auto; box-shadow: 0 0 15px rgba(0,0,0,0.3); border-radius: 10px; }
.embed-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; z-index: 1; }

.agro-carousel-hero { position: relative; width: 100%; max-width: 1000px; height: 400px; margin: 2rem auto; overflow: hidden; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.agro-carousel-slide { position: absolute; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.6s ease-in-out; }
.agro-carousel-slide.active { opacity: 1; z-index: 2; }
.agro-carousel-caption { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: flex; flex-direction: column; justify-content: center; align-items: center; max-width: 80%; background-color: rgba(0,0,0,0.6); padding: 1rem 1.5rem; border-radius: 12px; color: white; text-align: center; z-index: 2; }
.agro-nav { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); z-index: 3; }
.agro-nav button { background: rgba(0,0,0,0.6); border: none; color: white; font-size: 2rem; cursor: pointer; padding: 0.5rem 1rem; border-radius: 50%; transition: background 0.3s ease; }
.agro-nav button:hover { background: rgba(0,0,0,0.8); }
.dwh-modal-image-wrapper { display: flex; justify-content: center; align-items: center; height: 70vh; padding: 1rem; }
.dwh-modal-image { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: 0 0 15px rgba(0,0,0,0.3); }

.lightbox { position: fixed; inset: 0; background-color: rgba(0,0,0,0.9); display: none; justify-content: center; align-items: center; z-index: 999999; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 8px; cursor: zoom-out; }
.lightbox.show { display: flex; }

#encuesta-wrapper { color: white; text-align: center; padding: 2rem; }
#encuesta-wrapper h2 { font-size: 1.8rem; margin-bottom: 1rem; }
#encuesta-wrapper p  { font-size: 1.1rem; color: #ccc; }
#encuesta-wrapper button { min-width: 150px; padding: 0.75rem 1.25rem; font-size: 1rem; border-radius: 8px; }

.iti__country-list .country-search { position: sticky; top: 0; background: #fff; z-index: 2; padding: 0.5em; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.iti__country-list .country-search input { width: 100%; padding: 0.4em 0.6em; font-size: 0.9em; box-sizing: border-box; }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-carousel-wrap { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  html { scroll-behavior: auto; }

  .main-header { padding: 1rem; flex-wrap: row; position: fixed; }
  .main-header.scrolled { padding: 0.8rem 1rem; }

  .logo-section { flex: 1 1 60%; min-width: unset; }
  .logo-wrapper { width: auto; overflow: hidden; }
  .logo { max-width: 75px; }
  .tagline { 
    font-size: 0.62rem; 
    margin-top: 2px;
  }

  /* En móvil: ocultamos header-right y usamos overlay */
  .header-right {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(44,60,91,0.97);
    backdrop-filter: blur(4px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    gap: 0;
  }

  .header-right.active { display: flex; }

  .navbar-links { width: 100%; display: flex; justify-content: center; }

  .navbar-links ul {
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .navbar-links ul li a { font-size: 1.3rem; padding: 0.7rem 2rem; display: block; text-align: center; }

  .nav-cta { font-size: 1.1rem !important; padding: 0.75rem 2.5rem !important; border-radius: 10px !important; }

  .menu-icon {
    display: flex;
    position: absolute;
    top: 1.2rem; right: 1.5rem;
    z-index: 10000;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    margin-left: auto;
  }

  /* Hero */
  .hero-section { padding-top: 130px; padding-bottom: 3rem; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p  { font-size: 1.05rem; }
  .fade-in { opacity: 0; transform: none; animation: fadeInOnly 0.6s ease-out forwards; animation-delay: 0.05s; }

  @keyframes fadeInOnly { to { opacity: 1; } }

  .hero-stats { gap: 1rem; padding: 0.8rem 1rem; }
  .hero-stat-divider { height: 24px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }

  /* Services */
  .services-section { padding: 3.5rem 1.2rem; }
  .pilares-tabs { gap: 0.4rem; }
  .pilar-tab { font-size: 0.79rem; padding: 0.4rem 0.9rem; }
  .pilar-header { flex-wrap: wrap; gap: 0.8rem; padding: 1.2rem; }
  .pilar-badge { order: -1; margin-left: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid.hidden-on-load { opacity: 1 !important; transform: none !important; }

  .clientes-section { padding: 2rem 1.2rem; }

  /* About */
  .about-section { padding: 4rem 1.2rem; }

  /* Contact */
  .contact-section { padding: 4rem 1.2rem; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form .form-field,
  .contact-form #recaptcha-container,
  #submit-button, #form-message { width: 100%; margin-bottom: 1rem; }
  #recaptcha-container > div { transform: scale(0.85); transform-origin: top left; }

  /* Footer */
  .footer-section { padding: 3rem 1.2rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hidden-on-load { opacity: 0; transform: none; transition: opacity 0.6s ease-out; }
  .reveal { opacity: 1; }

  .modal-content { width: 95vw; max-height: 90vh; padding: 0.8rem; }
  .embed-container { padding-bottom: 90%; max-width: 100%; }
  .close-button { font-size: 1.5rem; }
  .agro-carousel-hero { min-height: 65vh; }
  .agro-carousel-slide { min-height: 90vh; }
  .agro-carousel-caption {
    background: rgba(0, 0, 0, 0.82);
    padding: 1rem;
    font-size: 0.82rem;
    max-height: 55vh;
    overflow-y: auto;
  }
  .agro-carousel-caption h2 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  .agro-carousel-caption p {
    font-size: 0.78rem;
    line-height: 1.5;
  }
  .agro-nav button { font-size: 1.5rem; padding: 0.4rem 0.8rem; }
  .dwh-modal-image-wrapper { height: auto; padding: 1rem 0.5rem; }
  .dwh-modal-image { max-height: 75vh; width: 100%; object-fit: contain; }

  #encuesta-wrapper { padding: 1.5rem 1rem; }
  #encuesta-wrapper h2 { font-size: 1.4rem; }
  #encuesta-wrapper div { flex-direction: column !important; gap: 0.5rem !important; }
}

@media (max-width: 480px) {
  .hero-section h1 { font-size: 1.5rem; }
  .hero-section p  { font-size: 0.95rem; }
  .hero-stats { flex-direction: column; gap: 0.8rem; }
  .hero-stat-divider { width: 40px; height: 1px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tagline { font-size: 0.8rem; }
  .btn-primary { padding: 0.6rem 1.2rem; font-size: 0.95rem; }
  .fade-in { animation-delay: 0s; }
  .agro-carousel-hero { height: 250px; }
}


/* ====================================================
   MARCO NIM  –  Metodología DatSay
   Paleta extra: --nim-color (#c8952a amber/gold Maya)
   ==================================================== */

:root {
  --nim-color:      #c8952a;
  --nim-color-dim:  rgba(200, 149, 42, 0.15);
  --nim-color-glow: rgba(200, 149, 42, 0.35);
}

/* ---------- SECTION SHELL ---------- */
.marco-nim-section {
  background-color: var(--background-color);
  padding: 6rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

/* Ambient radial glow behind the ring */
.marco-nim-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(200,149,42,0.06) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.nim-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------- HEADER ---------- */
.nim-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.nim-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nim-color);
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--nim-color-dim);
  border-radius: 4px;
}

.nim-title {
  font-size: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, #e8b85a 0%, var(--nim-color) 55%, #a0720f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.nim-subtitle {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.nim-subtitle em {
  font-style: normal;
  color: var(--nim-color);
  font-weight: 600;
}

/* ---------- BODY LAYOUT ---------- */
.nim-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* ---------- RING WRAPPER ---------- */
.nim-ring-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.nim-ring {
  position: relative;
  width: 600px;
  height: 560px;
  margin: 0 auto;
}

/* SVG overlay */
.nim-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.nim-ring-track {
  stroke: rgba(200, 149, 42, 0.14);
  stroke-width: 1.5;
  stroke-dasharray: 5 8;
}

.nim-ring-glow {
  stroke: var(--nim-color);
  stroke-width: 2;
  stroke-dasharray: 60 1260;
  stroke-dashoffset: 0;
  opacity: 0.4;
  animation: nimPulse 4s ease-in-out infinite;
}

@keyframes nimPulse {
  0%   { stroke-dashoffset: 0;   opacity: 0.3; }
  50%  { stroke-dashoffset: -630; opacity: 0.6; }
  100% { stroke-dashoffset: -1320; opacity: 0.3; }
}

/* ---------- CENTER NODE ---------- */
.nim-center {
  position: absolute;
  left: 225px; top: 205px;
  width: 150px; height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2438, #0e1825);
  border: 1px solid var(--nim-color-dim);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(200,149,42,0.08), inset 0 1px 0 rgba(255,255,255,0.05);
  gap: 0;
}

.nim-center-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

.nim-center-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #e8b85a, var(--nim-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.nim-center-by {
  font-size: 0.62rem;
  color: rgba(200,149,42,0.5);
  letter-spacing: 0.08em;
  font-family: 'Inter', sans-serif;
  margin-top: 2px;
}

/* ---------- PHASE NODES ---------- */
.nim-phase {
  position: absolute;
  left: var(--pl);
  top: var(--pt);
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #131f30;
  border: 1.5px solid rgba(200, 149, 42, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  padding: 0;
  opacity: 0;
  animation: nimNodeIn 0.5s ease forwards;
}

/* Staggered entrance */
.nim-phase:nth-child(3) { animation-delay: 0.1s; }
.nim-phase:nth-child(4) { animation-delay: 0.2s; }
.nim-phase:nth-child(5) { animation-delay: 0.3s; }
.nim-phase:nth-child(6) { animation-delay: 0.4s; }
.nim-phase:nth-child(7) { animation-delay: 0.5s; }
.nim-phase:nth-child(8) { animation-delay: 0.6s; }

@keyframes nimNodeIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

.nim-phase:hover,
.nim-phase.active {
  background: #1a2d44;
  border-color: var(--nim-color);
  box-shadow: 0 0 20px var(--nim-color-glow), 0 0 0 4px var(--nim-color-dim);
  transform: scale(1.08);
  z-index: 10;
}

.nim-phase-num {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--nim-color);
  line-height: 1;
}

.nim-phase-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  padding: 0 4px;
  text-transform: uppercase;
}

.nim-phase.active .nim-phase-label {
  color: #e0c88a;
}

/* ---------- DETAIL PANEL ---------- */
.nim-detail {
  width: 100%;
  max-width: 640px;
  min-height: 190px;
  background: #0f1b2d;
  border: 1px solid var(--nim-color-dim);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  position: relative;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.nim-detail::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--nim-color), transparent);
  opacity: 0.7;
}

.nim-detail-inner {
  animation: nimDetailIn 0.3s ease;
}

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

.nim-detail-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.nim-detail-num {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--nim-color);
  line-height: 1;
  opacity: 0.6;
}

.nim-detail-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.15rem;
}

.nim-detail-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.nim-detail-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0; margin: 0;
}

.nim-detail-acts li {
  font-size: 0.8rem;
  color: #c0cbde;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, border-color 0.2s;
}

.nim-detail-acts li:hover {
  background: var(--nim-color-dim);
  border-color: rgba(200,149,42,0.3);
  color: #e8d4a0;
}

/* Saq/Kexel badge inside detail */
.nim-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.nim-detail-badge.saq {
  color: var(--saq-color);
  background: var(--saq-bg);
  border: 1px solid rgba(58,123,213,0.2);
}

.nim-detail-badge.kexel {
  color: var(--kexel-color);
  background: var(--kexel-bg);
  border: 1px solid rgba(39,174,137,0.2);
}

/* ---------- MOBILE LIST (hidden on desktop) ---------- */
.nim-mobile-list {
  display: none;
  list-style: none;
  padding: 0; margin: 0;
  width: 100%;
}

.nim-mobile-list li {
  flex-direction: column;
  border-left: 2px solid var(--nim-color-dim);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s;
  border-radius: 0 8px 8px 0;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

.nim-mobile-list li.active {
  border-color: var(--saq-color);
}

/* Fila clickeable: número + nombre + chevron */
.nml-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  transition: background 0.2s;
}

.nim-mobile-list li:hover .nml-header {
  background: rgba(58,123,213,0.06);
}

.nim-mobile-list li.active .nml-header {
  background: rgba(58,123,213,0.1);
}

.nml-num {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--saq-color);
  min-width: 2rem;
}

.nml-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-color);
  flex: 1;
}

.nml-chevron {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nim-mobile-list li.active .nml-chevron {
  transform: rotate(180deg);
  color: var(--saq-color);
}

/* Panel de detalle con animación smooth */
.nml-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 1.2rem;
}

.nim-mobile-list li.active .nml-detail {
  max-height: 600px;
  padding: 0.9rem 1.2rem 1.2rem;
  border-top: 1px solid var(--border-color);
}

/* Contenido dentro del acordeón */
.nml-detail .nim-detail-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  display: block;
  margin-bottom: 0.75rem;
}

.nml-detail .nim-detail-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0; margin: 0;
}

.nml-detail .nim-detail-acts li {
  font-size: 0.74rem;
  color: #b0bdd0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 5px;
  padding: 0.22rem 0.55rem;
  font-family: 'Inter', sans-serif;
}

.nml-detail .nml-badges {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}


/* ---------- PROCESS CHIPS ---------- */
.nim-procesos {
  text-align: center;
  margin-top: 3rem;
}

.nim-procesos-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.nim-procesos-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.nim-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nim-chip:hover {
  color: var(--nim-color);
  background: var(--nim-color-dim);
  border-color: rgba(200,149,42,0.3);
}

.nim-chip i {
  font-size: 0.85rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 680px) {
  .nim-ring {
    display: none;
  }
  .nim-mobile-list {
    display: block;
  }
  .nim-detail {
    display: none;
  }
}

@media (max-width: 480px) {
  .marco-nim-section {
    padding: 4rem 1.2rem 4rem;
  }
  .nim-detail-acts li {
    font-size: 0.76rem;
  }
}



/* ====================================================
   SERVICIOS – rediseño Marco Nim
   ==================================================== */

/* Pilares intro: two-column summary above the grids */
.pilares-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.pilar-intro-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color-light);
  background: #fff;
  box-shadow: var(--shadow);
}

.saq-intro   { border-top: 3px solid var(--saq-color); }
.kexel-intro { border-top: 3px solid var(--kexel-color); }

.pic-icon {
  font-size: 1.6rem;
}
.saq-intro   .pic-icon { color: var(--saq-color); }
.kexel-intro .pic-icon { color: var(--kexel-color); }

.pic-text h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}
.pic-text h3 span {
  font-weight: 400;
  color: var(--text-dark-muted);
}
.pic-text p {
  font-size: 0.84rem;
  color: var(--text-dark-muted);
  line-height: 1.6;
  margin: 0;
}

.pic-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.pic-areas span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-dark-muted);
  background: var(--surface-mid);
  border: 1px solid var(--border-color-light);
  border-radius: 4px;
  padding: 0.18rem 0.55rem;
}
.pic-areas span i { font-size: 0.75rem; }
.saq-intro   .pic-areas span i { color: var(--saq-color); }
.kexel-intro .pic-areas span i { color: var(--kexel-color); }

/* Card area tag */
.card-area-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--text-dark-muted);
  background: var(--surface-mid);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  margin-top: auto;
  width: fit-content;
}
.card-area-tag i {
  font-size: 0.73rem;
  color: var(--saq-color);
}

/* Adjust service card layout for the new tag */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

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