/**
 * Estilos del HTML de referencia (./new/css/styles.css)
 * Integrados al design system Collpack.
 */

/* ==========================================================================
     RESETS CRÍTICOS (Previene los errores de desborde de image_f6e69a.png)
     ========================================================================== */
body {
    font-family: var(--bs-font-sans-serif);
    color: var(--cp-text-charcoal);
    background-color: var(--cp-white);
    -webkit-font-smoothing: antialiased;
}

a {
    transition: all 0.2s ease;
}

/* ==========================================================================
     NAVBAR COMPONENT
     ========================================================================== */
.cp-navbar {
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.cp-logo-main {
    font-family: var(--cp-font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--cp-navy-dark);
    letter-spacing: -0.01em;
}
.cp-logo-divider {
    width: 1px;
    height: 16px;
    background-color: var(--cp-border-gray);
    margin: 0 10px;
    display: inline-block;
}
.cp-logo-sub {
    font-size: 0.65rem;
    color: #718096;
    letter-spacing: 0.05em;
}
.cp-nav-menu .nav-link {
    font-weight: 500;
    font-size: 0.88rem;
    color: #4a5568 !important;
}
.cp-nav-menu .nav-link:hover, .cp-nav-menu .nav-link.active {
    color: var(--cp-navy-dark) !important;
    font-weight: 600;
}
.cp-lang-selector {
    font-size: 0.8rem;
    color: #a0aec0;
}
.cp-lang-selector span.active {
    color: var(--cp-text-charcoal);
    font-weight: 700;
}
.cp-lang-selector .divider {
    margin: 0 4px;
}

/* ==========================================================================
     BOTONES E INTERACCIONES
     ========================================================================== */
.cp-btn-navy {
    background-color: var(--cp-navy-dark);
    color: var(--cp-white);
    border-radius: var(--cp-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid var(--cp-navy-dark);
}
.cp-btn-navy:hover {
    background-color: var(--cp-navy-brand);
    color: var(--cp-white);
}

.cp-btn-navy-lg {
    background-color: var(--cp-navy-dark);
    color: var(--cp-white);
    font-family: var(--bs-font-sans-serif);
    font-weight: 600;
    border-radius: var(--cp-radius-sm);
    font-size: 0.95rem;
    border: 1px solid var(--cp-navy-dark);
}
.cp-btn-navy-lg:hover {
    background-color: var(--cp-navy-brand);
    color: var(--cp-white);
}

.cp-btn-outline-lg {
    background-color: transparent;
    color: var(--cp-text-charcoal);
    font-family: var(--bs-font-sans-serif);
    font-weight: 500;
    border: 1px solid var(--cp-text-charcoal);
    border-radius: var(--cp-radius-sm);
    font-size: 0.95rem;
}
.cp-btn-outline-lg:hover {
    background-color: var(--cp-bg-light);
}

.cp-btn-orange-lg {
    background-color: var(--cp-signal-orange);
    color: var(--cp-white);
    border-radius: var(--cp-radius-sm);
    font-size: 0.95rem;
    border: 1px solid var(--cp-signal-orange);
}
.cp-btn-orange-lg:hover {
    background-color: #c9651a;
    color: var(--cp-white);
}

/* ==========================================================================
     HERO SECCIÓN DESIGN
     ========================================================================== */
.cp-hero-section {
    min-height: 550px;
    background-color: var(--cp-bg-light, #f7fafc);
}
.cp-hero-title {
    font-family: var(--cp-font-display);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.12;
    font-weight: 700;
    color: var(--cp-navy-dark);
    letter-spacing: -0.02em;
}
.cp-hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    max-w: 540px;
}
.cp-text-orange {
    color: var(--cp-signal-orange) !important;
}
.cp-hero-visual-bg {
    background-color: #f8fafc;
    display: d-flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.cp-hero-isometric-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 580px;
    object-fit: contain;
}
/* Video de fondo full-bleed del hero */
.cp-hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.cp-hero-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Scrim izquierdo: mantiene legible el texto charcoal sobre el video */
.cp-hero-video-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(247, 250, 252, 0.94) 0%,
      rgba(247, 250, 252, 0.88) 38%,
      rgba(247, 250, 252, 0.45) 58%,
      rgba(247, 250, 252, 0.12) 78%,
      rgba(247, 250, 252, 0) 100%
    );
}

/* ==========================================================================
     METRICS SECTION
     ========================================================================== */
.cp-metrics-row {
    border-top: 1px solid var(--cp-border-gray);
    border-bottom: 1px solid var(--cp-border-gray);
}
.cp-metric-col {
    text-align: left;
}
.cp-metric-num {
    font-family: var(--cp-font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--cp-navy-dark);
    line-height: 1;
    margin-bottom: 8px;
}
.cp-metric-label {
    font-size: 0.7rem;
    color: #718096;
    letter-spacing: 0.05em;
}
@media (min-width: 768px) {
    .border-start-md { border-left: 1px solid var(--cp-border-gray) !important; }
}

