:root {
  --primary: #17181A;
  --accent: #C2401B;
  --accent-soft: #FBE4DA;
  --ink: #17181A;
  --neutral: #E9E9EA;
  --neutral-border: #D3D3D4;
  --paper: #FFFFFF;
  --confirmado-bg: #E3F0E6;
  --confirmado-ink: #1a7a3a;
  --font: 'Barlow', sans-serif;
  --radius: 2px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #F2F2F3; color: var(--ink); font-family: var(--font); }
body { overflow-x: hidden; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
@media (max-width: 900px) { .wrap { padding: 0 22px; } }

a { color: inherit; }

/* Header */
.pagehead { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(6px); border-bottom: 1px solid var(--neutral-border); }
.pagehead .wrap { display: flex; justify-content: space-between; align-items: center; padding: 18px 40px; }
.wordmark-small { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; }

/* Buttons */
.btn { font-family: var(--font); font-size: 14.5px; font-weight: 700; padding: 12px 22px; border-radius: var(--radius); border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #2b2c2f; }

/* Hero */
.hero { position: relative; background: var(--paper); border-bottom: 1px solid var(--neutral-border); overflow: hidden; }
.hero-inner { padding: 120px 40px 100px; text-align: center; position: relative; z-index: 2; }
@media (max-width: 900px) { .hero-inner { padding: 80px 22px 64px; } }

.wordmark-hero { font-size: 150px; font-weight: 800; line-height: 1; letter-spacing: -0.01em; margin: 0 0 26px; text-transform: uppercase; perspective: 900px; display: flex; justify-content: center; gap: 0.01em; }
@media (max-width: 900px) { .wordmark-hero { font-size: 72px; } }
@media (max-width: 480px) { .wordmark-hero { font-size: 52px; } }
.wordmark-hero .letter { display: inline-block; transition: transform .2s cubic-bezier(.2,.8,.2,1); transform-origin: center bottom; will-change: transform; }

.hero p.lead { font-size: 17px; max-width: 46ch; line-height: 1.6; opacity: .75; margin: 0 auto; }

/* Alfi, la mascota */
.mascot-scene { position: absolute; top: 50%; right: 7%; width: 160px; z-index: 1; animation: mascot-float 4.5s ease-in-out infinite; }
@media (max-width: 900px) { .mascot-scene { display: none; } }
.mascot-alfi { display: block; width: 100%; height: auto; overflow: visible; transition: transform .2s ease-out; will-change: transform; }
@keyframes mascot-float {
  0%, 100% { transform: translateY(-50%); }
  50%      { transform: translateY(calc(-50% - 14px)); }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-scene { animation: none; top: auto; bottom: 6%; transform: none; }
}

/* Sections */
section.block { background: var(--paper); }
section.block .wrap { padding: 56px 40px 70px; }

/* Apps grid */
.apps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; perspective: 1000px; }
@media (max-width: 760px) { .apps-grid { grid-template-columns: 1fr; } }
.app-card { background: var(--paper); border: 1px solid var(--neutral-border); border-radius: var(--radius); padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 14px; transition: transform .35s ease, box-shadow .35s ease; will-change: transform; }
.app-card:hover { box-shadow: 0 18px 30px -14px rgba(23,24,26,.25); }
.app-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.app-card .name { font-size: 19px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
.app-card .desc { font-size: 14px; line-height: 1.55; opacity: .75; flex: 1; }
.app-card .bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.tag.disponible { background: var(--confirmado-bg); color: var(--confirmado-ink); }
.tag.proximamente { background: var(--neutral); color: var(--ink); }
.app-card .enter { font-size: 13.5px; font-weight: 700; text-decoration: none; color: var(--accent); }
.app-card .enter.disabled { color: #9a9a9c; pointer-events: none; }
.app-card.pending { opacity: .82; }

.apps-note { font-size: 12.5px; opacity: .55; line-height: 1.6; margin-top: 24px; max-width: 68ch; }

footer { background: var(--paper); border-top: 1px solid var(--neutral-border); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; padding: 22px 40px; font-size: 12px; opacity: .6; flex-wrap: wrap; gap: 14px 22px; }
footer .wm { font-weight: 800; opacity: 1; }
footer .footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
footer .footer-links a { text-decoration: none; }
footer .footer-links a:hover { text-decoration: underline; }

/* Legal pages */
.legal-head { background: var(--paper); border-bottom: 1px solid var(--neutral-border); }
.legal-head .wrap { padding: 60px 40px 34px; }
.legal-head .back { display: inline-block; font-size: 13px; font-weight: 600; text-decoration: none; opacity: .6; margin-bottom: 18px; }
.legal-head .back:hover { opacity: 1; }
.legal-head h1 { font-size: 34px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
.legal-head .updated { font-size: 13px; opacity: .55; }

.legal-article { background: var(--paper); }
.legal-article .wrap { max-width: 760px; padding: 46px 40px 80px; }
.legal-article h2 { font-size: 19px; font-weight: 700; margin: 40px 0 12px; }
.legal-article h2:first-child { margin-top: 0; }
.legal-article p, .legal-article li { font-size: 15px; line-height: 1.7; opacity: .85; margin: 0 0 14px; }
.legal-article ul, .legal-article ol { margin: 0 0 14px; padding-left: 22px; }
.legal-article a { color: var(--accent); font-weight: 600; }
.fill-in { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 14px 16px; font-size: 13.5px; line-height: 1.6; margin: 18px 0; }
.fill-in b { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 5px; color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
