/* ============================================================
   🎨 FOUNDERSHUB — PREMIUM DESIGN SYSTEM (styles.css)
   ============================================================ */

/* --- 1. CONFIGURACIÓN Y TIPOGRAFÍA --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* --- Brand Colors (RGB format for alpha adjustments) --- */
  --primary-rgb: 249, 115, 22;     /* Orange 500 */
  --primary-light-rgb: 253, 186, 116; /* Orange 300 */
  --primary-dark-rgb: 234, 88, 12;   /* Orange 600 */
  
  --secondary-rgb: 245, 158, 11;   /* Amber 500 */
  --accent-rgb: 244, 63, 94;       /* Rose 500 */
  
  --success-rgb: 16, 185, 129;     /* Emerald 500 */
  --error-rgb: 239, 68, 68;         /* Red 500 */
  --warning-rgb: 234, 179, 8;      /* Yellow 500 */

  /* --- Surface & Background (Light Mode) --- */
  --bg-color: #faf8f5;             /* Warm Alabaster Cream */
  --surface-color: #faf5ef;        /* Warm Stone 50 */
  --surface-dim: #e7ded4;          /* Warm Stone 200 */
  --surface-bright: #fdfaf6;       /* Warm Cream */
  
  /* --- Typography & Text --- */
  --text-main: #1c1917;            /* Stone 900 */
  --text-muted: #44403c;           /* Stone 700 */
  --text-subtle: #78716c;          /* Stone 500 */
  --text-inverted: #ffffff;
  
  /* --- Borders & UI Elements --- */
  --border-color: #d6d3d1;         /* Stone 300 */
  --border-strong: #78716c;        /* Stone 500 */
  --input-bg: rgba(250, 245, 239, 0.8);
  
  /* --- Shadows & Blur --- */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 25px -5px rgba(249, 115, 22, 0.35);
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-blur: blur(16px);
  
  /* --- Border Radius & Spacing --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Dark Theme Overrides --- */
html.dark {
  --bg-color: #1c1917;             /* Stone 900 */
  --surface-color: #292524;        /* Stone 800 */
  --surface-dim: #44403c;          /* Stone 700 */
  --surface-bright: #57534e;       /* Stone 600 */
  
  --text-main: #fafaf9;            /* Stone 50 */
  --text-muted: #d6d3d1;           /* Stone 300 */
  --text-subtle: #a8a29e;          /* Stone 400 */
  --text-inverted: #1c1917;
  
  --border-color: #44403c;         /* Stone 700 */
  --border-strong: #a8a29e;        /* Stone 400 */
  --input-bg: rgba(41, 37, 36, 0.7);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.45), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px -5px rgba(251, 146, 60, 0.3);
  
  --glass-bg: rgba(41, 37, 36, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --primary-rgb: 251, 146, 60;     /* Orange 400 (mejora contraste sobre oscuro) */
  --primary-light-rgb: 253, 186, 116; /* Orange 300 */
  --primary-dark-rgb: 249, 115, 22;   /* Orange 500 */
}

/* --- Dark Theme Body Glowing Background --- */
html.dark body {
  background-image: radial-gradient(circle at 20% 15%, rgba(251, 146, 60, 0.07) 0%, transparent 55%),
                    radial-gradient(circle at 80% 45%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 15% 75%, rgba(244, 63, 94, 0.04) 0%, transparent 50%);
}

/* --- 2. BASE ESTILOS --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  background-image: radial-gradient(circle at 20% 15%, rgba(var(--primary-rgb), 0.09) 0%, transparent 55%),
                    radial-gradient(circle at 80% 45%, rgba(var(--secondary-rgb), 0.06) 0%, transparent 50%),
                    radial-gradient(circle at 15% 75%, rgba(var(--accent-rgb), 0.05) 0%, transparent 50%);
  background-attachment: scroll;
  background-size: cover;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base), background-image var(--transition-base);
}

::selection {
  background-color: rgba(var(--primary-rgb), 0.3);
  color: var(--text-main);
}

/* --- 3. LAYOUT & CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- 4. HEADER & NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 100;
  background-color: rgba(var(--primary-rgb), 0.01);
  transition: all var(--transition-base);
}

header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  height: 70px;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-main);
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgb(var(--primary-rgb)), rgb(var(--primary-dark-rgb)));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px -2px rgba(var(--primary-rgb), 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.logo-text {
  background: linear-gradient(135deg, var(--text-main), rgb(var(--primary-rgb)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- Theme Toggle --- */