/* ==========================================================================
     PORTFOLIO Y TARJETAS DE PRODUCTO
     ========================================================================== */
.bg-light-section {
    background-color: var(--cp-bg-light);
}
.cp-section-header {
    border-left: 4px solid var(--cp-navy-dark);
}
.cp-section-title {
    font-family: var(--cp-font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--cp-navy-dark);
}
.cp-product-card {
    border: 1px solid var(--cp-border-gray);
    border-radius: var(--cp-radius-md);
    overflow: hidden;
}
.cp-pcard-img-container {
    flex: 0 0 40%;
    background-color: #eaefed;
    min-height: 200px;
}
.cp-pcard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cp-pcard-title {
    font-family: var(--cp-font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cp-navy-dark);
}
.cp-pcard-desc {
    font-size: 0.9rem;
    line-height: 1.5;
}
.cp-pcard-specs {
    font-size: 0.72rem;
    color: #4a5568;
    background-color: #f8fafc !important;
}

/* Home — cards portafolio verticales, imagen full-width */
.cp-home-product-card {
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  height: 100%;
}

.cp-home-product-card .cp-pcard-img-container {
  flex: none;
  width: 100%;
  max-width: none;
  min-height: 0 !important;
  height: auto;
  aspect-ratio: auto;
  background-color: #eaefed;
}

