/* =========================================
   9. COMPONENTES REUTILIZABLES
   ========================================= */
.trust-bar {
  background: var(--white);
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.trust-grid { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 24px; }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-inline: 12px; }
.trust-divider { width: 1px; height: 40px; background: var(--border); }
.trust-number { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; color: var(--red); line-height: 1; }
.trust-label { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); }
.trust-badge { display: flex; align-items: center; gap: 10px; }
.trust-badge img { height: 32px; width: auto; }

.pains-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 20px; }
.pain-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow var(--tr), transform var(--tr);
}
.pain-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pain-icon { flex-shrink: 0; width: 36px; height: 36px; background: rgba(204,34,41,.12); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--red); }
.pain-text { font-size: var(--text-sm); font-weight: 500; color: var(--text); line-height: 1.5; }

.diff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; }
.diff-card,
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr);
}
.diff-card:hover,
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.diff-card-icon { width: 52px; height: 52px; background: var(--red); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--white); margin-bottom: 1.25rem; }
.diff-card h4 { margin-bottom: .5rem; }
.diff-card p,
.card p { font-size: var(--text-sm); color: var(--text-secondary); max-width: none; }
.card { border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; margin-bottom: .75rem; }
.card h3 a:hover { color: var(--red); }

.features-diff { padding: var(--section-py) 0; background: var(--white); }
.features-diff .section-label { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: .5rem; }
.features-diff h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--dark); margin-bottom: .75rem; }
.features-diff .section-subtitle { font-size: var(--text-base); color: var(--text-secondary); max-width: 640px; margin-bottom: 2.5rem; }
.features-grid,
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.features-grid { gap: 1.5rem; margin-top: 2.5rem; }
.feature-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.feature-card {
  padding: 20px;
  background: var(--white);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow var(--tr), transform var(--tr);
  overflow: visible;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.feature-card__header h3 { font-size: 1rem; font-weight: 600; color: var(--dark); margin: 0; line-height: 1.3; min-width: 0; }
.feature-icon { flex-shrink: 0; width: 36px; height: 36px; background: rgba(204,34,41,.1); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--red); }
.feature-icon svg { width: 18px; height: 18px; flex-shrink: 0; }
.feature-icon--text { font-size: 1.1rem; line-height: 1; }
.feature-card p { font-size: .9rem; color: var(--text-secondary); line-height: 1.55; margin: 0; max-width: none; }
.features-diff .feature-card { padding: 1.75rem; border: 1px solid var(--border); border-left: 3px solid var(--red); }
.features-diff .feature-icon { width: 52px; height: 52px; background: var(--red); border-radius: 10px; color: #fff; margin-bottom: 1.25rem; }
.features-diff .feature-icon svg { width: 24px; height: 24px; }
.features-diff .feature-card h4 { margin-bottom: .5rem; font-size: 1rem; font-weight: 700; }

.sector-grid--cards{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
  margin-top:48px;
}

.sector-grid--cards .sector-card-clean{
  position:relative;
  display:block;
  min-height:320px;
  border-radius:18px;
  overflow:hidden;
  text-decoration:none;
  box-shadow:0 12px 34px rgba(0,0,0,.14);
}

.sector-grid--cards .sector-card-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.sector-grid--cards .sector-card-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(0,0,0,.9),rgba(0,0,0,.45),rgba(0,0,0,.15));
}

.sector-grid--cards .sector-card-content{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  padding:24px;
}

.sector-grid--cards h3{
  color:#fff;
  font-size:1.35rem;
  line-height:1.2;
  margin:0 0 8px;
}

.sector-grid--cards p{
  color:rgba(255,255,255,.9);
  font-size:.95rem;
  line-height:1.45;
  margin:0 0 12px;
}

.sector-grid--cards .sector-card-link{
  color:#ff4b52;
  font-weight:700;
}

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

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