.theme-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.theme-btn:hover {
  background-color: var(--surface-color);
  color: var(--text-main);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.theme-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.theme-btn .sun-icon { display: none; }
.theme-btn .moon-icon { display: block; }
html.dark .theme-btn .sun-icon { display: block; }
html.dark .theme-btn .moon-icon { display: none; }

/* --- 5. HERO SECTION --- */
.hero {
  position: relative;
  padding: 160px 0 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 10;
}

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(var(--primary-rgb), 0.1);
  color: rgb(var(--primary-rgb));
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  animation: pulse-glow 3s infinite ease-in-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(135deg, rgb(var(--primary-rgb)) 0%, rgb(var(--primary-dark-rgb)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(var(--primary-rgb), 0.25);
  border-radius: 2px;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px auto;
  font-weight: 400;
}

/* --- Buttons System --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, rgb(var(--primary-rgb)), rgb(var(--primary-dark-rgb)));
  color: white;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.5), var(--shadow-glow);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

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

.btn-secondary {
  background-color: var(--surface-color);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--surface-dim);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

/* Floating Shapes Background */
.float-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background-color: rgba(var(--primary-rgb), 0.12);
  top: 15%;
  left: 5%;
}

.shape-2 {
  width: 250px;
  height: 250px;
  background-color: rgba(var(--secondary-rgb), 0.08);
  bottom: 10%;
  right: 8%;
}

/* --- 6. BENEFITS SECTION --- */
.benefits {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgb(var(--primary-rgb));
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.grid-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: rgba(var(--primary-rgb), 0.08);
  color: rgb(var(--primary-rgb));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all var(--transition-base);
}

.benefit-card:hover .benefit-icon {
  background-color: rgb(var(--primary-rgb));
  color: white;
  transform: scale(1.05);
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-main);
}

.benefit-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- 7. WHITELIST REGISTER SECTION --- */
.whitelist-section {
  padding: 100px 0;
  position: relative;
}

.glass-panel {
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 60px;
  box-shadow: var(--shadow-xl);
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgb(var(--primary-rgb)), rgb(var(--secondary-rgb)));
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h3 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.form-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.whitelist-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-group label .required {
  color: rgb(var(--error-rgb));
}

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

.input-icon-wrapper {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}

.input-icon-wrapper svg {
  color: var(--text-subtle);
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: color var(--transition-fast);
}

.input-container.is-invalid > svg,
.input-container.is-invalid .input-icon-wrapper svg {
  color: rgb(var(--error-rgb)) !important;
}