.cp-home-product-card .cp-pcard-img {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.cp-home-product-card__body {
  gap: 0;
  justify-content: flex-start;
}

.cp-home-product-card__eyebrow {
  font-family: var(--cp-font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a0aec0;
  margin-bottom: 5px;
}

.cp-home-product-card .cp-pcard-specs {
  margin-top: 0.85rem !important;
  border-collapse: collapse;
  font-family: var(--cp-font-mono);
  background: transparent !important;
}

.cp-home-product-card .cp-pcard-specs td {
  padding: 0.3rem 0.5rem;
  font-size: 0.62rem;
  vertical-align: top;
}

.cp-home-product-card .cp-pcard-specs td:first-child {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #718096;
  white-space: nowrap;
}

.cp-home-product-card .cp-pcard-specs td:last-child {
  text-align: right;
  color: var(--cp-text-charcoal);
  font-weight: 500;
  font-size: 0.65rem;
}

.cp-home-product-card .cp-pcard-specs tr.is-alt td {
  background: var(--cp-bg-light);
}

/* ==========================================================================
     SECTORES ESTRATÉGICOS
     ========================================================================== */
.cp-sectores-title {
    font-family: var(--cp-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cp-navy-dark);
    letter-spacing: 0.05em;
}
.cp-sector-block {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: var(--cp-radius-sm);
}
.cp-sector-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,36,71,0.85) 0%, rgba(0,36,71,0.2) 100%);
    transition: background 0.3s ease;
}
.cp-sector-block:hover .cp-sector-overlay {
    background: linear-gradient(to top, rgba(224,122,44,0.9) 0%, rgba(0,36,71,0.4) 100%);
}
.cp-sector-name {
    font-family: var(--cp-font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

/* ==========================================================================
     CATEGORÍAS / SOLUCIONES
     ========================================================================== */
.cp-cat-card {
    height: 260px;
    border-radius: var(--cp-radius-sm, 4px);
}
.cp-cat-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.35s ease;
}
.cp-cat-card:hover .cp-cat-bg {
    filter: grayscale(40%);
    transform: scale(1.03);
}
.cp-cat-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(26, 35, 50, 0.88) 0%, rgba(26, 35, 50, 0.25) 55%, rgba(26, 35, 50, 0.05) 100%);
    transition: background 0.3s ease;
}
.cp-cat-card:hover .cp-cat-overlay {
    background: linear-gradient(to top, rgba(10, 61, 98, 0.9) 0%, rgba(26, 35, 50, 0.35) 60%, rgba(26, 35, 50, 0.08) 100%);
}
.cp-cat-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 16px;
}
.cp-cat-name {
    font-family: var(--cp-font-display);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* ==========================================================================
     VALUE PILLARS (SECCIÓN OSCURA)
     ========================================================================== */
.cp-dark-navy-section {
    background-color: var(--cp-navy-dark);
}
.cp-pillar-num {
    font-family: var(--cp-font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--cp-signal-orange);
    line-height: 1;
}
.cp-pillar-title {
    font-family: var(--cp-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.cp-pillar-desc {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
     TESTIMONIALS
     ========================================================================== */
.cp-testimonial-img-wrapper {
    background-color: #cbd5e0;
    min-height: 350px;
}
.cp-testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cp-quote-wrapper {
    border-left: 4px solid var(--cp-signal-orange);
}
.cp-quote-text {
    font-size: 1.4rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--cp-navy-dark);
}
.cp-stat-orange-num {
    font-family: var(--cp-font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cp-signal-orange);
    line-height: 1;
}

/* ==========================================================================
     FAQ / PREGUNTAS FRECUENTES
     ========================================================================== */
.cp-faq-accordion {
    border: 0;
}
.cp-faq-item {
    border: 1px solid var(--cp-border-gray, #e2e8f0);
    border-radius: 4px !important;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
}
.cp-faq-item:last-child {
    margin-bottom: 0;
}
.cp-faq-btn {
    font-family: var(--cp-font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--cp-navy-dark);
    background: #fff;
    box-shadow: none !important;
    padding: 16px 20px;
}
.cp-faq-btn:not(.collapsed) {
    color: var(--cp-navy-dark);
    background: #fff;
}
.cp-faq-btn::after {
    background-size: 14px;
    width: 14px;
    height: 14px;
}
.cp-faq-body {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #4a5568;
    padding: 0 20px 20px;
}
.cp-faq-body p + p {
    margin-top: 12px;
}

/* ==========================================================================
     CTA & FOOTER UTILITIES
     ========================================================================== */
.cp-cta-title {
    font-family: var(--cp-font-display);
    font-size: 2.2rem;
    font-weight: 700;
}

/* Dual contact paths (home CTA) */
.cp-contact-path {
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 4px;
    background: rgba(255,255,255,0.03);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.cp-contact-path:hover {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.06);
}
.cp-contact-path-label {
    display: block;
    font-family: var(--cp-font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 12px;
}
.cp-contact-path-title {
    font-family: var(--cp-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}
.cp-contact-path-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
    margin-bottom: 24px;
}
.cp-contact-path-cta {
    font-family: var(--bs-font-sans-serif);
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}
.cp-contact-path-cta--orange {
    color: var(--cp-signal-orange, #ed8936);
}
.cp-contact-path--tech:hover .cp-contact-path-cta--orange {
    color: #f6ad55;
}
.cp-footer-vmenu a {
    color: #718096;
    text-decoration: none;
    transition: color 0.2s ease;
}
.cp-footer-vmenu a:hover {
    color: var(--cp-navy-dark);
}
.cp-text-micro {
    font-size: 0.72rem;
}
.max-w-4xl { max-width: 890px; }
.max-w-xs { max-width: 300px; }


     /* ─── Correcciones y complementos sobre styles.css ─── */

    /* Hero: fondo derecho bleed hasta el borde del viewport */
    .cp-hero-bg-right {
      position: absolute;
      right: 0; top: 0; bottom: 0;
      width: 43%;
      background-color: var(--cp-bg-light);
      z-index: 0;
    }

    /* Imagen de producto en blanco y negro */
    .cp-pcard-img {
      filter: grayscale(100%);
      transition: filter 0.3s ease;
    }
    .cp-product-card:hover .cp-pcard-img {
      filter: grayscale(50%);
    }

    /* Sector overlay por encima del fondo, texto por encima del overlay */
    .cp-sector-overlay { z-index: 1; }
    .cp-sector-label   { position: relative; z-index: 2; }

    /* Nombres de marca en pie de página de partners */
    .cp-brand-name {
      font-family: var(--cp-font-display);
      font-size: 0.95rem;
      font-weight: 700;
      color: #b0bec5;
      letter-spacing: 0.07em;
      white-space: nowrap;
      transition: color 0.2s ease;
      cursor: default;
    }
    .cp-brand-name:hover { color: var(--cp-navy-dark); }

    /* Grid de marcas representadas (home) */
    .cp-partner-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 72px;
      padding: 12px 8px;
      text-decoration: none;
      color: #718096;
      border: 1px solid transparent;
      border-radius: 4px;
      transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    }
    .cp-partner-item:hover {
      color: var(--cp-navy-dark);
      border-color: var(--cp-border-gray, #e2e8f0);
      background-color: #f7fafc;
    }
    .cp-partner-logo {
      display: block;
      height: 28px;
      width: auto;
      max-width: 96px;
      object-fit: contain;
      filter: grayscale(100%);
      opacity: 0.65;
      transition: opacity 0.2s ease, filter 0.2s ease;
    }
    .cp-partner-item:hover .cp-partner-logo {
      opacity: 0.9;
      filter: grayscale(80%);
    }
    .cp-partner-name {
      font-family: var(--cp-font-mono);
      font-size: 0.62rem;
      font-weight: 500;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      line-height: 1.3;
      text-align: center;
    }

    /* Testimonial: imagen absolutamente posicionada en su columna */
    .cp-testimonial-col {
      position: relative;
      min-height: 400px;
    }
    .cp-testimonial-img-abs {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      filter: grayscale(100%);
    }

    /* Utilidad: altura mínima del hero */
    @media (min-width: 992px) {
      .cp-hero-min { min-height: 580px; }
    }
    @media (max-width: 991px) {
      .cp-hero-bg-right { display: none !important; }
      .cp-hero-video-scrim {
        background: linear-gradient(
          180deg,
          rgba(247, 250, 252, 0.92) 0%,
          rgba(247, 250, 252, 0.78) 55%,
          rgba(247, 250, 252, 0.35) 100%
        );
      }
    }
