@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-main: #000000;
  --bg-alt: #0a0a0a;
  --bg-dark: #000000;
  
  --text-main: #ffffff;
  --text-primary-dark: #ffffff;
  --text-sec: #a1a1aa;
  --text-sec-dark: #a1a1aa;
  --text-micro: #71717a;
  
  --accent: #ffffff;
  --accent-text: #000000;
  --accent-hover: #e4e4e7;
  
  --border-input: rgba(255,255,255,0.1);
  --border-focus: #ffffff;
  --border-divider: #27272a;

  --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  --font-logo: 'Inter', sans-serif;
  --max-content: 800px;
  --max-read: 600px;
  --max-form: 480px;
}

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

body {
  font-family: var(--font-apple);
  background-color: transparent;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

html {
  background-color: var(--bg-main);
  overflow-x: hidden;
  width: 100%;
}

/* Video de Fondo Dinámico */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 110%;
  height: 110%;
  transform: translate(-5%, -5%);
  object-fit: cover;
  z-index: -2;
  opacity: 0.25;
  pointer-events: none;
}

/* El degradado de Negro a Blanco a Iluminado (Glowing Mesh) */
body::before {
  content: '';
  position: fixed;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 90vh;
  background: radial-gradient(ellipse at top, rgba(255,255,255,0.25) 0%, rgba(200,200,200,0.05) 40%, rgba(0,0,0,0) 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; transition: color 0.3s ease; }

.section {
  padding: 120px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

@media (max-width: 640px) { .section { padding: 90px 20px; } }

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-main);
}

.text-sec { color: var(--text-sec); font-weight: 400; }
.text-micro { color: var(--text-micro); font-size: 13px; font-weight: 500;}

/* Pantalla selector de idioma (Root) */
.lang-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  gap: 1.5rem;
}
.lang-root h1 {
  font-family: var(--font-logo);
  font-size: clamp(48px, 8vw, 88px);
  margin-bottom: 24px;
}

.stagger-logo > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(15px);
  animation: logoReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.logo-mojis {
  animation-delay: 0.3s !important;
}

.logo-diary {
  animation-delay: 0.8s !important;
}

.logo-ia {
  background: linear-gradient(
    135deg, 
    #ffffff 0%, 
    #f8fafc 25%, 
    #ffffff 50%, 
    #e2e8f0 75%, 
    #ffffff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
  display: inline-block;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  animation: shine 4s linear infinite !important;
  animation-delay: 1s !important;
}

@keyframes logoReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}
.lang-sub {
  color: var(--text-sec);
  font-size: 18px;
  max-width: 480px;
  text-align: center;
  margin-bottom: 40px;
}
.lang-links {
  display: flex;
  gap: 32px;
}
.lang-links a {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(255,255,255,0.05);
  padding: 16px 32px;
  border-radius: 100px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}
.lang-links a:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  justify-content: center;
  padding-bottom: 80px; 
}

.hero-headline {
  font-family: "Playfair Display", "Lora", Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #ffffff;
  max-width: 900px;
  margin-bottom: 32px;
}
.hero-hl-sub {
  color: var(--text-sec);
  font-style: italic;
}

.hero-sub {
  color: var(--text-sec);
  max-width: 520px;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 56px;
}

.email-form {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  max-width: var(--max-form);
  margin-bottom: 16px;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transition: border-color 0.3s ease;
}

.email-form:focus-within {
  border-color: rgba(255,255,255,0.4);
}

@media (max-width: 480px) {
  .email-form {
    flex-direction: column;
    border-radius: 20px;
  }
}

