body {
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

html, body {
  overflow-x: hidden;
}

/* =========================
   SISTEMA DE COLORES
========================= */

.bg-main {
  background-color: var(--bg);
}

.bg-surface {
  background-color: var(--surface);
}

/* TEXTOS */

.text-main {
  color: var(--text);
}

.text-muted-custom {
  color: var(--text-muted);
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* BOTONES */

.btn-primary-custom {
  background-color: var(--primary);
  border: none;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: var(--primary-dark);
  color: #fff;

  box-shadow: 
    0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent),
    0 10px 25px color-mix(in srgb, var(--primary) 40%, transparent);
}

/* SECCIONES */

.section {
  padding: 80px 0;
}

/* =========================
   HERO
========================= */

.hero {
  padding: 100px 0;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-description {
  font-size: 18px;
  max-width: 500px;
}

.hero-buttons .btn {
  padding: 12px 24px;
  border-radius: 8px;
}

.hero-image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.hero-image {
  width: 100%;
  display: block;
}

.hero-divider {
  border: none;
  height: 1px;
  background: #e5e7eb;
  margin-top: 20px;
}

.hero-stat strong {
  font-size: 20px;
  color: var(--text);
}

.btn-outline-custom {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: var(--text);
}

.btn-outline-custom:hover {
  background: #f1f5f9;
}

.btn-outline-custom {
  border-radius: 8px;
  padding: 12px 24px;
}

/* =========================
   SERVICES
========================= */

.section-eyebrow {
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
}

.section-description {
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
}

/* CARD */

.service-card {
  background: var(--surface);
  padding: 30px;
  border-radius: 16px;
  transition: all 0.3s ease;
  text-align: left;
  border: 1px solid #e5e7eb;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* ICONO */

.service-icon {
  width: 50px;
  height: 50px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 22px;
}

/* TEXTOS */

.service-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.service-text {
  font-size: 14px;
}

.process-steps {
  max-width: 700px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 5px;
  position: relative;
  margin-bottom: 30px;
}

.process-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-step-number {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 600;
  font-size: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  /* NUEVO */
  border: 1px solid #fff;
  box-shadow: 
  0 0 0 4px #fff,
  0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent);

  z-index: 2;
}

.process-step-line {
  width: 2px;
  flex: 1;
  background: #e5e7eb;
  margin-top: 5px;
}

.process-card {
  background: var(--surface);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;

  transition: all 0.3s ease;
  flex: 1;

  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.process-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.process-icon {
  width: 40px;
  height: 40px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  font-size: 18px;
  margin-bottom: 10px;
}

.process-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.process-text {
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 768px) {

  .process-step {
    gap: 15px;
  }

  .process-card {
    padding: 18px;
  }

}

.process-step:last-child .process-step-line {
  display: none;
}

@media (min-width: 992px) {

  .process-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 100%;
  }

  .process-steps {
    position: relative;
  }

  .process-steps::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    z-index: 0;
    top: 55%;
    transform: translateY(-50%);
    height: 3px;
    background: var(--primary);
  }

  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    margin-bottom: 0;
  }

  .process-step {
    position: relative;
    z-index: 1;
  }

  /* ocultar línea vertical */
  .process-step-line {
    display: none;
  }

  .process-step-left {
    margin-bottom: 15px;
  }

  .process-step-number {
    width: 45px;
    height: 45px;
    font-size: 14px;
  }

  .process-card {
    width: 100%;
    padding: 25px;
    margin-top: -5px;
    text-align: left;
  }

  .process-icon {
    margin: 0 0 12px;
  }

}

.about-features {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
}

.about-features i {
  color: var(--primary);
  font-size: 18px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}

.about-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.about-stat {
  min-width: 90px;
}

.about-stat span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.2;
}

@media (max-width: 768px) {

  .about-stats {
    flex-direction: column;
    gap: 15px;
  }

}

.about-image {
  width: 100%;
  display: block;
}

.about-image-container {
  position: relative;
}