.sector-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  transition: transform var(--tr);
}
.sector-card:hover { transform: translateY(-4px); }
.sector-card:hover .sector-card-overlay { background: rgba(18,18,18,.72); }
.sector-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.sector-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,18,18,.85) 0%, rgba(18,18,18,.3) 100%); transition: background var(--tr); }
.sector-card-content { position: relative; z-index: 2; padding: 1.5rem; width: 100%; }
.sector-card h3 { color: var(--white); font-size: var(--text-xl); margin-bottom: .25rem; }
.sector-card p { color: rgba(255,255,255,.75); font-size: var(--text-sm); }
.sector-card-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-size: var(--text-sm); font-weight: 600; margin-top: .75rem; transition: gap var(--tr); }
.sector-card:hover .sector-card-arrow { gap: 10px; }
.sector-card-plain { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,.04); padding: 1.75rem; display: block; transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr); }
.sector-card-plain:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--red); }
.sector-card-plain .sector-icon { width: 48px; height: 48px; background: var(--red); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--white); margin-bottom: 1rem; }
.sector-card-plain h3 { margin-bottom: .5rem; font-size: var(--text-xl); }
.sector-card-plain p { font-size: var(--text-sm); color: var(--text-secondary); max-width: none; }

.service-list { display: flex; flex-direction: column; gap: 20px; }
.service-item { display: flex; align-items: flex-start; gap: 20px; padding: 1.75rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: box-shadow var(--tr); }
.service-item:hover { box-shadow: var(--shadow-md); }
.service-icon { flex-shrink: 0; width: 52px; height: 52px; background: var(--red); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--white); }
.service-item h4 { margin-bottom: .4rem; }
.service-item p { font-size: var(--text-sm); color: var(--text-secondary); max-width: none; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.service-card { padding: 24px; background: var(--white); border-left: 3px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: box-shadow var(--tr), transform var(--tr); }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.service-card-icon { flex-shrink: 0; width: 40px; height: 40px; background: rgba(204,34,41,.1); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--red); }
.service-card-icon svg { width: 20px; height: 20px; }
.service-card h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.3; margin: 0; }
.service-card p { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.65; margin: 0; max-width: none; }

.clients-grid { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; margin-top: 2rem; }
.client-item { background: var(--light); border: 1px solid var(--border); border-radius: 8px; padding: 24px 40px; min-width: 180px; text-align: center; transition: box-shadow var(--tr); }
.client-item:hover { box-shadow: var(--shadow-md); }
.client-name { font-size: 1.1rem; font-weight: 700; color: var(--dark); letter-spacing: .02em; }

