/* 
 * Latin PRO Design System
 * Theme: Apple Design System (Strict) + Kraken Light Colors
 */

:root {
  /* Colors - Kraken Light Palette */
  --color-bg-base: #F5F5F7;
  /* Apple Light Grey Base */
  --color-bg-card: #FFFFFF;

  --color-primary: #5848d5;
  /* Kraken Purple */
  --color-primary-hover: #4b36b8;
  --color-accent: #E8E5FA;
  /* Very light purple */

  --color-text-main: #1D1D1F;
  /* Apple Black */
  --color-text-secondary: #86868B;
  /* Apple Grey */
  --color-text-tertiary: #6e6e73;

  /* Apple System Grays */
  --gray-100: #f5f5f7;
  --gray-200: #e5e5ea;
  --gray-300: #d1d1d6;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.04);

  /* Spacing */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-pill: 9999px;

  --spacing-unit: 8px;
  /* 8pt Grid */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-8: 64px;
  --space-10: 80px;

  /* Typography - SF Pro */
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text-hero: 56px;
  --text-h1: 40px;
  --text-h2: 32px;
  --text-h3: 24px;
  --text-body: 17px;
  --text-small: 13px;
}

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

body {
  font-family: var(--font-stack);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  line-height: 1.47059;
  /* Apple standard */
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.022em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

/* Typography Helpers */
h1,
h2,
h3 {
  font-weight: 600;
  color: var(--color-text-main);
}

.text-gradient {
  background: linear-gradient(135deg, #1D1D1F 0%, #5841D8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subhead {
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: 0.011em;
}

/* Layout */
.container {
  max-width: 1080px;
  /* Apple typically uses narrower content widths approx 980-1200 */
  margin: 0 auto;
  padding: 0 22px;
}

/* Navigation - Apple Style */
.nav-blur {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  /* Compact Apple height */
  background: rgba(251, 251, 253, 0.85);
  /* Apple nav bg */
  backdrop-filter: blur(20px) saturate(180%);
  z-index: 9999;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  font-size: 13px;
  /* User requested 13px */
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 22px;
}

.nav-logo {
  font-weight: 600;
  font-size: 19px;
  color: #1d1d1f;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* Isotype Style (Black Circle before Text) */
.nav-logo-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-text::before {
  content: '';
  display: block;
  width: 0.8em;
  height: 0.8em;
  background: #000000;
  border-radius: 50%;
  flex-shrink: 0;
  transform: translateY(1px);
  /* Optical alignment */
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  /* Ensure all items are vertically centered */
}

.nav-links a {
  color: #1d1d1f;
  opacity: 0.8;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Dropdown Styles */
.nav-item-dropdown {
  position: relative;
  height: 100%;
  /* Match nav height */
  display: flex;
  align-items: center;
}

/* Safe area bridge using pseudo-element */
.nav-item-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  /* Bridge to menu */
  background: transparent;
}

/* Mega Menu Styles (Full Width Bar) */
.nav-item-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu {
  position: fixed;
  /* Stick to top */
  top: 48px;
  /* Below nav bar */
  left: 0;
  width: 100vw;
  /* Full Viewport Width */
  background: rgba(255, 255, 255, 0.98);
  /* Almost opaque for readability */
  backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  /* Softer shadow */
  padding: 20px 0;
  /* Reduced padding */
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 9998;
  /* Below nav-blur but above content */
  border-radius: 0;
  /* Straight edges */

  /* Flex to center the inner grid */
  display: flex;
  justify-content: center;
  /* Centering the grid container wrapper */
}

.mega-grid {
  display: flex;
  flex-direction: column;
  /* Stack items vertically */
  gap: 4px;
  /* Very tight spacing */
  width: 100%;
  max-width: 1000px;
  /* Match nav-content width */
  padding: 0 22px;
  /* Match nav-content padding */
  align-items: flex-start;
  /* Left align to match Logo */
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 0;
  /* No gap needed as icon is gone */
  padding: 6px 0;
  /* Minimal vertical padding, no horizontal */
  border-radius: 0;
  color: #1d1d1f;
  transition: color 0.2s ease;
  text-align: left;
  width: auto;
  cursor: pointer;
}

.mega-item:hover {
  background: transparent;
  /* No bg change */
}

/* Icon - Hidden */
.mega-icon {
  display: none;
}

/* Hover: Scale text slightly or just color */
.mega-item:hover .mega-text h5 {
  color: var(--color-primary);
}

/* Text Container */
.mega-text {
  display: flex;
  align-items: baseline;
  /* Align text baselines */
  gap: 12px;
}

.mega-text h5 {
  margin: 0;
  font-size: 24px;
  /* Matches 'Multi Dispositivo' H3 */
  font-weight: 600;
  color: #1d1d1f;
  transition: color 0.15s ease;
}

.mega-text span {
  display: block;
  font-size: 14px;
  /* Matches description */
  color: #86868b;
  font-weight: 400;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* Dropdown Styles */
.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  /* Offset from link */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 260px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 100;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  color: #1d1d1f;
  transition: background 0.15s ease;
}

.dropdown-item:hover {
  background: #F5F5F7;
  color: var(--color-primary);
  /* Kraken Purple Text on hover */
}

.dropdown-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  /* Soft Purple Background */
  color: var(--color-primary);
  /* Kraken Purple Icon key */
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.dropdown-item:hover .dropdown-icon {
  background: var(--color-primary);
  color: white;
  /* Invert on hover for premium feel */
}

.dropdown-text h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.dropdown-text span {
  display: block;
  font-size: 11px;
  color: #86868b;
  margin-top: 2px;
}


/* Navigation Enhanced */
.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

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

.search-input {
  background: #E5E5EA;
  /* Apple System Gray 2 */
  border: none;
  border-radius: 8px;
  padding: 8px 12px 8px 36px;
  font-size: 13px;
  width: 160px;
  color: #1d1d1f;
  transition: width 0.3s ease;
}

.search-input:focus {
  outline: none;
  width: 220px;
  background: #d1d1d6;
}

.search-icon-inside {
  position: absolute;
  left: 10px;
  font-size: 12px;
  color: #8a8a8e;
  pointer-events: none;
}

.btn-ghost {
  background: transparent;
  color: #1d1d1f;
  font-weight: 400;
  padding: 6px 12px;
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* FAQ Accordion */
.faq-section {
  padding: 80px 0;
  background: #fbfbfd;
}

.accordion-item {
  border-bottom: 1px solid #e5e5ea;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  background: none;
  border: none;
  font-size: 19px;
  font-weight: 600;
  color: #1d1d1f;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header:hover {
  color: var(--color-primary);
}

.accordion-icon {
  transition: transform 0.3s ease;
  font-size: 14px;
  color: #86868b;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.accordion-content p {
  padding-bottom: 24px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  /* Turn + to x */
}

.accordion-item.active .accordion-content {
  max-height: 200px;
  /* Estimate */
}


/* Contact Form */
.contact-section {
  padding: 80px 0;
  background: white;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 14px;
  /* Increased from 12px */
  font-weight: 600;
  color: #86868b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #d2d2d7;
  font-size: 17px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #fbfbfd;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  /* Increased from 14px */
  font-weight: 600;
  /* Medium */
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.btn-primary {
  background: #0071e3;
  /* Using Apple Blue for action, or Kraken Purple if strict request */
  background: var(--color-primary);
  color: white;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 14px rgba(88, 65, 216, 0.3);
}

.btn-tertiary {
  color: var(--color-primary);
  background: transparent;
  font-weight: 400;
}

.btn-tertiary:hover {
  text-decoration: underline;
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 20px;
  margin: 60px 0;
}

.bento-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  /* Big curves */
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  /* Extremely subtle shadow */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.bento-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Bento Spans */
.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.row-2 {
  grid-row: span 2;
}

/* Hero */
.hero {
  padding-top: 100px;
  padding-bottom: 60px;
  text-align: center;
}

.hero h1 {
  font-size: var(--text-hero);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 30px;
}

.hero-image {
  margin-top: 60px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  background: #fbfbfd;
  border: 1px solid #d2d2d7;
  /* Force aspect ratio or height to ensure it looks substantial */
  min-height: 400px;
  position: relative;
  /* Optional: Make it slightly wider than text if desired, but container constrains it */
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
}

@media (max-width: 900px) {
  .register-unified-card {
    flex-direction: column;
    max-width: 450px;
  }

  .register-visual-side {
    height: 200px;
    flex: none;
  }
}

/* Pricing Cards */
.pricing-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.price-card {
  background: white;
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  width: 300px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.price-card.featured {
  border: 2px solid var(--color-primary);
  position: relative;
}

.price-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.price-card .price {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  display: block;
}

.price-card li {
  margin-bottom: 12px;
  font-size: 15px;
  /* Increased from 14px */
  color: var(--color-text-secondary);
}

/* Footer */
.apple-footer {
  background: #f5f5f7;
  padding: 40px 0;
  font-size: 13px;
  /* User requested 13px */
  color: #86868b;
  border-top: 1px solid #e5e5ea;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.footer-col h5 {
  color: #1d1d1f;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 16px;
  /* Added explicit size */
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #515154;
}

.footer-col a:hover {
  text-decoration: underline;
  color: #1d1d1f;
}


/* Mobile Menu & Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10001;
  /* Above overlay */
  padding: 10px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1d1d1f;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Toggle Animation */
.mobile-toggle.active span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  transform: translateY(-8px) rotate(-45deg);
  width: 24px;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 9998;
  /* Below nav-blur (9999) */
  display: flex;
  /* Flex but hidden via visibility/opacity */
  flex-direction: column;
  padding-top: 80px;
  padding-left: 24px;
  padding-right: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-search {
  position: relative;
  background: #f5f5f7;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #86868b;
  margin-bottom: 20px;
}

.mobile-search input {
  border: none;
  background: transparent;
  font-size: 17px;
  width: 100%;
  outline: none;
}

.mobile-link {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* Responsive Logic */
@media (max-width: 900px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-toggle {
    display: flex;
    position: absolute;
    /* Force it to the right */
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-content {
    justify-content: center;
    /* Center logo if toggle is absolute */
    position: relative;
  }

  .nav-logo,
  .nav-logo-img {
    z-index: 10002;
    /* Ensure logo is above overlay if needed, or clickable */
  }

  .bento-grid {
    display: flex;
    flex-direction: column;
  }

  .hero h1 {
    font-size: 36px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

body.no-scroll {
  overflow: hidden;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Login Page Specifics */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  /* Account for navbar */
  background: #f5f5f7;
  position: relative;
  overflow: hidden;
  /* For the gradient blobs */
}

/* Ambient Background Animation */
.login-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(88, 65, 216, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  animation: blob-pulse 8s infinite ease-in-out;
}

@keyframes blob-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
}

/* Register Page Variant */
.register-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  /* Slightly larger */
  height: 700px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, rgba(88, 65, 216, 0.1) 50%, rgba(255, 255, 255, 0) 70%);
  /* Cyan to Purple */
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  animation: blob-pulse 10s infinite ease-in-out;
  /* Slower breath */
}

.login-card {
  width: 100%;
  max-width: 500px;
  /* Wider to make it look less 'elongated' vertically */
  background: rgba(255, 255, 255, 0.8);
  /* Slight transparency */
  backdrop-filter: blur(20px);
  /* Glass effect */
  padding: 40px;
  /* More padding for a 'square' feel */
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
  z-index: 1;
  /* Above blob */
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Social Login Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  /* Reduced margin */
  color: #86868b;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e5ea;
}

.divider::before {
  margin-right: 12px;
}

.divider::after {
  margin-left: 12px;
}

/* Google Button */
.btn-google {
  background: white;
  border: 1px solid #d2d2d7;
  color: #1d1d1f;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  /* Compact padding */
  border-radius: 8px;
  /* Match form inputs */
}

.btn-google:hover {
  background: #fbfbfd;
  border-color: #c7c7cc;
}

.login-header {
  margin-bottom: 20px;
  /* Reduced */
}

.login-brand {
  font-size: 32px;
  /* Much larger */
  font-weight: 700;
  color: var(--color-primary);
  /* Primary Color */
  margin-bottom: 8px;
  display: block;
  letter-spacing: -0.01em;
}

.login-header h1 {
  font-size: 22px;
  font-weight: 500;
  /* Medium weight */
  margin-bottom: 4px;
  color: #1d1d1f;
}

.login-header p {
  color: #86868b;
  font-size: 13px;
}

.login-form .form-group {
  margin-bottom: 16px;
  /* Tighter spacing */
  text-align: left;
}

.login-form .form-label {
  margin-left: 4px;
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  text-transform: none !important;
  /* Force no uppercase */
  letter-spacing: 0;
}

/* Custom Input Style for Login */
.login-form .form-input {
  background: #F5F5F7;
  /* Grey background */
  border: 1px solid transparent;
  /* No visible border initially */
  border-radius: 8px;
  padding: 12px 40px 12px 12px;
  /* Extra padding on right for eye icon */
  transition: all 0.2s ease;
  width: 100%;
  /* Ensure full width */
  box-sizing: border-box;
}

.login-form .form-input:hover,
.login-form .form-input:focus {
  background: white;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(88, 65, 216, 0.1);
}

/* Link style for login footer */
.login-footer-links {
  margin-top: 24px;
  font-size: 13px;
  color: #86868b;
}

.login-footer-links a {
  color: var(--color-primary);
  font-weight: 500;
}

.login-footer-links a:hover {
  text-decoration: underline;
}

/* Password Toggle Wrapper */
.password-wrapper {
  position: relative;
  width: 100%;
}

/* Split Layout for Register */
.register-split-screen {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: white;
}

.register-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
  z-index: 2;
  background: white;
}

.register-right {
  flex: 0 0 50%;
  /* Half width */
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Marketing Card in Right Panel */
.marketing-card {
  width: 80%;
  max-width: 400px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(40px);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.1);
}

/* Feature Grid in Marketing Card */
.register-feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.bento-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 0;
}

/* Precise Spacing Wrapper */
.feature-header {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  /* The source of truth for spacing */
  margin-bottom: 0px !important;
  /* STRICTLY ZERO */
}

.feature-header i {
  margin: 0 !important;
  padding: 0;
  display: block;
  line-height: 1;
  /* reset line height to prevent shifting */
}

.feature-header h3 {
  margin: 0 !important;
  padding: 0;
  line-height: 1.2;
}

/* Feature Icon Standardization */
.feature-icon {
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 24px;
  /* Slightly increased to match visual weight of "Multi Dispositivo" image if needed, or stick to 20px */
  display: block;
  /* Ensures margin is always respected */
}

/* Feature Lists (Clean, stacked items) */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  font-size: 14px;
  /* Increased from 13px */
  color: #86868b;
  margin-bottom: 4px;
  /* Reduced from 6px */
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
  display: block;
}

.feature-item p {
  font-size: 14px;
  color: #86868b;
}

@media (max-width: 900px) {
  .register-right {
    display: none;
    /* Hide visual on mobile */
  }
}

/* Adjusted Login Card for Split Screen (No shadow/border, just clean form) */
.register-left .login-card {
  box-shadow: none;
  border: none;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  max-width: 400px;
}

/* Full Screen Edge-to-Edge Scroll Layout */
.register-unified-card {
  display: flex;
  width: 100%;
  min-height: 100vh;
  /* Force full height */
  background: white;
  margin: 0;
  padding: 0;
}

.register-visual-side {
  flex: 0 0 50%;
  height: 100vh;
  position: relative;
  background: #f0f0f0;
}

.register-visual-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.register-form-side {
  flex: 0 0 50%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;
  padding: 20px;
}

.register-form-side .login-card {
  width: 100%;
  max-width: 420px;
  padding: 0;
}

@media (max-width: 900px) {
  .register-unified-card {
    flex-direction: column;
  }

  .register-visual-side {
    height: 30vh;
    flex: none;
  }

  .register-form-side {
    flex: 1;
    height: auto;
    padding: 40px 20px;
  }
}

/* Flat Mode for Register (Centered but clean) */
/* Flat Mode for Register (Centered but clean) */
.login-page.mode-flat {
  background: white;
  padding: 0;
  display: block;
}

.login-page.mode-flat .login-card {
  box-shadow: none;
  border: none;
  background: transparent;
  backdrop-filter: none;
  max-width: 480px;
  /* Slightly wider for the flat look */
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #86868b;
  transition: color 0.2s ease;
  z-index: 10;
}

/* Custom Checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #515154;
}

.form-check input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 1px solid #d2d2d7;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: white;
}

.form-check input:checked+.checkmark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.checkmark::after {
  content: '\f00c';
  /* FontAwesome check */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: white;
  font-size: 10px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.form-check input:checked+.checkmark::after {
  opacity: 1;
  transform: scale(1);
}

.form-actions-row {
  display: flex;
  justify-content: space-between;
  /* Checkbox left, Link right */
  align-items: center;
  margin-bottom: 24px;
}

/* Button Loading State */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}