/* ============================================================
   CARPOOL CR — Estilos del sitio web
   Inspirados en la paleta de la app: verde montaña, azul océano
   ============================================================ */

/* ============================================================
   CARPOOL CR — @font-face — Inter (local woff2)
   ============================================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/Inter-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/Inter-900.woff2') format('woff2');
}

/* ----- CSS Variables ----- */
:root {
  --primary: #00897b;
  --primary-dark: #00695c;
  --primary-light: #4db6ac;
  --primary-bg: #e0f2f1;
  --accent: #1565c0;
  --accent-light: #e3f2fd;
  --warning: #f9a825;
  --warning-light: #fff8e1;
  --danger: #d32f2f;
  --danger-light: #ffebee;
  --success: #2e7d32;
  --success-light: #e8f5e9;

  --text-primary: #1a1a2e;
  --text-secondary: #555770;
  --text-hint: #9e9e9e;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --border: #e0e0e0;
  --border-light: #f0f0f0;

  --gradient-primary: linear-gradient(135deg, #00897b, #26a69a);
  --gradient-accent: linear-gradient(135deg, #1565c0, #1e88e5);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* ----- Typography ----- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 800;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----- Scrollbar personalizada ----- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ----- Reduced motion ----- */
.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* ----- Animations ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.visible:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll.visible:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll.visible:nth-child(4) { transition-delay: 0.3s; }

/* ----- Section Header ----- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-bg);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 137, 123, 0.3);
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo-highlight {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  border-radius: 2px;
}

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

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

.nav-cta {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(0, 137, 123, 0.3);
  transition: var(--transition);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  box-shadow: 0 6px 20px rgba(0, 137, 123, 0.4);
  transform: translateY(-2px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: #00897b;
  top: -150px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: #1565c0;
  bottom: -50px;
  left: -80px;
  animation: float 10s ease-in-out infinite 2s;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: #f9a825;
  top: 40%;
  left: 30%;
  animation: float 6s ease-in-out infinite 1s;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  animation-delay: 0.2s;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-bg);
  color: var(--primary-dark);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeIn 0.6s ease 0.3s both;
}

.hero h1 {
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 520px;
  animation: fadeInUp 0.6s ease 0.5s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease 0.6s both;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: fadeInUp 0.6s ease 0.7s both;
}

.stat-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-plus,
.stat-percent {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 2px;
}

.stat-label {
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-hint);
  font-weight: 500;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Phone Mockup */
.hero-visual {
  position: relative;
  animation-delay: 0.4s;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  background: #1a1a2e;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: #1a1a2e;
  border-radius: 0 0 18px 18px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: #f5f7fa;
  border-radius: 24px;
  overflow: hidden;
  height: 520px;
}

.phone-home-btn {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin: 8px auto 4px;
}

/* Mockup app content */
.mockup-app {
  padding: 16px;
}

.mockup-header {
  padding: 12px 16px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.mockup-title {
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}

.mockup-route {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.mockup-location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mockup-line {
  width: 2px;
  height: 16px;
  background: var(--border);
  margin: 4px 0 4px 4px;
}

.mockup-info {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.mockup-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.mockup-rating {
  color: var(--warning);
}

.mockup-price {
  text-align: center;
  padding: 12px;
  background: var(--success-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.mockup-price-label {
  font-size: 0.75rem;
  color: var(--text-hint);
  display: block;
  margin-bottom: 2px;
}

.mockup-price-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--success);
}

.mockup-price-per {
  font-size: 0.8rem;
  color: var(--text-hint);
}

.mockup-button {
  background: var(--gradient-primary);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(0, 137, 123, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.mockup-button:hover {
  box-shadow: 0 6px 20px rgba(0, 137, 123, 0.4);
}

/* Floating cards */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  animation: float 4s ease-in-out infinite;
  white-space: nowrap;
  z-index: 10;
}

.fc-1 {
  top: 15%;
  right: -20px;
  animation-delay: 0s;
}

.fc-2 {
  bottom: 20%;
  left: -30px;
  animation-delay: 2s;
}

/* ============================================================
   SVG Icons
   ============================================================ */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

.icon-spin {
  animation: icon-spin 2s linear infinite;
}

@keyframes icon-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-md);
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 137, 123, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(0, 137, 123, 0.45);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  background: var(--surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  background: var(--bg);
}

.steps {
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 137, 123, 0.3);
}

.step-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  flex: 1;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.step-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.step-content h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.95rem;
}

.step-connector {
  text-align: center;
  padding: 16px 0;
  padding-left: 24px;
  color: var(--text-hint);
  font-size: 1.2rem;
}

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits {
  background: var(--surface);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent, var(--primary-light));
}

.benefit-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  color: var(--accent);
}

.benefit-card h3 {
  color: var(--accent);
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: 0.9rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial-stars {
  color: var(--warning);
  margin-bottom: 16px;
  display: flex;
  gap: 4px;
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-name {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-hint);
}

/* ============================================================
   DOWNLOAD / CTA
   ============================================================ */
.download {
  background: linear-gradient(135deg, #004d40, #00695c, #00897b);
  position: relative;
  overflow: hidden;
}

.download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.download-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.download-text {
  color: #fff;
}

.download-text .section-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.download-text h2 {
  margin-bottom: 16px;
  color: #fff;
}

.download-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.subscribe-input-group {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 0 16px;
  transition: var(--transition);
}

.subscribe-input-group:focus-within {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.subscribe-input-group.focused {
  border-color: rgba(255, 255, 255, 0.4);
}

.subscribe-input-group .icon {
  color: rgba(255, 255, 255, 0.6);
  margin-right: 10px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.subscribe-input-group input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 16px 0;
  font-family: var(--font);
  font-size: 1rem;
  color: #fff;
  min-width: 0;
}

.subscribe-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.subscribe-input-group ::selection {
  background: rgba(0, 137, 123, 0.4);
  color: #fff;
}

/* Estados de validación del formulario */
.subscribe-input-group.valid {
  border-color: rgba(46, 125, 50, 0.6);
  background: rgba(46, 125, 50, 0.1);
}

.subscribe-input-group.invalid {
  border-color: rgba(211, 47, 47, 0.6);
  background: rgba(211, 47, 47, 0.1);
  animation: shake 0.4s ease;
}

.subscribe-input-group.success {
  border-color: rgba(46, 125, 50, 0.8);
  background: rgba(46, 125, 50, 0.15);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.download-text .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.download-text .btn-primary:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.subscribe-note {
  font-size: 0.8rem !important;
  opacity: 0.6;
  margin-top: 12px !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.download-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup-2 .mockup-features-list {
  padding: 16px 0;
}

.mockup-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.mockup-feature:last-child {
  border-bottom: none;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 137, 123, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(80px) scale(0.8);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: 0 6px 24px rgba(0, 137, 123, 0.5);
  transform: translateY(-3px) scale(1.05);
}

.back-to-top:active {
  transform: translateY(0) scale(0.95);
}

.back-to-top .icon {
  transform: rotate(180deg);
  font-size: 1.2rem;
}

.back-to-top.clicked {
  animation: back-to-top-click 0.3s ease;
}

@keyframes back-to-top-click {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.1); }
  100% { transform: translateY(0) scale(1); }
}

/* ============================================================
   CAROUSEL DOTS (para testimonios en móvil)
   ============================================================ */
.carousel-dots {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.3);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.carousel-dot:hover {
  background: var(--primary-light);
}

@media (max-width: 768px) {
  .carousel-dots {
    display: flex;
  }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background: var(--surface);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-light);
}

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

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

.faq-question[aria-expanded="true"] .icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-question .icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
  font-size: 0.9rem;
  color: var(--text-hint);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ----- Navbar hidden (auto-hide on scroll down) ----- */
.navbar-hidden {
  transform: translateY(-100%);
}

.navbar {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease;
}

/* ----- Nav Active Link ----- */
.nav-links a.nav-active {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

.nav-links a.nav-active::after {
  width: 100% !important;
}

/* ----- Auth Buttons in Navbar ----- */
.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px !important;
  border-radius: var(--radius-full) !important;
  border: 1.5px solid var(--border) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: all 0.25s ease !important;
}

.nav-auth-btn:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: var(--primary-bg) !important;
  box-shadow: 0 2px 8px rgba(0, 137, 123, 0.1);
}

/* ----- User Menu (logged in) ----- */
.user-menu {
  position: relative;
  display: none;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
  font-family: var(--font);
}

.user-menu-trigger:hover {
  background: var(--bg);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 137, 123, 0.2);
}

.user-avatar-initials {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-trigger .icon {
  font-size: 0.65rem;
  color: var(--text-hint);
  transition: transform 0.3s ease;
}

.user-menu:hover .user-menu-trigger .icon {
  transform: rotate(180deg);
}

/* Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 6px;
  min-width: 220px;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  border: 1px solid var(--border);
}

.user-menu:hover .user-dropdown,
.user-dropdown:hover {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.user-dropdown a:hover {
  background: var(--primary-bg);
  color: var(--primary);
  padding-left: 18px;
}

.user-dropdown a .icon {
  font-size: 1rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4px 6px;
}

/* ============================================================
   MODALES — Elegantes y coherentes con el diseño
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 24px;
  overflow-y: auto;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px 36px 32px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-hint);
  transition: all 0.25s ease;
  font-size: 0.9rem;
}

.modal-close:hover {
  background: var(--danger-light);
  color: var(--danger);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
  padding-top: 4px;
}

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.3rem;
}

.modal-header h2 {
  font-size: 1.45rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--text-hint);
}

/* Formularios dentro de modales */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding-left: 2px;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  transition: all 0.25s ease;
}

.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
  background: var(--surface);
}

.input-group .icon {
  color: var(--text-hint);
  font-size: 0.95rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.input-group:focus-within .icon {
  color: var(--primary);
  opacity: 1;
}

.input-group input,
.input-group select {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 11px 0;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text-primary);
  min-width: 0;
}

.input-group select {
  padding: 11px 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 512 512'%3E%3Cpath d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z' fill='%239e9e9e'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

.form-error {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--danger-light);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(211, 47, 47, 0.15);
}

.btn-full {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  padding: 13px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-google:hover {
  background: var(--bg);
  border-color: var(--text-hint);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.btn-google .icon {
  font-size: 1.15rem;
}

.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-hint);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.modal-divider::before,
.modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.modal-footer {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-hint);
}

.modal-footer a {
  color: var(--primary);
  font-weight: 600;
  transition: all 0.2s ease;
}

.modal-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-actions .btn {
  flex: 1;
  padding: 12px;
  font-size: 0.92rem;
}

/* Scrollbar para modales */
.modal-content::-webkit-scrollbar {
  width: 4px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ============================================================
   DASHBOARD — Panel de usuario premium
   ============================================================ */
.dashboard-section {
  background: var(--bg);
  padding: 120px 0 80px;
  min-height: 100vh;
}

/* Welcome */
.dash-welcome {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.dash-welcome-text h2 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.dash-welcome-text p {
  color: var(--text-hint);
  font-size: 0.95rem;
}

.dash-welcome-actions .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Stats Grid */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.dash-stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
}

.dash-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.dash-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dash-stat-info {
  display: flex;
  flex-direction: column;
}

.dash-stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.dash-stat-label {
  font-size: 0.78rem;
  color: var(--text-hint);
  font-weight: 500;
  margin-top: 1px;
}

/* Tabs */
.dash-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dash-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dash-tab:hover {
  color: var(--primary);
  background: var(--primary-bg);
}

.dash-tab.active {
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 137, 123, 0.25);
}

.dash-tab .icon {
  font-size: 0.95rem;
}

/* Panels */
.dash-panel {
  display: none;
}

.dash-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Profile Card */
.dash-profile-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  gap: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.dash-profile-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 150px;
}

