/* =====================================================
   REDWEBDIGITAL — Sistema de Diseño v2.0
   Paleta extraída del logo: #FF3131 (rojo marca) + blanco
   Tipografía: Poppins (headings) + Inter (body)
   ===================================================== */

/* ─────────────────────────────────────────────────────
   FUENTES: Poppins (headings) + Inter (body/UI)
   Sin cursivas decorativas ni serifs — máxima legibilidad
───────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─────────────────────────────────────────────────────
   VARIABLES DE DISEÑO
   Basadas 100% en el logo: rojo #FF3131 sobre negro/blanco
───────────────────────────────────────────────────── */
:root {
  /* ── Colores de marca (extraídos del logo.svg) ── */
  --brand:       #FF3131;   /* Rojo exacto del logo — CTAs primarios   */
  --brand-dk:    #D41E1E;   /* Hover / estado activo — más oscuro       */
  --brand-mid:   #E82626;   /* Intermedio para gradientes               */
  --brand-lt:    #FF6B6B;   /* Tint claro — textos sobre oscuro         */
  --brand-pale:  rgba(255, 49, 49, 0.08);   /* Fondo sutil en light     */
  --brand-glow:  rgba(255, 49, 49, 0.20);   /* Sombra de botón          */
  --brand-ring:  rgba(255, 49, 49, 0.15);   /* Borde y ring focus       */

  /* ── Neutros oscuros (fondos de secciones dark) ── */
  --dark:        #0A0A0F;   /* Fondo hero / secciones principales       */
  --dark-2:      #111118;   /* Variante más clara                       */
  --dark-3:      #18181F;   /* Cards sobre dark                         */
  --dark-4:      #1F1F28;   /* Bordes y separadores sobre dark          */

  /* ── Neutros claros (superficies light) ── */
  --white:       #FFFFFF;
  --off-white:   #F7F7FC;   /* Fondo de secciones alternas              */
  --surface:     #F0F0F5;   /* Surface más marcada                      */
  --surface-2:   #E8E8F0;   /* Bordes visibles en light                 */

  /* ── Texto ── */
  --text-dark:   #0D0D14;   /* Títulos y texto principal                */
  --text-body:   #3D3D52;   /* Párrafos — alto contraste, no negro puro */
  --text-muted:  #6B6B82;   /* Subtítulos, labels                       */
  --text-light:  #9999B0;   /* Placeholders, texto secundario           */

  /* ── Bordes ── */
  --border:      rgba(0, 0, 0, 0.08);
  --border-dark: rgba(255, 255, 255, 0.07);
  --border-brand: rgba(255, 49, 49, 0.18);

  /* ── Semánticos (estado / feedback) ── */
  --success:     #10B981;
  --warning:     #F59E0B;
  --error:       #EF4444;

  /* ── Tipografía ── */
  --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter',   -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ── Escala tipográfica ── */
  --text-xs:   0.72rem;   /* 11.5px — labels, tags      */
  --text-sm:   0.82rem;   /* 13px  — secundario          */
  --text-base: 0.95rem;   /* 15px  — body principal      */
  --text-md:   1.05rem;   /* 16.8px — body destacado     */
  --text-lg:   1.2rem;    /* 19px  — intro / lead        */
  --text-xl:   1.5rem;    /* 24px  — h4                  */
  --text-2xl:  2rem;      /* 32px  — h3                  */
  --text-3xl:  2.6rem;    /* 41px  — h2                  */
  --text-4xl:  3.4rem;    /* 54px  — h1                  */

  /* ── Line heights ── */
  --lh-tight:   1.15;
  --lh-snug:    1.3;
  --lh-normal:  1.6;
  --lh-relaxed: 1.75;
  --lh-loose:   1.9;

  /* ── Radios ── */
  --r-xs:   4px;
  --r-sm:   8px;
  --r:      12px;
  --r-md:   16px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-2xl:  36px;
  --r-full: 9999px;

  /* ── Sombras ── */
  --shadow-xs:    0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm:    0 4px 12px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow:       0 8px 28px rgba(0, 0, 0, 0.09), 0 3px 8px rgba(0, 0, 0, 0.05);
  --shadow-lg:    0 20px 48px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
  --shadow-brand: 0 8px 28px var(--brand-glow);
  --shadow-brand-lg: 0 16px 44px rgba(255, 49, 49, 0.30);

  /* ── Transiciones ── */
  --t-fast: 0.15s ease;
  --t:      0.22s ease;
  --t-med:  0.35s ease;
  --t-slow: 0.55s ease;

  /* ── Espaciado de secciones ── */
  --section-py:    96px;
  --section-py-sm: 64px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-body);
  background: var(--white);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Headings: Poppins — fuerte, moderno, sin serifs */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--text-dark);
  letter-spacing: -0.02em;  /* Tight tracking en headings grandes */
}