.cta-band { background: var(--red); padding-block: clamp(40px, 5vw, 60px); text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 2rem; max-width: 560px; margin-inline: auto; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; text-align: left; }
.cta-band__text p { margin-bottom: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.cta-dark-section { position: relative; padding-block: var(--section-py); overflow: hidden; }
.cta-dark-section .hero-bg { opacity: .25; }
.cta-dark-section .container { position: relative; z-index: 2; }

.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 820px; margin-inline: auto; }
.faq-item { background: #fff; border: none; border-radius: 8px; overflow: hidden; }
.faq-question { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; font-size: 1rem; font-weight: 500; color: var(--text); border: 1px solid var(--border); border-radius: 8px; background: #fff; transition: background var(--tr); }
.faq-question:hover { background: rgba(204,34,41,.03); }
.faq-question.active { color: var(--red); }
.faq-icon,
.faq-chevron { flex-shrink: 0; width: 24px; height: 24px; color: var(--red); transition: transform var(--tr); }
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-question.active .faq-chevron { transform: rotate(180deg); }
.faq-question svg { width: 24px; height: 24px; flex-shrink: 0; }
.faq-answer { display: none; padding: 12px 20px; font-size: .95rem; line-height: 1.6; color: var(--text-secondary); max-width: none; }
.faq-answer.open,
.faq-item.open .faq-answer { display: block; }
summary::marker,
summary::-webkit-details-marker { display: none; }

.section-2col,
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col { gap: 60px; }
.section-2col > *,
.two-col > * { min-width: 0; }
.section-2col.reverse { direction: rtl; }
.section-2col.reverse > * { direction: ltr; }
.two-col--equal { grid-template-columns: 1fr 1fr; }
.two-col__text,
.two-col__visual { min-width: 0; }
.two-col__visual img { width: 100%; display: block; }
.img-rounded { border-radius: var(--radius-lg); overflow: hidden; }
.img-shadow { box-shadow: var(--shadow-lg); }
.section-img { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.section-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.section-img-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: var(--red); color: var(--white); padding: 1.25rem 1.5rem; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.section-img-overlay p { font-size: 1rem; font-weight: 700; line-height: 1.5; max-width: none; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 32px; text-align: center; }
.stat-number { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--red); line-height: 1; display: block; margin-bottom: .25rem; }
.stat-label { font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .06em; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--text-xs); color: rgba(255,255,255,.6); margin-bottom: 1.5rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: '/'; color: rgba(255,255,255,.35); }
.breadcrumb a { color: rgba(255,255,255,.6); transition: color var(--tr); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: rgba(255,255,255,.3); }
.breadcrumb-dark { color: var(--text-secondary); }
.breadcrumb-dark a { color: var(--text-secondary); }
.breadcrumb-dark li + li::before,
.breadcrumb-dark .breadcrumb-sep { color: var(--border); }
.breadcrumb-dark a:hover { color: var(--red); }

.values-grid { display: grid; grid-template-columns: repeat(2,1fr); }
.value-item { padding: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.value-item:nth-child(1),
.value-item:nth-child(4) { background: var(--red); color: var(--white); }
.value-item:nth-child(2),
.value-item:nth-child(3) { background: var(--white); }
.value-item:nth-child(1) h4,
.value-item:nth-child(4) h4 { color: var(--white); }
.value-icon { font-size: 2rem; }
.value-item h4 { font-size: var(--text-xl); }
.value-item p { font-size: var(--text-sm); opacity: .85; max-width: none; }

.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist-item { display: flex; align-items: flex-start; gap: 10px; font-size: var(--text-sm); color: var(--text); }
.checklist-item svg { flex-shrink: 0; color: var(--red); margin-top: 2px; }

.badge { display: inline-block; padding: .2rem .6rem; border-radius: 20px; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.badge-red { background: rgba(204,34,41,.1); color: var(--red); }
.badge-dark { background: rgba(18,18,18,.08); color: var(--dark); }
.badge-white { background: rgba(255,255,255,.15); color: var(--white); }

.img-placeholder { background: linear-gradient(135deg, #1a1a1a 0%, #2a1215 60%, var(--red) 100%); min-height: 300px; border-radius: var(--radius); width: 100%; display: block; }
.video-embed { position: relative; width: 100%; max-width: 720px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.12); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; margin-top: 2rem; }
.step-item { text-align: center; }
.step-number { width: 48px; height: 48px; background: var(--red); color: #fff; border-radius: 50%; font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.step-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; color: var(--dark); }
.step-item p { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; }

/* =========================================
   10. FORMULARIOS, CONTACTO Y LEGALES
   ========================================= */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.form-label .required { color: var(--red); margin-left: 2px; }
.form-control { padding: .7rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--text); background: var(--white); transition: border-color var(--tr), box-shadow var(--tr); width: 100%; }
.form-control:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,34,41,.1); }
.form-control.error { border-color: #dc2626; }
.form-control::placeholder { color: #b0b0b0; }
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 110px; resize: vertical; }
.form-error { font-size: var(--text-xs); color: #dc2626; display: none; }
.form-error.visible { display: block; }
.form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.6; }
.form-check input[type='checkbox'] { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--red); cursor: pointer; }
.form-check a { color: var(--red); text-decoration: underline; }
.form-success { display: none; text-align: center; padding: 2rem; color: #16a34a; }
.form-success.visible { display: block; }
.form-disclaimer { font-size: .78rem; color: var(--text-secondary); text-align: center; margin-top: .5rem; }

.form-section-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding-top: 40px; padding-bottom: 60px; }
.form-section-text h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: .75rem; }
.form-section-text p { color: rgba(255,255,255,.78); line-height: 1.7; }
.form-trust-items { display: flex; flex-direction: column; gap: 14px; margin-top: 2rem; }
.form-trust-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.9); font-size: .9rem; font-weight: 500; }
.form-trust-item svg { flex-shrink: 0; color: #22c55e; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-info { color: var(--white); }
.contact-info h2 { color: var(--white); margin-bottom: 1rem; }
.contact-info p { color: rgba(255,255,255,.75); margin-bottom: 2rem; max-width: none; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 1.25rem; color: rgba(255,255,255,.8); font-size: var(--text-sm); }
.contact-detail svg { flex-shrink: 0; color: var(--red); margin-top: 2px; }
.contact-detail a:hover { color: var(--white); }
.contact-detail strong { display: block; color: var(--white); font-weight: 600; margin-bottom: 2px; }

.legal-modal { position: fixed; inset: 0; z-index: 99999; align-items: center; justify-content: center; padding: 24px; }
.legal-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.legal-modal__content { position: relative; background: #fff; color: #222; max-width: 760px; max-height: 85vh; overflow-y: auto; border-radius: 12px; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.35); z-index: 1; }
.legal-modal__content h2 { margin-top: 0; }
.legal-modal__content li { margin-bottom: 12px; line-height: 1.55; }
.legal-modal__close { position: absolute; top: 12px; right: 16px; border: 0; background: transparent; font-size: 32px; cursor: pointer; }
.legal-content h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: .5rem; }
.legal-content h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; margin-top: 2rem; margin-bottom: .75rem; }
.legal-content h3 { font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 600; margin-top: 1.5rem; margin-bottom: .5rem; }
.legal-content p { font-size: .95rem; line-height: 1.7; color: var(--text-secondary); }