.about-image-wrapper {
  border-radius: 20px;
  overflow: hidden; /* CLAVE */
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.about-stats-box {
  position: absolute;
  bottom: -25px;
  right: 20px;

  background: #fff;
  padding: 20px 24px;
  border-radius: 12px;

  display: flex;
  gap: 30px;

  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  z-index: 2;

  min-width: 220px; 
}

.about-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.about-stat span {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 20px;
}

.about-feature-content strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text);
}

.about-feature-content span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.3;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px; /* 👈 CLAVE para mantener cuadrado en flex */

  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary);

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px; /* 👈 más consistente con tu design system */
  font-size: 18px;

  flex-shrink: 0; /* 👈 evita que se achique */
}

@media (max-width: 768px) {

  .about-features-grid {
    grid-template-columns: 1fr;
  }

  .about-stats-box {
    position: static;
    margin-top: 15px;
    justify-content: space-between;
  }

}

/* =========================
   SUCCESS STORIES
========================= */

.success-card {
  background: var(--surface);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  text-align: left;

  position: relative;
  overflow: hidden;

  transition: all 0.3s ease;
}

.success-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--card-color, var(--primary));
}

.success-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.success-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.success-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.success-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.success-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.success-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

.success-list i {
  color: #22c55e; /* verde check */
}

.success-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.success-link:hover {
  text-decoration: underline;
}

.success-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px; /* antes 6px */
}

.success-title {
  font-weight: 600;
  margin-bottom: 12px; /* antes 10px */
}

.success-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px; /* antes 15px */
}

.cta-section {
  padding: 80px 0;

  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );

  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at 20% 30%,
    rgba(255,255,255,0.15),
    transparent 50%
  );

  pointer-events: none;
}

.cta-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-text {
  max-width: 600px;
  margin: 0 auto 25px;
  opacity: 0.9;
}

.cta-buttons .btn {
  padding: 12px 24px;
  border-radius: 8px;
}

/* DEFAULT (el que ya hicimos) */
.cta-default {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );
  color: #fff;
}

/* DARK */
.cta-dark {
  background: linear-gradient(
    135deg,
    #0f172a,
    #020617
  );
  color: #fff;
}

/* LIGHT */
.cta-light {
  background: var(--surface);
  color: var(--text);
  border: 1px solid #e5e7eb;
}

.cta-light .btn-light {
  background: var(--primary);
  color: #fff;
}

.cta-light .btn-outline-light {
  border: 1px solid #e5e7eb;
  color: var(--text);
}

/* =========================
   LOGOS
========================= */

.logos-section {
  padding-top: 40px;
  padding-bottom: 60px; 

  border-top: 1px solid #e5e7eb; 
}