h1 { font-size: clamp(2.2rem, 5.5vw, var(--text-4xl)); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw,   var(--text-3xl)); }
h3 { font-size: clamp(1.3rem, 2.5vw, var(--text-2xl)); letter-spacing: -0.01em; }
h4 { font-size: var(--text-xl); letter-spacing: -0.01em; }
h5 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }

p { line-height: var(--lh-relaxed); }

a  { text-decoration: none; color: inherit; transition: color var(--t); }
img { max-width: 100%; display: block; }
ul  { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }

/* Focus visible accesible */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection {
  background: var(--brand-pale);
  color: var(--brand-dk);
}

/* ─────────────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────────────── */
.container    { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px;  margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1300px; margin: 0 auto; padding: 0 24px; }

.section    { padding: var(--section-py) 0; }
.section-sm { padding: var(--section-py-sm) 0; }

/* ─────────────────────────────────────────────────────
   SISTEMA TIPOGRÁFICO DE SECCIÓN
   (section-tag, section-title, section-sub)
───────────────────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

/* Cursiva de acento → NO cursiva decorativa,
   solo color de marca. Sin font-style italic. */
.section-title em {
  font-style: normal;
  color: var(--brand);
}

.section-sub {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  max-width: 520px;
  font-weight: 400;
}

.section-header          { margin-bottom: 56px; }
.section-header.center   { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* Variantes sobre fondo oscuro */
.on-dark .section-tag         { color: var(--brand-lt); }
.on-dark .section-tag::before { background: var(--brand-lt); }
.on-dark .section-title       { color: var(--white); }
.on-dark .section-title em    { color: var(--brand-lt); }
.on-dark .section-sub         { color: rgba(255, 255, 255, 0.52); }

/* ─────────────────────────────────────────────────────
   BOTONES — Sistema completo
   Lógica: btn-primary = MÁXIMO contraste (rojo)
           btn-dark    = acción secundaria
           btn-outline = terciario
───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    transform  var(--t),
    box-shadow var(--t),
    background var(--t),
    color      var(--t),
    border-color var(--t);
  white-space: nowrap;
  user-select: none;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0px); }

.btn svg, .btn i { flex-shrink: 0; }

/* ── CTA Principal: rojo marca — máximo contraste ── */
.btn-primary {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  background: var(--brand-dk);
  border-color: var(--brand-dk);
  box-shadow: var(--shadow-brand-lg);
}

/* ── Botón oscuro: para acciones secundarias ── */
.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
  box-shadow: var(--shadow-sm);
}
.btn-dark:hover {
  background: var(--dark-3);
  border-color: var(--dark-3);
  box-shadow: var(--shadow);
}

/* ── Outline sobre fondo claro ── */
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover {
  background: var(--brand-pale);
}

/* ── Outline sobre fondo oscuro ── */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.30);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.65);
}

/* ── Ghost: solo relleno sutil ── */
.btn-ghost {
  background: var(--brand-pale);
  color: var(--brand);
  border-color: transparent;
}
.btn-ghost:hover {
  background: rgba(255, 49, 49, 0.13);
  border-color: var(--brand-ring);
}

/* ── WhatsApp ── */
.btn-wa {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.28);
}
.btn-wa:hover {
  background: #1DB954;
  border-color: #1DB954;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.42);
}

/* ── Tamaños ── */
.btn-sm  { padding:  9px 20px; font-size: 0.78rem; }
.btn-lg  { padding: 16px 36px; font-size: 0.95rem; }
.btn-xl  { padding: 18px 44px; font-size: 1rem;    }

@media (max-width: 480px) {
  .btn-block-mobile { width: 100%; justify-content: center; }
}

/* ─────────────────────────────────────────────────────
   BADGES / CHIPS
───────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

.badge-brand  { background: var(--brand-pale);  color: var(--brand);    border: 1px solid var(--brand-ring); }
.badge-dark   { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.10); }
.badge-subtle { background: var(--surface);     color: var(--text-muted); border: 1px solid var(--border); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--r-full);
  font-size: 0.78rem; font-weight: 500;
  background: var(--surface); color: var(--text-muted); border: 1px solid var(--border);
}

/* ─────────────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 72px;
  transition: background var(--t-med), box-shadow var(--t-med);
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 24px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255, 49, 49, 0.12);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 110px; width: auto; transition: opacity var(--t); }
.nav-logo:hover img { opacity: 0.85; }

/* Links desktop */
.nav-links { display: none; align-items: center; gap: 32px; }

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  padding-bottom: 2px;
  position: relative;
  transition: color var(--t);
}

#navbar.scrolled .nav-links a { color: rgba(255,255,255,0.75); }