/* =====================================================
   14. AJUSTES FINALES / HELPERS REUTILIZABLES
   Sustituir desde: /* HERO MÁS ANCHO */ hasta el final
===================================================== */

/* HERO MÁS ANCHO */
.hero-text--wide{
  max-width:980px;
}

.hero-text--wide .hero-title{
  max-width:900px;
  line-height:1.08;
}

.hero-text--wide .hero-subtitle{
  max-width:820px;
  font-size:1.15rem;
}

.hero-subtitle--wide{
  max-width:820px;
}

/* HERO BACKGROUNDS */
.hero-bg--home,
.hero-bg--erp-empresas{
  background-image:url('/assets/img/hero-home.webp');
}

.hero-bg--xrp{
  background-image:url('/assets/img/hero-cegid-xrp-enterprise.webp');
}

.hero-bg--implantacion-xrp{
  background-image:url('/assets/img/implantacion-cegid-xrp-erp.webp');
}

.hero-bg--erp-distribucion{
  background-image:url('/assets/img/erp-distribucion-cegid-xrp.webp');
}

.hero-bg--erp-logistica{
  background-image:url('/assets/img/erp-logistica-cegid-xrp.webp');
}

.hero-bg--erp-projects{
  background-image:url('/assets/img/erp-ingenieria-proyectos-cegid-xrp.webp');
}

.hero-bg--erp-rrhh{
  background-image:url('/assets/img/hcm-rrhh.webp');
}

.hero-bg--verifactu{
  background-image:url('/assets/img/erp-verifactu-factura-electronica.webp');
}

.hero-bg--diagnostico{
  background-image:url('/assets/img/diagnostico-erp-quality.webp');
}

.hero-bg--integraciones{
  background-image:url('/assets/img/integraciones-erp-hcm.webp');
}

.hero-bg--servicios{
  background-image:url('/assets/img/hero-servicios.webp');
}

.hero-bg--bpo{
  background-image:url('/assets/img/hero-bpo-outsourcing.webp');
}

.hero-bg--hcm{
  background-image:url('/assets/img/hero-hcm.webp');
}

.hero-bg--peoplenet{
  background-image:url('/assets/img/hero-peoplenet-meta4.webp');
}

.hero-bg--visualtime{
  background-image:url('/assets/img/hero-visualtime.webp');
}

.hero-bg--oracle-hcm{
  background-image:url('/assets/img/oracle-hcm-global-enterprise.webp');
}

