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

/* ─────────────────────────────────────────────
   DESIGN TOKENS: ASTURIAS (Luz, Verde, Niebla)
───────────────────────────────────────────── */
:root {
  /* Palette */
  --bg-base: #f0f4f1; /* Verde niebla muy claro */
  --bg-surface: #ffffff;
  --border-subtle: rgba(25, 60, 40, 0.06);
  --border-glass: rgba(25, 60, 40, 0.12);

  /* Typography Colors */
  --text-primary: #153020; /* Verde bosque profundo */
  --text-secondary: #4a6655; /* Verde musgo suave */
  --text-accent: #2e7d32; /* Verde vivo agradable */

  /* Fog & Glow */
  --fog-base: rgba(255, 255, 255, 0.6);
  --fog-dense: rgba(240, 244, 241, 0.9);

  /* Motion */
  --ease-silk: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
}

/* ─────────────────────────────────────────────
   CANVAS RAIN (Orbayu de día)
───────────────────────────────────────────── */
#rain-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─────────────────────────────────────────────
   FOG LAYER (Niebla asturiana animada)
───────────────────────────────────────────── */
.ambient-glow {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, var(--fog-base) 10%, transparent 60%),
    radial-gradient(circle at 30% 70%, rgba(255,255,255,0.8) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.7) 0%, transparent 50%);
  animation: float-fog 20s ease-in-out infinite alternate;
}

@keyframes float-fog {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 3%) scale(1.05); }
  100% { transform: translate(2%, -2%) scale(0.95); }
}

/* ─────────────────────────────────────────────
   GLASS CARD (Clara y cercana)
───────────────────────────────────────────── */
.glass-card {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 12px; /* Más amigable, menos rígido */
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 12px 40px rgba(20, 50, 30, 0.06),
    0 0 0 1px var(--border-subtle) inset;
  transition: transform 0.4s var(--ease-silk), box-shadow 0.4s var(--ease-silk);
  width: min(520px, 100%);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 50px rgba(20, 50, 30, 0.1),
    0 0 0 1px rgba(25, 60, 40, 0.18) inset;
}

/* ─────────────────────────────────────────────
   TYPOGRAPHY & ELEMENTS
───────────────────────────────────────────── */
.display-heading {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 1.25rem;
}

.display-heading em {
  font-style: italic;
  color: var(--text-accent);
}

.label-mono {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.glass-card > .label-mono {
  display: block;
  margin-bottom: 1.75rem;
  color: var(--text-accent);
}

.body-copy {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 32ch;
  margin: 0 auto 2.5rem;
}

.orbayu-divider {
  width: 40px;
  height: 2px;
  background: var(--text-accent);
  opacity: 0.3;
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.status-container {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid var(--border-glass);
  border-radius: 30px; /* Amigable */
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.5);
}

.status-text {
  color: var(--text-primary);
  margin-bottom: 0 !important;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-accent);
  animation: pulse-dot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4); }
  50%       { opacity: 0.8; transform: scale(0.9); box-shadow: 0 0 0 6px rgba(46, 125, 50, 0); }
}

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

.reveal {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-silk) forwards;
}

.reveal-1 { animation-delay: 0.15s; }
.reveal-2 { animation-delay: 0.35s; }
.reveal-3 { animation-delay: 0.55s; }
.reveal-4 { animation-delay: 0.75s; }
.reveal-5 { animation-delay: 0.95s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: translateY(0); }
  .status-dot { animation: none; }
  .ambient-glow { animation: none; }
}
