/* =========================================================================
   CCP Soluciones Digitales · Base reutilizable
   Reset, accesibilidad y utilidades neutras. Sin colores de marca:
   cada cliente define sus tokens (--ccp-*) en su propia hoja de estilos.
   ========================================================================= */

:root {
  --ccp-fondo: #0b0b0c;
  --ccp-texto: #f5f5f5;
  --ccp-acento: #ffc20e;
  --ccp-foco: var(--ccp-acento);
  --ccp-ancho-max: 1200px;
  --ccp-margen: clamp(16px, 4vw, 40px);
  --ccp-radio: 10px;
  --ccp-alto-header: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--ccp-alto-header) + 8px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body { margin: 0; min-height: 100vh; background: var(--ccp-fondo); color: var(--ccp-texto); line-height: 1.5; overflow-x: hidden; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }

/* Accesibilidad */
.ccp-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ccp-saltar {
  position: absolute; left: 12px; top: -100px; z-index: 1000;
  padding: 10px 16px; border-radius: 6px; background: var(--ccp-acento); color: #000;
  font-weight: 700; text-decoration: none;
}
.ccp-saltar:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ccp-foco); outline-offset: 3px; }

/* Sprite e iconos */
.ccp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ccp-icono {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Contenedor */
.ccp-contenedor { width: 100%; max-width: calc(var(--ccp-ancho-max) + 2 * var(--ccp-margen)); margin-inline: auto; padding-inline: var(--ccp-margen); }

/* Aviso de sitio demostrativo */
.ccp-aviso-demo { background: #000; border-bottom: 1px solid rgba(255,255,255,.08); }
.ccp-aviso-demo p { padding: 6px var(--ccp-margen); font-size: .75rem; line-height: 1.3; text-align: center; color: rgba(255,255,255,.62); letter-spacing: .01em; }
.ccp-aviso-demo strong { color: rgba(255,255,255,.85); font-weight: 600; }

/* Formularios: estado de error genérico */
.ccp-campo-error { display: none; margin-top: 6px; font-size: .8125rem; line-height: 1.3; }
.ccp-campo[data-invalido] .ccp-campo-error { display: flex; gap: 6px; align-items: flex-start; }