.logos-text {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logos-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.logo-item img {
  max-height: 28px;
  filter: grayscale(100%);
  opacity: 0.5;
}

.logo-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-section {
  padding: 80px 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item strong {
  display: block;
  font-size: 13px;
  font-weight: 500; 
  margin-bottom: 2px;
  color: var(--text);
}

.contact-item p {
  margin: 0;
  color: var(--text-muted);
}

.contact-form-wrapper {
  background: var(--bg);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.demo-contact-form label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
  display: block;
}

.demo-contact-form input,
.demo-contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

.demo-contact-form input:focus,
.demo-contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* =========================
   CONTACT
========================= */

.contact-info-title {
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.contact-icon {
  width: 40px;
  height: 40px;

  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--primary);

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  font-size: 16px;

  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.contact-item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-hours {
  margin-top: 25px;
  padding: 15px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.contact-hours h6 {
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-hours p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-form-wrapper form {
  width: 100%;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea,
.contact-form-wrapper select {
  width: 100%;
  margin-bottom: 10px;
}

section {
  scroll-margin-top: 100px;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  z-index: 999;
  background: var(--bg);

  transition: all 0.3s ease;
}

body {
  padding-top: 90px; /* ajustamos según altura real */
}

/* LOGO */
.header-logo img {
  height: 40px;
}

/* MENU */
.header-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

/* TOGGLE */
.menu-toggle {
  background: none;
  border: none;
  font-size: 24px;
}

/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;

  width: 100%;
  height: 100vh;

  background: var(--bg);
  z-index: 1000;

  transition: right 0.3s ease;

  display: flex;
  flex-direction: column;

  padding: 20px;
}

.mobile-menu.active {
  right: 0;
}

/* HEADER MOBILE */
.mobile-menu-header {
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
}

.menu-close {
  background: none;
  border: none;
  font-size: 24px;
  
}

/* MENU ITEMS */
.mobile-menu-list {
  list-style: none;
  padding: 20px 0;
  margin: 0;
}

.mobile-menu-list li {
  margin-bottom: 15px;
}

.mobile-menu-list a {
  text-decoration: none;
  font-size: 18px;
  color: var(--text);
}

/* CTA */
.mobile-cta {
  margin-top: auto;
}

/* =========================
   OVERLAY
========================= */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* BLOQUEAR SCROLL */
body.menu-open {
  overflow: hidden;
}

.menu-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

/* LOGO DESKTOP */
.header-logo img {
  height: 40px;
}

/* LOGO MOBILE */
.mobile-logo img {
  height: 32px;
  max-width: 140px;
  object-fit: contain;
}

body {
  overflow-x: hidden;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.site-header {
  padding: 18px 0;  
}

.header-inner {
  min-height: 60px; 
}

.header-nav .menu {
  align-items: center;
  gap: 28px; 
}

.header-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}

.header-actions .btn {
  padding: 10px 18px;
  border-radius: 8px;
}

.menu-toggle {
  padding: 6px;
}

/* TRANSICIÓN GENERAL */
.site-header {
  transition: all 0.3s ease;
}

/* ESTADO SCROLLED */
.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.header-nav a {
  position: relative;
  transition: color 0.2s ease;
}

/* línea oculta */
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

/* hover */
.header-nav a:hover::after {
  width: 100%;
}

/* color hover */
.header-nav a:hover {
  color: var(--primary);
}

.header-nav .current-menu-item > a,
.header-nav .current_page_item > a {
  color: var(--primary);
}

.header-nav .current-menu-item > a::after,
.header-nav .current_page_item > a::after {
  width: 100%;
}

.header-actions .btn {
  transition: all 0.25s ease;
}

.header-actions .btn:hover {
  transform: translateY(-1px);
}

.menu-overlay {
  backdrop-filter: blur(2px);
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: #0b1a2b;
  color: #cbd5e1;
  padding: 60px 0 30px;
}

.footer-title {
  color: #fff;
  margin-bottom: 10px;
}

.footer-text {
  font-size: 14px;
  margin-bottom: 15px;
}

.footer-form input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #fff;
  width: 250px;
}

.footer-form input::placeholder {
  color: #94a3b8;
}


.footer-icons a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-divider {
  border-color: #1e293b;
  margin: 40px 0 20px;
}

.footer-copy,
.footer-extra {
  font-size: 13px;
  color: #94a3b8;
}

.footer-icons a {
  width: 40px;
  height: 40px;
  border-radius: 10px;

  background: #0f172a;

  display: flex;
  align-items: center;
  justify-content: center;

  color: rgba(255,255,255,0.6); 
  transition: all 0.2s ease;
}

.footer-icons a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-icons i {
  font-size: 18px;
}

/* página 404 */

.error-404 {
    min-height: 80vh;
    padding: 100px 0;
}

.error-code {
    font-size: clamp(80px, 10vw, 140px);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;

    /* usar color global */
    color: var(--bs-primary);
}

.error-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 600;
    margin-bottom: 15px;
}

.error-text {
    max-width: 500px;
    margin: 0 auto 30px;
    color: var(--bs-secondary);
}

.error-actions .btn {
    padding: 12px 28px;
}

.error-contact p {
    margin-bottom: 5px;
    font-size: 14px;
}