.hero-bg--nosotros{
  background-image:url('/assets/img/hero-nosotros-original.webp');
}

.hero-bg--estimador-xrp{
  background-image:url('/assets/img/hero-estimador-xrp.webp');
}

.hero-bg--team-meeting{
  background-image:url('/assets/img/team-meeting.webp');
}

/* HERO WIDTHS */
.hero-text--home,
.hero-text--diagnostico,
.hero-text--distribution,
.hero-text--logistics,
.hero-text--erp-rrhh,
.hero-text--verifactu{
  max-width:900px;
}

.hero-text--services{
  max-width:980px;
}

.hero-text--services .hero-title{
  max-width:920px;
  line-height:1.02;
}

.hero-text--services .hero-subtitle{
  max-width:760px;
  font-size:1.15rem;
}

.hero-text--bpo{
  max-width:980px;
}

.hero-text--bpo .hero-title{
  max-width:940px;
  line-height:1.02;
  letter-spacing:-0.03em;
}

.hero-text--bpo .hero-subtitle{
  max-width:760px;
  font-size:1.14rem;
}

.hero-text--xrp,
.hero-text--nosotros{
  max-width:860px;
}

.hero-text--xl,
.hero-text--projects,
.hero-text--integraciones{
  max-width:920px;
}

.hero-text--visualtime{
  max-width:930px;
}

.hero-text--oracle,
.hero-text--xxl{
  max-width:940px;
}

.hero-subtitle--projects{
  max-width:840px;
}

/* HELPERS GENERALES */
.card-link{
  text-decoration:none;
  color:inherit;
}

.card-link:hover{
  color:inherit;
}

.header-logo-img{
  display:block;
  width:auto;
}

.btn-full{
  width:100%;
  text-align:center;
}

.btn-group-center{
  justify-content:center;
}

.mt-md{
  margin-top:1rem;
}

.mt-sm{
  margin-top:.75rem;
}

.center-action-md{
  text-align:center;
  margin-top:2rem;
}

.grid-spaced-md{
  margin-top:2rem;
}

.sidebar-widget-spaced{
  margin-top:2rem;
}

.cta-band-spaced{
  margin-top:4rem;
}

.section-subtitle-center{
  max-width:720px;
  margin:.75rem auto 0;
}

.intro-text-lg{
  font-size:1.05rem;
  margin-bottom:1.5rem;
}

.text-lg-soft{
  font-size:1.08rem;
}

.text-xs-muted{
  margin-top:.5rem;
  font-size:.78rem;
  color:rgba(255,255,255,.4);
}

.eyebrow-red{
  color:var(--red);
}

.eyebrow-light{
  color:rgba(255,255,255,.6);
}

.text-white{
  color:#fff;
}

.text-light-soft{
  color:rgba(255,255,255,.74);
}

.text-center-limit{
  max-width:760px;
  margin-inline:auto;
}

.trust-number-label{
  font-size:1rem;
  font-weight:700;
  color:var(--dark);
}

.label-optional{
  font-weight:400;
  color:var(--text-secondary);
}

/* DROPDOWN MENU */
.dropdown-title{
  font-size:.78rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--red);
  padding:14px 18px 6px;
  opacity:.9;
  pointer-events:none;
}

.dropdown-separator{
  height:1px;
  background:rgba(0,0,0,.08);
  margin:8px 0;
}

/* BLOG / ARTÍCULOS */
.article-layout-top{
  padding-top:calc(var(--header-h) + 3rem);
}

.blog-header-section{
  padding-top:calc(var(--header-h) + 2rem);
  padding-bottom:24px;
}

.blog-intro{
  font-size:1.125rem;
  color:var(--text-secondary);
  max-width:700px;
  margin-top:.75rem;
}

/* SECCIONES OSCURAS CON FONDO */
.section-dark-hero{
  position:relative;
  overflow:hidden;
}

.hero-bg-overlay{
  opacity:.15;
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
}

.relative-z2{
  position:relative;
  z-index:2;
}

