/* ==========================================================================
   LicitaciónYa — Base Reset, Layout & Corporate Business Styles
   Clean, Compact & Fully Responsive
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Section Containers & Backgrounds */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
}

.section-py {
  padding: 3.5rem 0;
}

.bg-surface {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.bg-white {
  background-color: var(--bg-primary);
}

/* Section Header Utility - Compact & Centered */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.2rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-navy-light);
  background-color: var(--brand-blue-soft);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.25;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Text Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 60%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.font-mono { font-family: var(--font-mono); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.text-success { color: var(--brand-green); }
.text-gold { color: var(--accent-gold); }
.text-blue { color: var(--brand-blue); }
.text-accent { color: var(--brand-blue); }
.text-navy { color: var(--brand-navy); }

/* Corporate Trust & Metrics Strip */
.metrics-strip {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.85rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: center;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.85rem;
  border-right: 1px solid var(--border-subtle);
}

.metric-item:last-child {
  border-right: none;
}

.metric-value {
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
  font-weight: 800;
  color: #0f1f3d;
  font-family: var(--font-sans);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.82rem;
  color: #1e293b;
  font-weight: 700;
}

.metric-desc {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

@media (max-width: 768px) {
  .section-py {
    padding: 2.25rem 0;
  }
  .section-header {
    margin-bottom: 1.6rem;
  }
  .container {
    padding: 0 1rem;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.5rem;
  }
  .metric-item:nth-child(2) {
    border-right: none;
  }
}