.input-container > svg {
  position: absolute;
  left: 14px;
  color: var(--text-subtle);
  width: 18px;
  height: 18px;
  pointer-events: none;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.domain-favicon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  animation: fade-in-scale 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fade-in-scale {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-base);
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-control:hover {
  border-color: var(--border-strong);
}

.form-control:focus {
  outline: none;
  border-color: rgb(var(--primary-rgb));
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
  background-color: var(--bg-color);
}

.form-control.is-invalid {
  border-color: rgb(var(--error-rgb));
  background-color: rgba(var(--error-rgb), 0.02);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(var(--error-rgb), 0.15);
}

.error-message {
  font-size: 0.8rem;
  color: rgb(var(--error-rgb));
  margin-top: 4px;
  display: none;
}

/* GDPR Checkboxes */
.gdpr-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.checkbox-group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-dummy {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all var(--transition-fast);
}

.checkbox-group:hover .checkbox-dummy {
  border-color: var(--border-strong);
}

.checkbox-group input[type="checkbox"]:checked ~ .checkbox-dummy {
  background-color: rgb(var(--primary-rgb));
  border-color: rgb(var(--primary-rgb));
  box-shadow: 0 2px 5px rgba(var(--primary-rgb), 0.2);
}

.checkbox-dummy svg {
  width: 12px;
  height: 12px;
  stroke: white;
  stroke-width: 3;
  fill: none;
  display: none;
}

.checkbox-group input[type="checkbox"]:checked ~ .checkbox-dummy svg {
  display: block;
}

.checkbox-group.is-invalid .checkbox-dummy {
  border-color: rgb(var(--error-rgb));
  background-color: rgba(var(--error-rgb), 0.02);
}

.checkbox-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.checkbox-label a {
  color: rgb(var(--primary-rgb));
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.checkbox-label a:hover {
  color: rgb(var(--primary-dark-rgb));
  text-decoration: underline;
}

/* Submit Button & State */
.submit-container {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.whitelist-form .btn-submit {
  width: 100%;
  height: 50px;
  font-size: 1.05rem;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.35);
}

.btn-submit .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn-submit.loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn-submit.loading .btn-text {
  display: none;
}

.btn-submit.loading .spinner {
  display: block;
}

.general-error-alert {
  background-color: rgba(var(--error-rgb), 0.08);
  border: 1px solid rgba(var(--error-rgb), 0.15);
  color: rgb(var(--error-rgb));
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  display: none;
  animation: shake 0.4s ease-in-out;
}

/* Success Confirmation Panel */
.success-panel {
  text-align: center;
  padding: 20px 0;
  display: none;
  animation: scale-up 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon-container {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: rgba(var(--success-rgb), 0.1);
  color: rgb(var(--success-rgb));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px auto;
  box-shadow: 0 0 0 8px rgba(var(--success-rgb), 0.03);
}

.success-icon-container svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.success-panel h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.success-panel p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 30px auto;
  font-size: 1.05rem;
}

.success-data-preview {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  max-width: 440px;
  margin: 0 auto 30px auto;
  text-align: left;
}

.success-data-preview p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.success-data-preview p:last-child {
  margin-bottom: 0;
}

.success-data-preview strong {
  color: var(--text-main);
  font-weight: 600;
}

.success-data-preview span {
  color: var(--text-subtle);
}

/* --- 8. PRIVACY POLICY PAGE --- */
.privacy-page {
  padding: 140px 0 80px 0;
}

.privacy-container {
  max-width: 800px;
  margin: 0 auto;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 30px;
  transition: all var(--transition-fast);
}

.btn-back:hover {
  color: rgb(var(--primary-rgb));
  transform: translateX(-3px);
}

.btn-back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.privacy-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.privacy-meta {
  font-size: 0.9rem;
  color: var(--text-subtle);
  margin-bottom: 40px;
  display: block;
}

.privacy-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 36px 0 16px 0;
  letter-spacing: -0.3px;
}

.privacy-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.privacy-content ul {
  padding-left: 20px;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.privacy-content li {
  margin-bottom: 8px;
}

.privacy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.privacy-content th, .privacy-content td {
  border: 1px solid var(--border-color);
  padding: 12px;
  text-align: left;
  font-size: 0.9rem;
}

.privacy-content th {
  background-color: var(--surface-color);
  font-weight: 600;
}

/* --- 9. FOOTER --- */
.premium-footer {
  background-color: rgba(var(--primary-rgb), 0.015);
  position: relative;
  padding: 60px 0 40px 0;
  font-size: 0.9rem;
  color: var(--text-subtle);
  overflow: hidden;
}

/* Divisor resplandeciente difuminado */
.premium-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.25) 50%, transparent);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.footer-brand .logo-icon.small {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgb(var(--primary-rgb)), rgb(var(--primary-dark-rgb)));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3);
}

.footer-brand .logo-icon.small svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.footer-brand .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-main), rgb(var(--primary-rgb)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.3px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: rgb(var(--primary-rgb));
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

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

.footer-links a:hover::after {
  width: 100%;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  border-top: 1px dashed var(--border-color);
  padding-top: 24px;
}

.rgpd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(var(--success-rgb), 0.08);
  border: 1px solid rgba(var(--success-rgb), 0.15);
  color: rgb(var(--success-rgb));
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.rgpd-badge svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.5;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin: 0;
}