.dark-gradient-bg{
  background:linear-gradient(135deg,#1a1a1a 0%,#2d1a1a 100%);
  position:absolute;
  inset:0;
}

.dark-overlay-bg{
  background:rgba(18,18,18,.82);
  position:absolute;
  inset:0;
}

/* MODULE GRID — versión final */
.module-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  margin-top:48px;
}

.module-card{
  background:#fff;
  border-radius:18px;
  padding:34px 28px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 8px 30px rgba(0,0,0,.05);
  transition:all .25s ease;
}

.module-card:hover{
  transform:translateY(-5px);
  box-shadow:0 18px 45px rgba(0,0,0,.10);
}

.module-icon{
  width:72px;
  height:72px;
  border-radius:16px;
  background:rgba(204,34,41,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:24px;
  color:var(--red);
  font-weight:800;
}

.module-icon i{
  font-size:2rem;
  color:var(--red);
}

.module-title{
  font-size:1.35rem;
  font-weight:700;
  line-height:1.3;
  color:#111;
  margin:0 0 18px;
}

.module-title::after{
  content:"";
  display:block;
  width:46px;
  height:3px;
  background:var(--red);
  margin-top:14px;
}

.module-desc{
  font-size:1rem;
  line-height:1.7;
  color:#555;
  margin:0;
}

/* PAIN CARDS — versión final */
.pains-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  margin-top:60px;
}

.pain-card{
  background:#fff;
  border-radius:20px;
  padding:34px 30px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 10px 30px rgba(0,0,0,.05);
  transition:all .25s ease;
}

.pain-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 50px rgba(0,0,0,.10);
}

.pain-card .pain-icon{
  width:72px;
  height:72px;
  border-radius:18px;
  background:rgba(204,34,41,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2rem;
  margin-bottom:26px;
  color:var(--red);
}

.pain-card h3{
  font-size:1.7rem;
  line-height:1.2;
  margin:0 0 18px;
  color:#111;
}

.pain-card h3::after{
  content:"";
  display:block;
  width:48px;
  height:3px;
  background:var(--red);
  margin-top:14px;
}

.pain-card p{
  font-size:1rem;
  line-height:1.75;
  color:#555;
  margin:0;
}

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

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

  .sector-card-clean{
    min-height:280px;
  }
}

/* LOGO PILLS */
.logo-grid{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  justify-content:center;
  margin-top:50px;
}

.logo-pill{
  padding:14px 22px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 10px 25px rgba(0,0,0,.05);
  font-weight:600;
  color:#111;
}

/* METHOD CARDS */
.method-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  margin-top:56px;
}

.method-card{
  background:#242424;
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  padding:34px 28px;
  box-shadow:0 18px 50px rgba(0,0,0,.22);
}

.method-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:14px;
  background:rgba(204,34,41,.14);
  color:var(--red);
  font-weight:800;
  margin-bottom:24px;
}

.method-card h3{
  color:#fff;
  font-size:1.35rem;
  margin:0 0 14px;
}

.method-card p{
  color:rgba(255,255,255,.72);
  line-height:1.7;
  margin:0;
}

/* VIDEO / IMÁGENES */
.video-thumb-card{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:16/9;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 8px 30px rgba(0,0,0,.15);
  text-decoration:none;
  background:#000;
}

.video-thumb-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.video-thumb-caption{
  position:absolute;
  left:1.25rem;
  right:1.25rem;
  bottom:1rem;
  color:#fff;
  font-weight:600;
  font-size:1rem;
  line-height:1.35;
  text-shadow:0 2px 8px rgba(0,0,0,.6);
}

.image-card{
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 8px 30px rgba(0,0,0,.12);
}

.image-card img{
  width:100%;
  height:auto;
  display:block;
}

.image-card-spaced{
  margin-top:1.5rem;
}

/* CTA CON FONDO */
.cta-band-dark{
  position:relative;
  overflow:hidden;
}

.cta-band-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.12;
}

/* FORMULARIOS */
.form-title{
  margin-bottom:1.25rem;
  font-size:1.25rem;
}

.form-legal-note--small{
  font-size:12px;
  line-height:1.5;
  color:#666;
  margin-top:12px;
}