/* Subrayado animado */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: width var(--t);
}

.nav-links a:hover,
.nav-links a.active { color: var(--brand) !important; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Botón CTA en navbar */
.nav-cta {
  display: none;
  padding: 9px 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--r-full);
  background: var(--brand);
  color: var(--white);
  border: 2px solid var(--brand);
  transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 3px 10px var(--brand-glow);
}
.nav-cta:hover {
  background: var(--brand-dk);
  border-color: var(--brand-dk);
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}

/* Hamburger mobile */
.nav-hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--white); transition: all var(--t);
}
#navbar.scrolled .nav-hamburger span { background: var(--white); }

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Menú mobile */
.nav-mobile-menu {
  display: none; position: fixed;
  top: 66px; left: 0; right: 0;
  background: rgba(10, 10, 15, 0.98); border-top: 1px solid rgba(255,49,49,0.15);
  padding: 20px 24px; flex-direction: column; gap: 2px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5); z-index: 499;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu a {
  padding: 11px 14px; border-radius: var(--r-sm);
  font-size: 0.93rem; font-weight: 500; color: rgba(255,255,255,0.75);
  transition: background var(--t), color var(--t);
}
.nav-mobile-menu a:hover { background: var(--brand-pale); color: var(--brand); }
.nav-mobile-menu a.active { color: var(--brand); background: var(--brand-pale); }

.nav-mobile-menu .nav-mobile-cta {
  margin-top: 10px; text-align: center;
  background: var(--brand); color: var(--white); border-radius: var(--r-full);
}
.nav-mobile-menu .nav-mobile-cta:hover { background: var(--brand-dk); }

@media (min-width: 900px) {
  .nav-links    { display: flex; }
  .nav-cta      { display: inline-flex; }
  .nav-hamburger { display: none; }
}

.nav-offset { padding-top: 72px; }

/* ─────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  padding: 72px 0 32px;
  position: relative;
  overflow: hidden;
}

/* Línea roja decorativa en el top */
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 40%, var(--brand-lt) 60%, transparent 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}

@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand .logo img {
  height: 34px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.42);
  line-height: var(--lh-relaxed);
  max-width: 260px;
  margin-bottom: 22px;
}

.footer-social { display: flex; gap: 8px; }

.social-link {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.social-link:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-lt);
  margin-bottom: 18px;
}

.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.42);
  transition: color var(--t), padding-left var(--t);
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: var(--text-sm); color: rgba(255, 255, 255, 0.42);
  margin-bottom: 9px;
}
.footer-contact-item i { color: var(--brand-lt); margin-top: 3px; width: 14px; flex-shrink: 0; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 10px; padding-top: 24px;
  font-size: 0.75rem; color: rgba(255, 255, 255, 0.22);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.38); transition: color var(--t); }
.footer-bottom a:hover { color: var(--brand-lt); }

/* ─────────────────────────────────────────────────────
   WHATSAPP FAB
───────────────────────────────────────────────────── */
#wa-fab {
  position: fixed;
  bottom: 28px; right: 24px;
  z-index: 400;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.40);
  text-decoration: none;
  transition: transform var(--t), box-shadow var(--t);
}
#wa-fab:hover { transform: scale(1.10); box-shadow: 0 10px 32px rgba(37, 211, 102, 0.58); }

#wa-fab::before {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  background: rgba(37, 211, 102, 0.16);
  animation: wa-ring 2.2s ease infinite;
}
@keyframes wa-ring {
  0%   { transform: scale(0.9); opacity: 0.85; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* ─────────────────────────────────────────────────────
   BARRA DE PROGRESO
───────────────────────────────────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-lt));
  z-index: 600; width: 0;
  transition: width 0.08s linear;
}

/* ─────────────────────────────────────────────────────
   ANIMACIONES SCROLL (IntersectionObserver)
───────────────────────────────────────────────────── */
.reveal       { opacity: 0; transform: translateY(24px);  transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-left  { opacity: 0; transform: translateX(-24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-right { opacity: 0; transform: translateX( 24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-scale { opacity: 0; transform: scale(0.93);       transition: opacity 0.6s ease, transform 0.6s ease; }

.reveal.visible, .reveal-left.visible,
.reveal-right.visible, .reveal-scale.visible {
  opacity: 1; transform: none;
}

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.15s; }
.d3 { transition-delay: 0.22s; }
.d4 { transition-delay: 0.30s; }

/* ─────────────────────────────────────────────────────
   PAGE HERO (páginas internas)
───────────────────────────────────────────────────── */
.page-hero {
  background: var(--dark);
  padding: 112px 0 72px;
  position: relative;
  overflow: hidden;
}

/* Gradiente rojo sutil de fondo */
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -8%;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 49, 49, 0.10) 0%, transparent 65%);
  pointer-events: none;
}

/* Patrón de puntos sutil */
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.page-hero-content { max-width: 680px; position: relative; z-index: 1; }

.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  line-height: 1.12;
}
.page-hero-title em {
  font-style: normal;
  color: var(--brand-lt);
}

