/* Landing "Próximamente" stylesheet — independent from styles.css (not loaded by this page)
   but redefines the same brand variables so the look stays consistent with sitio-completo.html. */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #13385c;
  --secondary: #5f9fa9;
  --secondary-light: #79b9c0;
  --accent: #76c08e;
  --accent-bg: #eaf6ee;
  --primary-bg: #eef4f8;
  --background: #f4f8f9;
  --surface: #ffffff;
  --text: #2c3e50;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --error: #c0392b;
  --shadow-md: 0 12px 32px rgba(19, 56, 92, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.2s ease;
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(160deg, var(--primary-bg) 0%, var(--background) 60%);
  background-size: 200% 200%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  animation: drift-bg 18s ease-in-out infinite;
}

.landing {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  animation: card-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Entrance choreography: each direct child of the card steps in slightly after the previous
   one. nth-child covers the fixed markup order (lang switcher, logo, badge, title, …). */
.landing>* {
  animation: item-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing>*:nth-child(1) {
  animation-delay: 0.05s;
}

.landing>*:nth-child(2) {
  animation-delay: 0.1s;
}

.landing>*:nth-child(3) {
  animation-delay: 0.15s;
}

.landing>*:nth-child(4) {
  animation-delay: 0.2s;
}

.landing>*:nth-child(5) {
  animation-delay: 0.25s;
}

.landing>*:nth-child(6) {
  animation-delay: 0.3s;
}

.landing>*:nth-child(7) {
  animation-delay: 0.35s;
}

.landing>*:nth-child(8) {
  animation-delay: 0.4s;
}

.landing>*:nth-child(9) {
  animation-delay: 0.45s;
}

.landing>*:nth-child(10) {
  animation-delay: 0.5s;
}

.landing-lang-switcher {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 4px;
}

.lang-option-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-option-btn:hover {
  background: var(--primary-bg);
  transform: translateY(-1px);
}

.lang-option-btn:active {
  transform: translateY(0) scale(0.95);
}

.lang-option-btn.active {
  border-color: var(--secondary-light);
  background: var(--accent-bg);
  color: var(--primary);
  animation: pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.landing-logo {
  height: 56px;
  margin: 8px auto 20px;
  display: block;
  animation: logo-float 5s ease-in-out infinite;
}

.landing-logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.landing-badge {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  animation: badge-pulse 2.6s ease-in-out infinite;
}

.landing-title {
  font-family: var(--font-title);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 8px;
}

.landing-tagline {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--secondary);
  margin-bottom: 16px;
}

.landing-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.landing-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.landing-field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.landing-email-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--text);
  transition: var(--transition), box-shadow 0.2s ease, transform 0.15s ease;
}

.landing-email-input:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px var(--accent-bg);
  transform: translateY(-1px);
}

.landing-submit-btn {
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white, #fff);
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  cursor: pointer;
  transition: var(--transition), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.landing-submit-btn:hover:not(:disabled) {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px var(--secondary);
}

.landing-submit-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.landing-submit-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.landing-submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.landing-submit-btn.is-sending {
  animation: breathe 1.4s ease-in-out infinite;
}

.landing-submit-btn.is-success {
  animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Honeypot: hidden from sighted users and keyboard tab order, but present in the DOM so
   bots that blindly fill every input still get caught (aria-hidden + tabindex="-1" alone,
   per the brief — no "display:none" so naive scrapers that skip hidden fields still fill it). */
.landing-honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.landing-status {
  min-height: 1.4em;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 4px;
}

.landing-status[data-state] {
  animation: status-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-status[data-state="success"] {
  color: var(--accent);
}

.landing-status[data-state="error"] {
  color: var(--error);
  animation: status-in 0.3s cubic-bezier(0.16, 1, 0.3, 1), shake 0.4s ease;
}

.landing-status[data-state="sending"] {
  color: var(--text-muted);
}

.landing-privacy-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.5;
}

.landing-instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  color: var(--primary);
  transition: var(--transition), transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.landing-instagram-link:hover {
  color: var(--secondary);
  transform: scale(1.15) rotate(-6deg);
}

.landing-instagram-link:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 999px;
}

.landing-footer {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.landing-noscript {
  text-align: center;
  padding: 10px 16px;
  background: var(--accent-bg);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.heartbeat {
  display: inline-block;
  color: var(--error, #e0575b);
  animation: heartbeat 1.1s ease-in-out infinite;
  transform-origin: center;
}

@media (max-width: 480px) {
  .landing {
    padding: 32px 20px;
  }

  .landing-title {
    font-size: 1.6rem;
  }
}

/* --- Keyframes --- */

@keyframes drift-bg {

  0%,
  100% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 100%;
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes item-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes logo-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes badge-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-bg);
  }

  50% {
    box-shadow: 0 0 0 6px transparent;
  }
}

@keyframes pop-in {
  0% {
    transform: scale(0.9);
  }

  60% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes breathe {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 0.9;
  }
}

@keyframes status-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

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

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-4px);
  }

  40% {
    transform: translateX(4px);
  }

  60% {
    transform: translateX(-3px);
  }

  80% {
    transform: translateX(3px);
  }
}

/* Two beats per cycle, like a real heartbeat (lub-dub), then a pause — not a steady throb. */
@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.3);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.3);
  }

  70% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
