/* Clean, Minimalist Design System for FisioIA Landing Page */

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

:root {
  /* Color Palette */
  --primary: #00b088;
  --primary-hover: #009472;
  --primary-light: #e6f7f3;
  --secondary: #0ea5e9;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-700: #475569;
  --slate-900: #0f172a;
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Shadows & Glows */
  --shadow-card: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
  --shadow-glow: 0 0 50px rgba(0, 176, 136, 0.12);
  
  /* Transitions */
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
  
  /* Border Radius */
  --rounded-md: 12px;
  --rounded-lg: 24px;
  --rounded-full: 9999px;
}

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

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--slate-50);
  background-image: 
    radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 176, 136, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(14, 165, 233, 0.02) 0px, transparent 100%);
  color: var(--slate-700);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  
  display: flex;
  flex-direction: column;
  zoom: 1.1; /* Simulates one step of browser zoom (Cmd +) */
}

/* App Header - Tailwind CSS Class Mapping to keep HTML markup identical */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.flex { display: flex; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.text-center { text-align: center; }
.text-2xl { font-size: 1.5rem; }
.font-extrabold { font-weight: 800; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-none { line-height: 1; }
.mb-2 { margin-bottom: 0.5rem; }
.relative { position: relative; }
.pb-2\.5 { padding-bottom: 0.625rem; }
.text-xl { font-size: 1.25rem; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.absolute { position: absolute; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.h-\[5px\] { height: 5px; }
.text-\[\#0F2A4A\] { color: #0F2A4A; }
.text-\[\#00C896\] { color: #00C896; }
.-right-7 { right: -1.75rem; }
.top-1/2 { top: 50%; }
.-translate-y-1/2 { transform: translateY(-35%); }
.inline-flex { display: inline-flex; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }

@media (min-width: 768px) {
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:-right-8 { right: -2rem; }
  .md\:w-6 { width: 1.5rem; }
  .md\:h-6 { height: 1.5rem; }
}

/* Animaciones de la cabecera (Línea y Check) */
@keyframes drawUnderline {
  from {
    stroke-dashoffset: 150;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.animate-draw-underline {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: drawUnderline 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
}

@keyframes checkPop {
  0% {
    transform: translateY(-35%) scale(0);
    opacity: 0;
  }
  50% {
    transform: translateY(-35%) scale(1.25);
  }
  100% {
    transform: translateY(-35%) scale(1);
    opacity: 1;
  }
}
@keyframes drawCheck {
  from {
    stroke-dashoffset: 30;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.animate-check-pop {
  transform-origin: center;
  animation: checkPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
}
.animate-draw-check {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: drawCheck 0.45s cubic-bezier(0.4, 0, 0.2, 1) 1.35s forwards;
}

/* Main Container: Centered Single Screen */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px 24px;
}

.card {
  width: 100%;
  max-width: 480px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--rounded-lg);
  background: linear-gradient(135deg, rgba(0, 176, 136, 0.22), rgba(14, 165, 233, 0.22));
  z-index: -1;
  opacity: 1;
  transition: background var(--transition-normal);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), 0 0 60px rgba(0, 176, 136, 0.25);
}

.card:hover::before {
  background: linear-gradient(135deg, rgba(0, 176, 136, 0.45), rgba(14, 165, 233, 0.45));
}

/* Copywriting */
.headline-area {
  margin-bottom: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 6px 14px;
  border-radius: var(--rounded-full);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(0, 176, 136, 0.15);
}

.badge .pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

h1 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  color: var(--slate-900);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

h1 span {
  color: var(--primary);
}

.subtitle {
  font-size: 0.95rem;
  color: var(--slate-700);
  line-height: 1.5;
}

/* Form Styling */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

input[type="email"] {
  width: 100%;
  padding: 16px 16px 16px 44px;
  border: 2px solid var(--primary);
  background-color: #ffffff;
  border-radius: var(--rounded-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--slate-900);
  box-shadow: 0 0 0 4px rgba(0, 176, 136, 0.08);
  transition: all var(--transition-fast);
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

input[type="email"]:hover,
input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-hover);
  background-color: #ffffff;
  box-shadow: 0 0 0 5px rgba(0, 148, 114, 0.18);
}

input[type="email"]:hover + .input-icon,
input[type="email"]:focus + .input-icon {
  color: var(--primary-hover);
}

.btn {
  width: 100%;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 16px 24px;
  border-radius: var(--rounded-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 176, 136, 0.2);
  transition: all var(--transition-fast);
}

.btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 176, 136, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.privacy-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--slate-700);
  margin-top: 16px;
}

.privacy-banner svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Success Flow styling */
.success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-icon {
  width: 56px;
  height: 56px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.success-message h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.success-message p {
  font-size: 0.9rem;
  color: var(--slate-700);
  margin-bottom: 20px;
}

.success-message strong {
  color: var(--slate-900);
}

.reset-link {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8rem;
  transition: color var(--transition-fast);
}

.reset-link:hover {
  color: var(--primary-hover);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Minimalist Footer */
footer {
  padding: 24px 0;
  font-size: 0.75rem;
  color: var(--slate-700);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Mobile adjustments (Reels Traffic) */
@media (max-width: 480px) {
  main {
    padding: 80px 16px 40px 16px;
  }
  
  .card {
    padding: 32px 20px;
    border-radius: var(--rounded-md);
  }
  
  h1 {
    font-size: 1.6rem;
  }
}

/* Animated Premium Background Blobs */
.blob-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  -webkit-filter: blur(140px);
  opacity: 0.16;
  pointer-events: none;
  will-change: transform;
}

.blob-1 {
  background-color: #00C896;
  width: 550px;
  height: 550px;
  top: -15%;
  left: -15%;
  animation: float-blob-1 25s infinite alternate ease-in-out;
}

.blob-2 {
  background-color: #0ea5e9;
  width: 650px;
  height: 650px;
  bottom: -20%;
  right: -15%;
  animation: float-blob-2 30s infinite alternate ease-in-out;
}

.blob-3 {
  background-color: #00c896;
  width: 450px;
  height: 450px;
  top: 35%;
  left: 60%;
  animation: float-blob-3 22s infinite alternate ease-in-out;
}

@keyframes float-blob-1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(100px, 80px) scale(1.15);
  }
  100% {
    transform: translate(-50px, 150px) scale(0.9);
  }
}

@keyframes float-blob-2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-120px, -80px) scale(0.85);
  }
  100% {
    transform: translate(60px, -150px) scale(1.1);
  }
}

@keyframes float-blob-3 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(140px, -110px) scale(1.25);
  }
  100% {
    transform: translate(-80px, 50px) scale(0.8);
  }
}