/* LEGALES */
.legal-container,
.legal-layout{
  padding-top:calc(var(--header-h) + 3rem);
  padding-bottom:var(--section-py);
  max-width:800px;
}

.legal-content{
  line-height:1.75;
  font-size:1rem;
}

.legal-content h1{
  margin-bottom:1.5rem;
}

.legal-content h2{
  margin-top:3rem;
  margin-bottom:1rem;
}

.legal-content h3{
  margin-top:2rem;
  margin-bottom:.75rem;
}

.legal-content ul,
.legal-content ol{
  padding-left:1.5rem;
  margin:1rem 0;
}

.legal-content li{
  margin-bottom:.5rem;
}

.legal-content hr{
  margin:3rem 0;
  border:none;
  border-top:1px solid rgba(0,0,0,.08);
}

.legal-updated{
  color:var(--text-secondary);
  font-size:.95rem;
  margin-bottom:2rem;
}

.legal-contact-box{
  margin-top:3rem;
  padding:1.5rem;
  border-radius:12px;
  background:#f7f7f7;
}

/* RESPONSIVE AJUSTES FINALES */
@media (max-width:1100px){
  .module-grid,
  .pains-grid,
  .method-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:680px){
  .module-grid,
  .pains-grid,
  .method-grid{
    grid-template-columns:1fr;
  }
}

.legal-modal-hidden{
  display:none;
}

/* SECCIONES DARK — LEGIBILIDAD */
.bg-dark,
.section-dark-hero{
  color:#fff;
}

.bg-dark h2,
.bg-dark h3,
.section-dark-hero h2,
.section-dark-hero h3{
  color:#fff;
}

.bg-dark p,
.section-dark-hero p{
  color:rgba(255,255,255,.78);
}

.bg-dark .card,
.section-dark-hero .card,
.bg-dark .feature-card,
.section-dark-hero .feature-card{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.12);
}

.bg-dark .card h3,
.section-dark-hero .card h3,
.bg-dark .feature-card h3,
.section-dark-hero .feature-card h3{
  color:#fff;
}

.bg-dark .card p,
.section-dark-hero .card p,
.bg-dark .feature-card p,
.section-dark-hero .feature-card p{
  color:rgba(255,255,255,.76);
}

.bg-dark .module-card,
.section-dark-hero .module-card{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.12);
  box-shadow:none;
}

.bg-dark .module-title,
.section-dark-hero .module-title{
  color:#fff;
}

.bg-dark .module-desc,
.section-dark-hero .module-desc{
  color:rgba(255,255,255,.76);
}

/* DARK CARDS / QUALITY SECTION */
.dark-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px;
  margin-top:48px;
}

.dark-card{
  background:#242424;
  border:1px solid rgba(255,255,255,.10);
  border-radius:20px;
  padding:34px 30px;
  box-shadow:0 18px 45px rgba(0,0,0,.22);
}

.dark-card-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:72px;
  height:72px;
  border-radius:16px;
  background:rgba(204,34,41,.14);
  color:#ff3b43;
  font-weight:800;
  font-size:1.05rem;
  margin-bottom:28px;
}

.dark-card h3{
  color:#fff;
  font-size:1.45rem;
  line-height:1.25;
  margin-bottom:16px;
}

.dark-card h3::after{
  content:"";
  display:block;
  width:46px;
  height:3px;
  background:var(--red);
  margin-top:14px;
}

.dark-card p{
  color:rgba(255,255,255,.72);
  font-size:1rem;
  line-height:1.7;
  margin:0;
}

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

/* CONTACT CTA RESPONSIVE */
@media (max-width: 980px){

  .contact-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:40px;
  }

  .contact-info{
    order:1;
  }

  .contact-grid > div:last-child{
    order:2;
  }

  .form-card{
    width:100%;
    padding:32px 24px;
  }

  .form-grid{
    grid-template-columns:1fr;
  }

  .form-full{
    grid-column:auto;
  }

}