/* --- 10. ANIMATIONS --- */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.2);
  }
  50% {
    box-shadow: 0 0 12px 4px rgba(var(--primary-rgb), 0.35);
  }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@keyframes scale-up {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- 11. RESPONSIVENESS --- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-desc {
    font-size: 1.1rem;
  }
  
  .whitelist-form {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .glass-panel {
    padding: 32px 24px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 130px 0 70px 0;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .btn-submit {
    height: 48px;
  }
  
  /* --- Móvil: Evitar que el botón del Navbar ocupe 100% y encoger elementos del Navbar --- */
  .logo {
    gap: 8px;
  }
  
  .logo-icon {
    width: 32px;
    height: 32px;
  }
  
  .logo-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .header-actions {
    gap: 8px;
  }
  
  .theme-btn {
    width: 34px;
    height: 34px;
  }
  
  .header-actions .btn {
    width: auto !important;
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 8px !important;
  }
}

/* ============================================================
   💎 12. MEJORAS PREMIUM ADICIONALES (UX, TOASTS & VALIDACIONES)
   ============================================================ */

/* --- Transiciones Fluidas de Cambio de Tema --- */
body, .glass-panel, .benefit-card, .form-control, .checkbox-dummy, select.form-control, footer, header {
  transition: background-color var(--transition-base), 
              color var(--transition-base), 
              border-color var(--transition-base), 
              box-shadow var(--transition-base), 
              transform var(--transition-base);
}

/* Espiral Animada del Botón del Tema (360° Rotate) */
.theme-btn svg {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity var(--transition-fast);
}
.theme-btn:hover svg {
  transform: rotate(45deg);
}
.theme-btn:active svg {
  transform: rotate(90deg) scale(0.9);
}

/* --- Ticks de Validación Exitosa --- */
.input-container.is-valid .input-validation-tick {
  transform: translateY(-50%) scale(1) !important;
  opacity: 1 !important;
}

/* --- Contador de Caracteres --- */
.char-counter {
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

/* --- Estilos del Toast Container Flotante Global --- */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-card {
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-spring);
  pointer-events: auto;
}

.toast-card.success {
  border-left: 4px solid rgb(var(--success-rgb));
}

.toast-card.error {
  border-left: 4px solid rgb(var(--error-rgb));
}

.toast-card svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* --- Mejoras de Adaptabilidad Móvil --- */
@media (max-width: 480px) {
  #toast-container {
    left: 24px;
    right: 24px;
    bottom: 16px;
  }
  .toast-card {
    justify-content: center;
    font-size: 0.85rem;
    padding: 12px 18px;
  }
}

/* ============================================================
   👾 13. SECCIÓN E INVITACIÓN DE DISCORD PREMIUM
   ============================================================ */
.discord-section {
  padding: 40px 0;
}

.discord-panel {
  padding: 48px;
  border: 1px solid rgba(88, 101, 242, 0.2) !important;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(41, 37, 36, 0.7), rgba(88, 101, 242, 0.05)) !important;
  margin-bottom: 60px;
  max-width: 100%;
}

html:not(.dark) .discord-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(88, 101, 242, 0.05)) !important;
}

  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.08), var(--shadow-xl);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.discord-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 101, 242, 0.4) !important;
  box-shadow: 0 15px 40px rgba(88, 101, 242, 0.15), var(--shadow-xl);
}

.discord-btn-cta {
  background: linear-gradient(135deg, #5865F2, #4752C4) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.35) !important;
  padding: 14px 32px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.discord-btn-cta:hover {
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5), 0 0 25px rgba(88, 101, 242, 0.3) !important;
  transform: translateY(-2px) !important;
  filter: brightness(1.08);
}

.discord-btn-cta:active {
  transform: translateY(0) !important;
}

.discord-btn-cta svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.discord-btn-cta:hover svg {
  transform: scale(1.1) rotate(-5deg);
}

/* Adaptación del panel Discord en móviles */
@media (max-width: 768px) {
  .discord-panel {
    padding: 36px 20px !important;
  }
  .discord-panel h3 {
    font-size: 1.65rem !important;
  }
  .discord-panel p {
    font-size: 0.95rem !important;
    margin-bottom: 24px !important;
  }
  .discord-btn-cta {
    width: 100%;
    justify-content: center;
    padding: 12px 24px !important;
    font-size: 0.95rem !important;
  }
}

/* ============================================================
   🏷️ 14. CLASES DE COMPONENTES SIN INLINE STYLES
   Reemplaza todos los style="" en index.html y app.js
   aplicando la regla de Caramelo: cero estilos en línea.
   ============================================================ */

/* --- Sección Discord: contenido extraído de inline styles --- */
.discord-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background-color: rgba(88, 101, 242, 0.15);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.discord-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.discord-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(88, 101, 242, 0.1);
  color: #5865F2;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(88, 101, 242, 0.2);
}

.discord-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.discord-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* --- Explorador de dominios (Whitelist Explorer Drawer) --- */
.whitelist-explorer-box {
  background-color: var(--surface-bright);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.whitelist-explorer-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
}

.whitelist-explorer-title svg {
  color: rgb(var(--primary-rgb));
  flex-shrink: 0;
}

.explorer-search-wrapper {
  margin-bottom: 14px;
  position: relative;
}

.explorer-domains-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 4px;
}

/* --- Domain Pill (reemplaza el inline style en app.js) --- */
.domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    color var(--transition-fast),
    background-color var(--transition-fast);
  user-select: none;
}

