/* ─── trespuntos · style.css ──────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,800;1,700;1,800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ─── Variables ────────────────────────────────────────────────────────────── */
:root {
  --yellow:   #F5C400;
  --yellow-d: #D9AC00;
  --black:    #111111;
  --dark:     #1A1A1A;
  --darker:   #141414;
  --mid:      #2A2A2A;
  --border:   #2E2E2E;
  --gray:     #888888;
  --light:    #CCCCCC;
  --bone:     #F0EFE9;
  --violet:   #6B5CE7;
  --white:    #FFFFFF;

  --ff-display: 'Barlow Condensed', sans-serif;
  --ff-body:    'DM Sans', sans-serif;
  --ff-mono:    'Space Mono', monospace;

  --max-w: 1200px;
  --nav-h: 72px;
}

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

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

body {
  font-family: var(--ff-body);
  background: var(--black);
  color: var(--light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ─── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav__logo-word {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav__logo-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.nav__logo-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: block;
}

.nav__logo-dots span:nth-child(1) { background: var(--violet); }
.nav__logo-dots span:nth-child(2) { background: #555; }
.nav__logo-dots span:nth-child(3) { background: var(--yellow); }

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav__links a {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active { color: var(--yellow); }

.nav__cta {
  background: var(--yellow);
  color: var(--black) !important;
  padding: 8px 20px;
  font-family: var(--ff-mono) !important;
  font-weight: 700 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.06em;
  transition: background 0.2s, transform 0.2s !important;
}

.nav__cta:hover { background: var(--yellow-d) !important; transform: translateY(-1px); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── Mobile nav ────────────────────────────────────────────────────────────── */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--darker);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--white);
  transition: color 0.2s;
}

.nav__mobile a:hover { color: var(--yellow); }

/* ─── Section base ──────────────────────────────────────────────────────────── */
.section {
  padding: 120px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section--full {
  padding: 120px 40px;
  width: 100%;
}

.section--dark  { background: var(--darker); }
.section--mid   { background: var(--mid); }
.section--bone  { background: var(--bone); color: var(--black); }
.section--yellow { background: var(--yellow); color: var(--black); }

/* ─── Tag / label ───────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--black);
  padding: 4px 10px;
  margin-bottom: 24px;
  font-weight: 700;
}

.tag--dark {
  background: var(--black);
  color: var(--yellow);
}

.tag--violet {
  background: var(--violet);
  color: var(--white);
}

/* ─── Headings ──────────────────────────────────────────────────────────────── */
.display {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

.display--xl  { font-size: clamp(3.5rem, 9vw, 8rem); }
.display--lg  { font-size: clamp(2.8rem, 6vw, 5.5rem); }
.display--md  { font-size: clamp(2rem, 4vw, 3.5rem); }

.heading {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading--lg { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
.heading--md { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.heading--sm { font-size: 1.1rem; }

/* ─── Body text ─────────────────────────────────────────────────────────────── */
.body-lg { font-size: 1.15rem; line-height: 1.7; color: var(--gray); }
.body-md { font-size: 1rem;    line-height: 1.7; color: var(--gray); }
.body-sm { font-size: 0.875rem; line-height: 1.6; color: var(--gray); }

.mono {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--yellow:hover { background: var(--yellow-d); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn--outline:hover { border-color: var(--yellow); color: var(--yellow); }

.btn--ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}
.btn--ghost:hover { background: var(--black); color: var(--yellow); }

/* ─── Arrow icon ────────────────────────────────────────────────────────────── */
.arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ─── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--dark);
  border: 1px solid var(--border);
  padding: 40px;
  transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
}

.card--light {
  background: var(--white);
  border-color: #E0E0E0;
  color: var(--black);
}

.card--light:hover { border-color: var(--yellow); }

/* ─── Divider ───────────────────────────────────────────────────────────────── */
.divider {
  width: 40px; height: 3px;
  background: var(--yellow);
  margin-bottom: 24px;
}

/* ─── Grid helpers ──────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ─── Stat callout ──────────────────────────────────────────────────────────── */
.stat {
  border-left: 3px solid var(--yellow);
  padding-left: 24px;
}

.stat__number {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: var(--white);
}

.stat__label {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-top: 6px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--darker);
  border-top: 1px solid var(--border);
  padding: 60px 40px 40px;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer__logo-word {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 6px;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--gray);
  font-style: italic;
  margin-top: 10px;
}

.footer__col-title {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
  font-weight: 700;
}

.footer__links { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.footer__links a {
  font-size: 0.9rem;
  color: var(--gray);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--white); }

.footer__bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--gray);
}

/* ─── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideRight {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

.anim-fade-up    { animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) both; }
.anim-fade-in    { animation: fadeIn 0.6s ease both; }
.anim-delay-1    { animation-delay: 0.15s; }
.anim-delay-2    { animation-delay: 0.3s; }
.anim-delay-3    { animation-delay: 0.45s; }
.anim-delay-4    { animation-delay: 0.6s; }

/* scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}

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

/* ─── Noise texture overlay ─────────────────────────────────────────────────── */
.noise::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__hamburger { display: flex; }

  .section, .section--full { padding: 80px 24px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  .display--xl { font-size: 2.8rem; }
  .display--lg { font-size: 2.2rem; }
  .section, .section--full { padding: 60px 20px; }
}