.input-email {
  flex: 1;
  padding: 16px 24px;
  font-size: 18px;
  font-family: inherit;
  border: none;
  background: transparent;
  color: var(--text-main);
  outline: none;
}
.input-email::placeholder { color: #52525b; }

.btn-submit {
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  background-color: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-submit:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
.form-msg { font-size: 14px; margin-top: 8px; min-height: 20px; color: var(--text-sec); }
.form-msg.error { color: #ef4444; }

.success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.success-state.active { display: flex; }
.success-headline { font-size: 40px; font-weight: 800; margin-bottom: 32px; letter-spacing: -0.05em;}

.success-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 32px;
  width: 100%;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}
.success-box:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }
.success-box p { margin-bottom: 16px; font-size: 18px; color: var(--text-main); font-weight: 500;}

.success-link {
  display: inline-block;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(255,255,255,0.1);
  padding: 16px 32px;
  border-radius: 100px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}
.success-link:hover { background: rgba(255,255,255,0.2); transform: scale(1.02);}

.problem-section { background-color: rgba(10, 10, 10, 0.6); backdrop-filter: blur(10px); position: relative; }
.problem-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.problem-block { max-width: var(--max-read); font-size: clamp(20px, 4vw, 24px); font-weight: 500; line-height: 1.6; color: var(--text-main); }
.problem-block.bridge { color: var(--text-sec); font-weight: 400; }
.separator { width: 40px; height: 2px; background-color: var(--border-divider); margin: 60px auto; border-radius: 2px; }

.newsletter-section { position: relative; background-color: transparent; width: 100%; color: #000000; padding: 60px 20px; }
.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120vw; height: 100%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 35%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}
.newsletter-title { font-family: "Playfair Display", "Lora", Georgia, serif; font-weight: 400; font-size: clamp(32px, 5vw, 48px); margin-bottom: 80px; color: #000000; text-align: center; }
.nl-block {
  max-width: 800px; margin: 0 auto;
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  transition: transform 0.3s ease;
}
.nl-block:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  margin-bottom: 80px;
}
@media (min-width: 768px) {
  .nl-block {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }
}
.nl-block:hover { transform: translateX(8px); }
.nl-label { flex-shrink: 0; width: 180px; display: block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.15em; color: #444444; margin-top: 6px; }
.nl-desc { flex: 1; font-size: 20px; color: #000000; line-height: 1.6; font-weight: 500; }

.author-section { background-color: rgba(10, 10, 10, 0.6); backdrop-filter: blur(10px); }
.author-content { max-width: var(--max-read); }
.avatar-img {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; display: block;
  margin: 0 auto 40px auto;
  box-shadow: 0 10px 40px rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.05);
}
.author-text { font-size: 20px; line-height: 1.7; color: var(--text-sec); margin-bottom: 32px; }

.future-section {
  background-color: #f9fafb;
  position: relative;
  overflow: hidden;
}
.future-section::before { display: none; }
.future-content { max-width: 640px; position: relative; z-index: 1; }
.future-headline { color: #000000; font-weight: 800; font-size: clamp(32px, 5vw, 44px); line-height: 1.15; margin-bottom: 32px; }
.future-text { font-size: 20px; color: #111111; margin-bottom: 24px; line-height: 1.6; font-weight: 600; }

.cta-section { background-color: rgba(10, 10, 10, 0.6); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,0.05); }
.cta-list { max-width: var(--max-form); margin: 48px auto; text-align: left; }
.cta-item { display: flex; align-items: flex-start; gap: 16px; font-size: 17px; color: var(--text-sec); margin-bottom: 24px; line-height: 1.5; }
.check { color: var(--text-main); font-weight: 900; flex-shrink: 0; background: rgba(255,255,255,0.1); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 13px; }

footer { border-top: 1px solid #e5e7eb; padding: 60px 20px 80px 20px; text-align: center; background: #ffffff; color: #000000; }
footer .text-micro { color: #111111; font-weight: 600; }
.footer-nav { margin-top: 32px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.footer-link { color: #4b5563; font-size: 15px; font-weight: 600; }
.footer-link:hover { color: #000000; }

.scroll-arrow {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  opacity: 0.3; cursor: pointer; animation: bounce 2.5s infinite; padding: 10px;
}
.scroll-arrow:hover { opacity: 0.8; }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

.fade-in-section {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.fade-in-section.is-visible { opacity: 1; transform: none; }
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.hidden { display: none !important; }

/* Loading Dots Animation */
.loader-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.loader-dots span {
  width: 6px;
  height: 6px;
  background-color: currentColor;
  border-radius: 50%;
  display: inline-block;
  animation: dot-pulse 1.4s infinite ease-in-out both;
}
.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dot-pulse {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

.stagger-1, .stagger-2, .stagger-3 {
  opacity: 0;
  animation: fade-in-up 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.stagger-1 { animation-delay: 0.4s; }
.stagger-2 { animation-delay: 1.4s; }
.stagger-3 { animation-delay: 2.4s; }