.page-hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: var(--lh-relaxed);
  max-width: 500px;
  margin-bottom: 32px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.38);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.48); transition: color var(--t); }
.breadcrumb a:hover { color: var(--brand-lt); }
.breadcrumb i  { font-size: 0.58rem; }

/* ─────────────────────────────────────────────────────
   CARDS — Base
───────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-brand);
}

.card-dark {
  background: var(--dark-3);
  border: 1px solid var(--border-dark);
}
.card-dark:hover { border-color: rgba(255, 49, 49, 0.25); }

/* ─────────────────────────────────────────────────────
   ICON BOX
───────────────────────────────────────────────────── */
.icon-box {
  width: 54px; height: 54px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; flex-shrink: 0;
  transition: transform var(--t);
}

.icon-box-brand {
  background: var(--brand-pale);
  color: var(--brand);
  border: 1px solid var(--brand-ring);
}
.icon-box-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--brand-lt);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.icon-box-subtle {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

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

/* ─────────────────────────────────────────────────────
   TESTIMONIALES
───────────────────────────────────────────────────── */
.testimonial-card {
  padding: 32px 28px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.testimonial-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--border-brand);
}

.testimonial-card .quote-mark {
  font-family: var(--font-head);
  font-size: 3.5rem;
  line-height: 0.7;
  color: rgba(255, 49, 49, 0.12);
  margin-bottom: 10px;
  font-weight: 800;
}

.testimonial-stars { color: var(--warning); font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 12px; }

.testimonial-text {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  font-style: italic;
  margin-bottom: 22px;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: var(--white); flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.88rem; color: var(--text-dark); }
.author-role { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }

/* ─────────────────────────────────────────────────────
   CTA SECTION — Reutilizable en todas las páginas
───────────────────────────────────────────────────── */
.cta-section {
  background: var(--dark);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Glow rojo centrado */
.cta-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(255, 49, 49, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: var(--lh-tight);
  margin-bottom: 16px;
}
.cta-title em { font-style: normal; color: var(--brand-lt); }

.cta-sub {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 40px; max-width: 460px;
  margin-left: auto; margin-right: auto;
  line-height: var(--lh-relaxed);
}

.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ─────────────────────────────────────────────────────
   FORMULARIOS
───────────────────────────────────────────────────── */
.form-group   { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-control {
  background: var(--off-white);
  border: 1.5px solid var(--surface-2);
  border-radius: var(--r-sm);
  padding: 12px 15px;
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  width: 100%;
}
.form-control::placeholder { color: var(--text-light); }
.form-control:focus {
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--brand-ring);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FF3131' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
  cursor: pointer;
}

/* ─────────────────────────────────────────────────────
   DIVISORES DECORATIVOS
───────────────────────────────────────────────────── */
.divider-brand {
  width: 48px; height: 3px;
  background: var(--brand);
  border-radius: 3px;
  margin: 18px 0;
}
.divider-brand.center { margin-left: auto; margin-right: auto; }

/* Tech tags */
.tech-tag {
  padding: 4px 11px; border-radius: var(--r-full);
  font-size: 0.73rem; font-weight: 600;
  background: var(--brand-pale); color: var(--brand);
  border: 1px solid var(--brand-ring);
}

/* ─────────────────────────────────────────────────────
   UTILIDADES
───────────────────────────────────────────────────── */
.text-brand  { color: var(--brand); }
.text-muted  { color: var(--text-muted); }
.text-white  { color: var(--white); }
.text-dark   { color: var(--text-dark); }
.text-center { text-align: center; }

.mb-0 { margin-bottom: 0; }     .mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 8px; }   .mt-2 { margin-top: 8px; }
.mb-4 { margin-bottom: 16px; }  .mt-4 { margin-top: 16px; }
.mb-6 { margin-bottom: 24px; }  .mt-6 { margin-top: 24px; }
.mb-8 { margin-bottom: 32px; }  .mt-8 { margin-top: 32px; }

.flex         { display: flex; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-2        { gap: 8px; }
.gap-4        { gap: 16px; }

/* ─────────────────────────────────────────────────────
   RESPONSIVE GLOBAL
───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-py: 72px; --section-py-sm: 48px; }
}

@media (max-width: 640px) {
  :root { --section-py: 56px; --section-py-sm: 36px; }
  .section-title { font-size: 1.65rem; }
  .cta-title     { font-size: 1.75rem; }
  .page-hero-title { font-size: 1.9rem; }
}
