/* ==========================================================================
   Tu Pedido Contra Entrega — Base & Tipografía
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-page);
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-brand-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 800; }
h3 { font-size: clamp(1.0625rem, 2vw, 1.25rem); font-weight: 700; }

p {
  margin: 0 0 var(--space-4);
  color: var(--color-text-secondary);
}

/* Accesibilidad */
:focus-visible {
  outline: 3px solid var(--color-brand-accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-2);
  background: var(--color-brand-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus {
  left: var(--space-4);
}

/* Contenedor y secciones */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section {
  padding-block: var(--space-10);
}

.section--subtle {
  background-color: var(--color-bg-subtle);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.section-header p {
  margin-bottom: 0;
}

.price-cop {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--color-brand-primary);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-6); }
  .section { padding-block: var(--space-12); }
}
