/* ============================================================
   CreativePixeLamb — Design System
   Basado en la estética de Zenth:
   Académica oscura · Tipografía serif · Acento dorado
   ------------------------------------------------------------
   ESTE ARCHIVO ES LA FUENTE DE VERDAD DEL ESTILO.
   Es idéntico en /empresa y /cv. Si lo cambias, replícalo
   en ambos (ver CLAUDE.md → "Sistema de diseño").
   ============================================================ */

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

/* ── Variables (tokens Zenth) ──────────────────────────────── */
:root {
  --bg:         #0d0f14;
  --bg2:        #131720;
  --bg3:        #1a1f2e;
  --card:       #1e2336;
  --border:     #2a3050;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim:   rgba(201,168,76,.15);
  --teal:       #3ecfcf;
  --red:        #e05252;
  --green:      #4ade80;
  --text:       #e8e6df;
  --text2:      #9a9db5;
  --text3:      #6b6e85;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,.45);
  --shadow-gold:0 0 24px rgba(201,168,76,.2);
  --transition: .2s cubic-bezier(.4,0,.2,1);
  --max-width:  1140px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Tipografía ────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
p  { color: var(--text2); }
a  { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
code, .mono { font-family: 'DM Mono', monospace; font-size: .9em; }
::selection { background: var(--gold-dim); color: var(--gold-light); }

/* Texto con acento dorado (degradado) para títulos destacados */
.text-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Contenedor / layout helpers ───────────────────────────── */
.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: 1.25rem; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .gap-4 { gap: 2rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.relative { position: relative; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}

/* Espaciado vertical de secciones */
.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem;
}
.section-head p { margin-top: .75rem; font-size: 1.05rem; }

/* ── Card ──────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-4px); }

/* ── Botones ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), #a07830); color: #0d0f14; }
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-1px); box-shadow: var(--shadow-gold); color: #0d0f14; }
.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--text2); }
.btn-ghost:hover { color: var(--text); background: var(--bg3); }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Inputs ────────────────────────────────────────────────── */
.input, .select, .textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  padding: .75rem 1rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.input::placeholder, .textarea::placeholder { color: var(--text3); }
.textarea { resize: vertical; min-height: 130px; }
.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text2); }

/* ── Badge ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .7rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .03em;
}
.badge-gold  { background: var(--gold-dim);      color: var(--gold); }
.badge-teal  { background: rgba(62,207,207,.12); color: var(--teal); }
.badge-green { background: rgba(74,222,128,.12); color: var(--green); }
.badge-neutral { background: var(--bg3); color: var(--text2); }

/* ── Divider ───────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* ── Loader ────────────────────────────────────────────────── */
.loader {
  width: 20px; height: 20px;
  border: 2px solid rgba(13,15,20,.3);
  border-top-color: #0d0f14;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ─────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: .5rem;
}
.toast {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.2rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow); font-size: .9rem; min-width: 260px;
  animation: slideUp .3s ease;
}
.toast-success { border-color: rgba(74,222,128,.4); }
.toast-error   { border-color: rgba(224,82,82,.4); }
.toast-info    { border-color: rgba(201,168,76,.4); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── Animación de aparición al hacer scroll ────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Foco accesible ────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