.dash-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 137, 123, 0.2);
  border: 3px solid var(--surface);
  outline: 2px solid var(--primary-light);
}

.profile-avatar-initials {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-avatar-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-bg);
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.dash-avatar-upload:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-dark);
}

.avatar-preview-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-hint);
  background: var(--bg);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.avatar-preview-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.dash-profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-info-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.profile-info-row:last-child {
  border-bottom: none;
}

.profile-info-label {
  width: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-hint);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Empty State */
.dash-empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 2px dashed var(--border);
  transition: all 0.3s ease;
}

.dash-empty-state:hover {
  border-color: var(--primary-light);
}

.dash-empty-icon {
  font-size: 3rem;
  color: var(--text-hint);
  margin-bottom: 16px;
}

.dash-empty-state h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.dash-empty-state p {
  color: var(--text-hint);
  margin-bottom: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Settings Card */
.dash-settings-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.dash-settings-card h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.dash-settings-card p {
  color: var(--text-hint);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.settings-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-actions .btn {
  padding: 10px 20px;
  font-size: 0.88rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer .logo-text {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 16px 0;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-links h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-links a i {
  width: 20px;
  margin-right: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-cr {
  font-size: 1rem;
}

/* ============================================================
   TOAST — Mejorado con barra de progreso y animaciones
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--surface);
  color: var(--text-primary);
  padding: 16px 24px;
  padding-bottom: 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transform: translateY(120px) scale(0.9);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  z-index: 9999;
  border-left: 4px solid var(--success);
  max-width: 460px;
  overflow: hidden;
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast .icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--success);
  border-radius: 0 2px 0 0;
  transition: width 4s linear;
  opacity: 0.6;
}

/* Animación de campana para toasts de tipo info */
@keyframes toast-bell {
  0% { transform: rotate(0); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-15deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-8deg); }
  100% { transform: rotate(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-description {
    margin: 0 auto 32px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .fc-1 { right: 10%; }
  .fc-2 { left: 10%; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .subscribe-form {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  /* Dashboard responsive */
  .dash-welcome {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  .dash-welcome-text h2 {
    font-size: 1.4rem;
  }

  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .dash-stat-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .dash-stat-value {
    font-size: 1.15rem;
  }

  .dash-profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    gap: 24px;
  }

  .dash-profile-avatar-section {
    min-width: unset;
  }

  .dash-profile-avatar {
    width: 100px;
    height: 100px;
  }

  .profile-avatar-initials {
    font-size: 2.2rem;
  }

  .profile-info-row {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 0;
  }

  .profile-info-label {
    width: unset;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.78rem;
  }

  .dash-tabs {
    padding: 3px;
    gap: 3px;
  }

  .dash-tab {
    font-size: 0.82rem;
    padding: 8px 14px;
    gap: 6px;
  }

  /* Modal responsive */
  .modal {
    padding: 16px;
    align-items: flex-end;
  }

  .modal-content {
    padding: 24px 20px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 85vh;
    animation: modalInMobile 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

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

  .modal-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }

  .user-name {
    max-width: 80px;
  }

  .user-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    min-width: unset;
    padding: 16px;
    transform: translateY(100%);
    border: none;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  }

  .user-menu:hover .user-dropdown,
  .user-dropdown:hover {
    transform: translateY(0);
  }

  .nav-auth-btn {
    display: flex !important;
    justify-content: center;
  }

  .settings-actions {
    flex-direction: column;
  }

  .dash-settings-card {
    padding: 24px;
  }

  .dash-empty-state {
    padding: 40px 16px;
  }

  /* NAV LINKS como menú móvil */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 999;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid .testimonial-card {
    margin: 0 auto;
    max-width: 400px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .floating-card {
    display: none;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-input-group {
    min-width: 100%;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .back-to-top {
    bottom: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
  }

  .download-text .btn-primary.btn-lg {
    width: 100%;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .faq-answer p {
    padding: 0 18px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }

  .phone-mockup {
    width: 240px;
  }

  .phone-screen {
    height: 440px;
  }

  .dash-stats-grid {
    grid-template-columns: 1fr;
  }

  .dash-welcome {
    padding: 20px 16px;
  }

  .dash-welcome-text h2 {
    font-size: 1.25rem;
  }

  .dash-profile-card {
    padding: 16px;
  }

  .dash-settings-card {
    padding: 20px;
  }

  .modal-content {
    padding: 28px 20px 24px;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }
}
