/**
 * Collpack 2026 — sistema de estilos principal (base).
 * Los componentes se encolan por separado en inc/enqueue.php (sin @import).
 */

/* ==========================================================================
   RESET Y BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--cp-font-body);
  color: var(--cp-charcoal);
  background-color: var(--cp-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  transition: var(--cp-transition);
}

/* ==========================================================================
   TIPOGRAFÍA
   ========================================================================== */

.cp-display {
  font-family: var(--cp-font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cp-navy);
  letter-spacing: -0.02em;
}

.cp-h1 {
  font-family: var(--cp-font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--cp-navy);
  line-height: 1.15;
}

.cp-h2,
.cp-section-title {
  font-family: var(--cp-font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cp-navy);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .cp-h2,
  .cp-section-title {
    font-size: 2rem;
  }
}

.cp-h3 {
  font-family: var(--cp-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cp-navy);
  line-height: 1.25;
}

@media (min-width: 768px) {
  .cp-h3 {
    font-size: 1.5rem;
  }
}

.cp-mono {
  font-family: var(--cp-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cp-gray-500);
}

/* ==========================================================================
   BOTONES
   ========================================================================== */

.cp-btn-primary,
.cp-btn-navy,
.cp-btn-outline,
.cp-btn-orange-lg,
.cp-btn-navy-lg,
.cp-btn-outline-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cp-radius-sm);
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--cp-font-body);
  cursor: pointer;
  transition: var(--cp-transition);
  text-decoration: none;
  line-height: 1.2;
}

.cp-btn-primary,
.cp-btn-orange-lg {
  background: var(--cp-orange);
  color: white;
  border: 1px solid var(--cp-orange);
}

.cp-btn-primary:hover,
.cp-btn-orange-lg:hover {
  background: #c9651a;
  border-color: #c9651a;
  color: white;
}

.cp-btn-navy,
.cp-btn-navy-lg {
  background: var(--cp-navy);
  color: white;
  border: 1px solid var(--cp-navy);
}

.cp-btn-navy:hover,
.cp-btn-navy-lg:hover {
  background: var(--cp-navy-brand);
  border-color: var(--cp-navy-brand);
  color: white;
}

.cp-btn-outline,
.cp-btn-outline-lg {
  background: transparent;
  border: 1px solid var(--cp-charcoal);
  color: var(--cp-charcoal);
}

.cp-btn-outline:hover,
.cp-btn-outline-lg:hover {
  background: var(--cp-bg-light);
  color: var(--cp-charcoal);
}

/* ==========================================================================
   SECCIONES COMUNES
   ========================================================================== */

.cp-section {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .cp-section {
    padding: 72px 0;
  }
}

@media (min-width: 1024px) {
  .cp-section {
    padding: 96px 0;
  }
}

.cp-section--light,
.bg-light-section {
  background: var(--cp-bg-light);
}

.cp-section--dark,
.cp-section--navy {
  background: var(--cp-navy);
  color: white;
}

/* ==========================================================================
   METRICS STRIP
   ========================================================================== */

.cp-metrics,
.cp-metrics-row {
  border-top: 1px solid var(--cp-border);
  border-bottom: 1px solid var(--cp-border);
  padding: 24px 0;
}

@media (min-width: 768px) {
  .cp-metrics,
  .cp-metrics-row {
    padding: 32px 0;
  }
}

.cp-metric-num {
  font-family: var(--cp-font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cp-navy);
  line-height: 1;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .cp-metric-num {
    font-size: 2.8rem;
  }
}

.cp-metric-label {
  font-family: var(--cp-font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--cp-gray-500);
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .border-start-md {
    border-left: 1px solid var(--cp-border) !important;
  }
}

/* ==========================================================================
   LAYOUT / CONTAINER
   ========================================================================== */

.cp-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .cp-container {
    max-width: 640px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .cp-container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .cp-container {
    max-width: 1024px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {
  .cp-container {
    max-width: 1280px;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.cp-text-orange {
  color: var(--cp-orange) !important;
}

.cp-text-micro {
  font-size: 0.72rem;
}

.is-hidden {
  display: none !important;
}

/* ==========================================================================
   BREAKPOINTS (mobile-first reference)
   sm: 640px | md: 768px | lg: 1024px | xl: 1280px
   ========================================================================== */

@media (min-width: 640px) {
  /* sm */
}

@media (min-width: 768px) {
  /* md */
}

@media (min-width: 1024px) {
  /* lg — header desktop already handled in header.css */
}

@media (min-width: 1280px) {
  /* xl */
}
