/* ═══════════════════════════════════════════════════════════════
   CORE.UY — NEURAL LANDING BASE
   ═══════════════════════════════════════════════════════════════ */

:root {
  --background: #09090b;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.15);
  --primary: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.7);
  --secondary: #4A90E2;
  --accent: #4A90E2;
  --radius: 24px;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--background);
  color: var(--primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ── ESPACIADO GENERAL ── */
section {
  padding: 120px 80px;
  position: relative;
}
@media (max-width: 768px) {
  section { padding: 80px 24px; }
}

/* ── SECCIÓN FLOTANTE ── */
.section-float {
  max-width: 1360px;
  margin: 0 auto 40px;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}
@media (max-width: 1400px) {
  .section-float { margin: 0 40px 40px; }
}
@media (max-width: 768px) {
  .section-float { margin: 0 16px 24px; border-radius: 20px; }
}

.max {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.max-md {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* ── NAVBAR ── */
/* ── FLOATING CTA ── */
.floating-cta {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: 0.3s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.floating-cta:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hover);
}
@media (max-width: 768px) {
  .floating-cta {
    top: 12px;
    right: 12px;
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* ── HERO BACKGROUND (fixed) ── */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-bg-blur {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Blur mask: 0 at top half, grows to 16px at bottom */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, black 80%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 40%, black 80%, black 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, transparent 40%, rgba(9,9,11,0.5) 80%, rgba(9,9,11,0.85) 100%);
}

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 120px 40px 0;
  position: relative;
  text-align: center;
}

.hero-centered {
  justify-content: space-between;
}

.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.0;
  margin-bottom: 28px;
  letter-spacing: -0.04em;
}

.hero p {
  font-size: 19px;
  color: var(--text-dim);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.65;
}

/* ── HERO STATS BAR ── */
.hero-stats {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 40px;
  border-top: 1px solid var(--border);
  background: rgba(9,9,11,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2;
}
.hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-stat-val {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .hero { padding: 100px 24px 0; }
  .hero-stats { flex-direction: column; gap: 24px; padding: 24px; }
  .hero-stat-divider { width: 40px; height: 1px; }
}

/* ── GLOWS / LUCES ── */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.glow-blue {
  width: 500px;
  height: 500px;
  background: #4A90E2;
  top: 10%;
  left: -10%;
}
.glow-purple {
  width: 400px;
  height: 400px;
  background: #4A90E2;
  bottom: 10%;
  right: -5%;
}

/* ── BOTONES ── */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: black;
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: 0.3s;
}
.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255,255,255,0.2);
}

.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: white;
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: 0.3s;
}
.button-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hover);
}

.hero-btns {
  display: flex;
  gap: 16px;
}
@media (max-width: 1024px) {
  .hero-btns { justify-content: center; }
}

/* ── CARDS & GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 32px;
  transition: 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.11);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  color: var(--primary);
}
.card-icon.accent-barbershop {
  color: #b45309;
  background: rgba(180, 83, 9, 0.1);
  border-color: rgba(180, 83, 9, 0.2);
}
.card-icon.accent-coffee {
  color: #7c4a1e;
  background: rgba(124, 74, 30, 0.1);
  border-color: rgba(124, 74, 30, 0.2);
}
.card-icon.accent-reserve {
  color: #2597b2;
  background: rgba(37, 151, 178, 0.1);
  border-color: rgba(37, 151, 178, 0.2);
}
.card-icon.accent-leads {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.2);
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.card-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}
.card-action {
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}
.card:hover .card-action {
  color: white;
}

/* ── GLASSMORPHISM ── */
.glass {
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.05);
}

/* ── TEXTOS Y UTILIDADES ── */
.gradient-text {
  background: linear-gradient(90deg, #4A90E2, #1E3A5F);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-header {
  margin-bottom: 64px;
  max-width: 600px;
}
.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--background);
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--secondary);
}
.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.section-desc {
  font-size: 18px;
  color: var(--text-dim);
}

/* ── ARTICLE (blog) ── */
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article-meta {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.article-meta .tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text);
}
.article h2 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
}
.article h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 12px;
}
.article p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.article p strong, .article li strong {
  color: var(--text);
}
.article ul, .article ol {
  margin: 0 0 24px 24px;
  color: var(--text-dim);
  line-height: 1.75;
}
.article li { margin-bottom: 8px; }
.article blockquote {
  border-left: 3px solid var(--secondary);
  padding: 8px 0 8px 20px;
  margin: 24px 0;
  color: var(--text);
  font-style: italic;
}
.article pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}
.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.article a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── STATS / LOGOS GRID ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
  background: var(--card);
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}
.stat-val {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,0.5));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: white; /* fallback */
}
.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── CTA FINAL ── */
.cta-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.cta-box p {
  font-size: 18px;
  color: var(--text-dim);
  margin: 0 auto 40px;
  max-width: 500px;
}

/* ── CTA BTNS ── */
.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── PLATFORMS GRID ── */
@media (max-width: 900px) {
  .platforms-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .platforms-grid { grid-template-columns: 1fr !important; }
}

/* ── FOOTER ── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 40px 80px;
  border-top: 1px solid var(--border);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-logo img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
@media (max-width: 768px) {
  .footer { flex-direction: column; gap: 24px; padding: 40px 24px; text-align: center; }
  .nav-links { justify-content: center; }
}
.footer-copy {
  color: var(--text-dim);
  font-size: 14px;
}

/* ── CAT ANIMATION ── */
#cat-gatekeeper-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cat-gatekeeper-overlay video {
  height: 100vh;
  width: auto;
  animation: slide-in 3s forwards;
}

#cat-gatekeeper-overlay video.sleeping {
  animation: none;
  transform: translateX(0);
}

@keyframes slide-in {
  from { transform: translateX(100vw); }
  to   { transform: translateX(0); }
}

#cat-gatekeeper-countdown {
  position: absolute;
  top: 20vh;
  left: 35%;
  transform: translateX(-50%);
  font-size: 160px;
  font-weight: bold;
  color: white;
  font-family: sans-serif;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  padding: 60px 60px;
  line-height: 1;
}