@media (max-width: 640px){

  .contact-info h2{
    font-size:clamp(2.2rem, 11vw, 3.5rem);
    line-height:1.02;
  }

  .contact-info p{
    font-size:1rem;
  }

  .form-card{
    padding:24px 18px;
    border-radius:18px;
  }

  .btn-full{
    width:100%;
  }

  .form-control{
    font-size:16px;
  }

}

/* FIX CTA CONTACTO MOBILE */
@media (max-width: 980px){

  .section-dark-hero .contact-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:36px !important;
  }

  .section-dark-hero .contact-grid > *{
    min-width:0;
    width:100%;
  }

  .section-dark-hero .form-card{
    width:100%;
    max-width:100%;
    padding:28px 22px;
  }

  .section-dark-hero .form-grid{
    display:grid;
    grid-template-columns:1fr !important;
    gap:16px;
  }

  .section-dark-hero .form-full{
    grid-column:1 / -1;
  }
}

@media (max-width: 560px){

  .section-dark-hero .container{
    padding-inline:16px;
  }

  .section-dark-hero .form-card{
    padding:24px 18px;
    border-radius:16px;
  }

  .section-dark-hero .form-check{
    align-items:flex-start;
  }
}

/* FIX MOBILE BLOQUE INTRO XRP */
@media (max-width: 768px){

  .hero-2col,
  .two-col,
  .section-2col{
    grid-template-columns:1fr !important;
    gap:28px;
  }

  .two-col__text,
  .two-col__visual{
    width:100%;
    max-width:100%;
  }

  .two-col__visual{
    display:flex;
    flex-direction:column;
    gap:18px;
  }

  .video-thumb-card,
  .image-card{
    width:100%;
    max-width:100%;
    border-radius:14px;
  }

  .video-thumb-card{
    min-height:180px;
  }

  .image-card img{
    width:100%;
    height:auto;
  }

  .checklist{
    margin-top:22px;
    gap:12px;
  }

  .checklist-item{
    background:#fff;
    border:1px solid rgba(0,0,0,.08);
    border-left:3px solid var(--red);
    border-radius:10px;
    padding:12px 14px;
    font-size:.92rem;
    line-height:1.5;
    box-shadow:0 4px 16px rgba(0,0,0,.04);
  }

  .section .btn-group,
  .two-col .btn-group{
    margin-top:24px;
  }

  .section .btn-group .btn,
  .two-col .btn-group .btn{
    width:100%;
    justify-content:center;
    white-space:normal;
    text-align:center;
  }

}

/* DIAGNÓSTICO ERP — FORMULARIO RESPONSIVE */
@media (max-width: 980px){

  #diagnostico-form .form-section-wrap{
    grid-template-columns:1fr !important;
    gap:36px;
  }

  #diagnostico-form .form-card{
    width:100%;
    max-width:100%;
    padding:32px 24px;
  }

  #diagnostico-form .form-grid{
    grid-template-columns:1fr !important;
    gap:18px;
  }

  #diagnostico-form .form-full{
    grid-column:1 / -1;
  }
}

@media (max-width: 560px){

  #diagnostico-form .form-card{
    padding:24px 18px;
    border-radius:16px;
  }

  #diagnostico-form .form-check{
    align-items:flex-start;
  }

  #diagnostico-form .container{
    padding-inline:16px;
  }

}

/* BOTÓN FLOTANTE MÓVIL — ESTIMADOR XRP */
.mobile-floating-estimator{
  display:none;
}

@media(max-width:900px){

  .mobile-floating-estimator{
    position:fixed;
    left:50%;
    bottom:18px;
    transform:translateX(-50%);
    z-index:9998;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    width:min(280px, calc(100% - 110px));
    min-height:58px;
    padding:10px 22px;
    border-radius:999px;
    background:var(--red);
    color:#fff;
    text-align:center;
    box-shadow:0 14px 34px rgba(0,0,0,.28);
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
  }

  .mobile-floating-estimator span{
    font-size:.88rem;
    line-height:1.1;
  }

  .mobile-floating-estimator small{
    margin-top:3px;
    font-size:.68rem;
    line-height:1;
    opacity:.9;
    text-transform:none;
    letter-spacing:0;
  }
}