/* Sistema de diseño de Cloud Tec Plus.
   Única fuente de tipografías, colores y componentes compartidos.
   Lo cargan todas las páginas: portada, tienda y portal de certificaciones.
   Las hojas de cada sección (styles.css, tienda.css, portal.css) solo
   aportan maquetación y no vuelven a declarar colores ni fuentes. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #081a32;
  --navy-2: #0d2a4b;
  --ink: #122743;
  --muted: #60718a;
  --blue: #0d73e1;
  --blue-deep: #1261a8;
  --cyan: #46c7f4;
  --lime: #91d82f;
  --line: #dce6ef;
  --pale: #f4f8fc;
  --white: #fff;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px rgba(19, 59, 103, .10);
  --lift: 0 18px 42px rgba(15, 52, 85, .10), 0 3px 9px rgba(15, 52, 85, .05);
  --font: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --font-head: Manrope, 'DM Sans', sans-serif;
  color-scheme: light;
}

/* --- Base --- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--font); background: var(--white); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -.03em; font-weight: 800; }
small { font-size: 12px; }
::selection { color: var(--navy); background: #bff289; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--lime); outline-offset: 2px; }

/* --- Utilidades --- */

.hidden { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; overflow: hidden; white-space: nowrap; clip: rect(0 0 0 0); clip-path: inset(50%);
}

/* --- Eyebrow --- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--blue-deep); font-size: 11px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow-line { display: inline-block; width: 22px; height: 2px; border-radius: 10px; background: var(--lime); }
.eyebrow-light { color: #bddcf1; }

/* --- Botones ---
   Dos familias conviven: las de la portada (.button-lime, .button-outline,
   .button-dark) y las del portal (.button.primary, .ghost, .subtle, .active). */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: #253f5a;
  font-size: 13px; font-weight: 800; white-space: nowrap; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.button:hover:not(:disabled) { background: var(--pale); border-color: #b9d2e8; }

.button.primary {
  background: var(--navy); border-color: var(--navy); color: var(--white);
  box-shadow: 0 8px 17px rgba(8, 26, 50, .16);
}
.button.primary:hover:not(:disabled) { background: #144d83; transform: translateY(-2px); }
.button.ghost { background: rgba(255, 255, 255, .08); color: var(--white); border-color: rgba(255, 255, 255, .45); }
.button.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .18); }
.button.subtle { background: var(--pale); }
.button.active { background: #eaf7d7; border-color: var(--lime); color: #3d6b12; }
.button.compact { min-height: 38px; padding: 0 14px; font-size: 12px; }

/* Botones de la portada: mismas proporciones, acentos de marca. */
.button-lime, .button-outline, .button-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 20px;
  min-height: 55px; padding: 0 23px;
  border: 1px solid transparent; border-radius: 15px;
  font-size: 14px; font-weight: 800;
  box-shadow: 0 10px 20px rgba(8, 26, 50, .09);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.button-lime:hover, .button-outline:hover, .button-dark:hover {
  transform: translateY(-3px); box-shadow: 0 16px 30px rgba(8, 26, 50, .16);
}
.button-lime { background: var(--lime); color: var(--navy); }
.button-lime:hover { background: #adeb50; }
.button-outline { border-color: rgba(255,255,255,.5); color: var(--white); background: rgba(255,255,255,.06); box-shadow: none; }
.button-outline:hover { background: rgba(255,255,255,.15); }
.button-dark { background: var(--navy); color: var(--white); }
.button-dark:hover { background: #144d83; }

.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* --- Campos de formulario --- */

.field { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--white); font-weight: 400;
}
.helper { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; font-weight: 400; }
.helper a { color: var(--blue); text-decoration: underline; }
