/* =============================================
   GATO NEGRO — Base & Reset (Bento)
============================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 20px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin-top: var(--space-24);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* =============================================
   LAYOUT
============================================= */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.content-wrap {
  max-width: var(--content-w);
  margin: 0 auto;
}

.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;
}

/* =============================================
   BENTO CELL — Unidad base del sistema
   Toda celda Bento usa esta clase como base
============================================= */

.bento-cell {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.bento-cell:hover {
  background: var(--surface-2);
  border-color: var(--border-md);
}

/* Celda con acento dorado */
.bento-cell--accent {
  background: var(--gold-dim);
  border-color: var(--border-gold);
}

.bento-cell--accent:hover {
  background: rgba(196, 156, 82, 0.18);
}

/* Celda oscura pura */
.bento-cell--dark {
  background: var(--surface-0);
  border-color: var(--border);
}

/* =============================================
   SECTION
============================================= */

.section {
  padding: var(--space-16) 0;
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section__eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: var(--font-bold);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section__title em {
  font-style: normal;
  color: var(--gold);
}

.section__header {
  margin-bottom: var(--space-8);
}

/* =============================================
   BOTONES
============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: -0.01em;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: #0c0c0e;
}

.btn--primary:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 156, 82, 0.3);
}

.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: var(--surface-2);
  border: 1px solid var(--border-md);
  color: var(--text-muted);
}

.btn--ghost:hover {
  background: var(--surface-3);
  border-color: var(--border-gold);
  color: var(--text);
  transform: translateY(-1px);
}

/* Btn icono pequeño circular */
.btn--icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn--icon:hover {
  background: var(--surface-3);
  border-color: var(--border-gold);
  color: var(--gold);
}

/* =============================================
   TAGS / BADGES
============================================= */

.tag {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--font-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

/* =============================================
   SCROLL REVEAL
============================================= */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* =============================================
   FOCUS
============================================= */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================
   SOCIAL LINKS
============================================= */

.social-links {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.social-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--transition);
  background: var(--surface-2);
}

.social-btn:hover {
  border-color: var(--border-gold);
  color: var(--gold);
  background: var(--gold-dim);
  transform: translateY(-2px);
}

/* =============================================
   FOOTER
============================================= */

.footer {
  padding: var(--space-12) 0 var(--space-8);
  margin-top: var(--space-8);
}

.footer__inner {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}

.footer__brand-name span { color: var(--gold); }

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 30ch;
  margin-bottom: var(--space-6);
}

.footer__heading {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}

.footer__link:hover { color: var(--gold); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
  cursor: pointer;
  transition: color var(--transition);
}

.footer__legal-link:hover { color: var(--gold); }

/* =============================================
   KEYFRAMES
============================================= */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* =============================================
   RESPONSIVE BASE
============================================= */

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; --bento-gap: 8px; }
  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-12) 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__inner { padding: var(--space-6); border-radius: var(--radius-lg); }
}