.domain-pill:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  color: var(--text-main);
  background-color: var(--surface-dim);
}

/* --- Páginas de error generadas por server.js --- */
.error-page-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.error-page-desc {
  margin-bottom: 32px;
  color: var(--text-muted);
}

.btn-error-back {
  width: 100%;
}

/* --- Link de toggle del Whitelist Explorer --- */
.whitelist-toggle-link {
  color: rgb(var(--primary-rgb));
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.whitelist-toggle-link:hover {
  color: rgb(var(--primary-dark-rgb));
  text-decoration: underline;
}

/* =============================================================
   🛡️ CLOUDFLARE TURNSTILE WIDGET
   ============================================================= */

/* Contenedor principal del widget: reserva espacio para evitar CLS */
#turnstile-widget {
  min-height: 65px;         /* Altura estándar del iframe del widget Turnstile */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0.25rem;
}

/* El iframe de Turnstile hereda el border-radius del sistema de diseño */
#turnstile-widget iframe {
  border-radius: var(--radius-md, 12px);
}

/* Mensaje de fallback cuando el CDN de Cloudflare no está disponible */
#turnstile-cdn-error {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgb(var(--error-rgb));
  margin-top: 0;
}

/* =============================================================
   🔢 HERO COUNTER — Contador animado de registros
   ============================================================= */

.hero-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px auto;
  animation: fade-in-up 0.6s ease forwards;
}

.hero-counter-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(var(--success-rgb), 0.08);
  border: 1px solid rgba(var(--success-rgb), 0.2);
  color: rgb(var(--success-rgb));
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-counter-inner strong {
  font-weight: 800;
  font-size: 1.1rem;
}

.hero-counter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgb(var(--success-rgb));
  flex-shrink: 0;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   🪜 HOW IT WORKS SECTION — Pasos del proceso
   ============================================================= */

.how-it-works {
  padding: 80px 0;
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(var(--primary-rgb), 0.25);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgb(var(--primary-rgb)), rgb(var(--primary-dark-rgb)));
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: rgba(var(--primary-rgb), 0.08);
  color: rgb(var(--primary-rgb));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  transition: all var(--transition-base);
}

.step-icon svg {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.step-card:hover .step-icon {
  background-color: rgb(var(--primary-rgb));
  color: white;
  transform: scale(1.05);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  padding: 0 12px;
  margin-top: 40px;
  flex-shrink: 0;
}

.step-connector svg {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

@media (max-width: 768px) {
  .step-connector {
    display: none;
  }
  .steps-grid {
    gap: 24px;
  }
}

/* =============================================================
   ❓ FAQ SECTION — Acordeón accesible
   ============================================================= */

.faq-section {
  padding: 80px 0;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(var(--primary-rgb), 0.25);
  box-shadow: var(--shadow-md);
}

.faq-item.faq-open {
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: rgb(var(--primary-rgb));
}

.faq-item.faq-open .faq-question {
  color: rgb(var(--primary-rgb));
}

.faq-chevron {
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.faq-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px 24px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer a {
  color: rgb(var(--primary-rgb));
  font-weight: 600;
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* =============================================================
   🎞️ SCROLL REVEAL ANIMATIONS
   ============================================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Delay escalonado para grupos de elementos */
.step-card:nth-child(1) { transition-delay: 0ms; }
.step-card:nth-child(3) { transition-delay: 120ms; }
.step-card:nth-child(5) { transition-delay: 240ms; }

.benefit-card:nth-child(1) { transition-delay: 0ms; }
.benefit-card:nth-child(2) { transition-delay: 80ms; }
.benefit-card:nth-child(3) { transition-delay: 160ms; }
.benefit-card:nth-child(4) { transition-delay: 240ms; }

.faq-item:nth-child(1) { transition-delay: 0ms; }
.faq-item:nth-child(2) { transition-delay: 60ms; }
.faq-item:nth-child(3) { transition-delay: 120ms; }
.faq-item:nth-child(4) { transition-delay: 180ms; }
.faq-item:nth-child(5) { transition-delay: 240ms; }

/* =============================================================
   🏆 SUCCESS POSITION — Posición en la lista
   ============================================================= */

.success-position {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--secondary-rgb), 0.06));
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius-lg);
  padding: 20px 32px;
  margin: 20px 0;
  animation: fade-in-up 0.5s ease forwards;
}

.success-position-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-subtle);
}

.success-position-num {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, rgb(var(--primary-rgb)), rgb(var(--secondary-rgb)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.success-position-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

