/* ============================================================
   VOCEIRA — DESIGN SYSTEM v2.1
   ============================================================ */

:root {
  --bg-main:        #080C16;
  --bg-card:        #0F1525;
  --bg-card-hover:  #161E35;
  --bg-surface:     #0C1220;
  --text-main:      #F1F5FF;
  --text-muted:     #8B9DC3;
  --text-dim:       #576078;
  --accent-blue:    #3B82F6;
  --accent-blue-hover: #2563EB;
  --accent-glow:    rgba(59,130,246,0.15);
  --border-subtle:  rgba(255,255,255,0.07);
  --border-blue:    rgba(59,130,246,0.35);
  --shadow-sm:      0 4px 16px rgba(0,0,0,0.35);
  --shadow-md:      0 12px 40px rgba(0,0,0,0.55);
  --shadow-blue:    0 8px 32px rgba(59,130,246,0.28);
  --glow:           0 0 60px rgba(59,130,246,0.12);
  --font-sans:      'Inter', sans-serif;
  --font-head:      'Sora', sans-serif;
  --nav-height:     70px;
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  /* Degradado hero — dark */
  --hero-grad-start: #F1F5FF;
  --hero-grad-end:   #3B82F6;
  /* Degradado glow-bg — dark */
  --glow-bg-color:   rgba(59,130,246,0.06);
}

.light-mode {
  --bg-main:        #F6F8FF;
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #EEF2FF;
  --bg-surface:     #EDF1FF;
  --text-main:      #0D1526;
  --text-muted:     #4A5780;
  --text-dim:       #8B9DC3;
  --accent-blue:    #2563EB;
  --accent-blue-hover: #1D4ED8;
  --border-subtle:  rgba(0,0,0,0.08);
  --border-blue:    rgba(37,99,235,0.4);
  --shadow-sm:      0 4px 16px rgba(0,0,0,0.06);
  --shadow-md:      0 12px 40px rgba(0,0,0,0.10);
  --glow:           0 0 60px rgba(37,99,235,0.06);
  --accent-glow:    rgba(37,99,235,0.08);
  /* Degradado hero — light */
  --hero-grad-start: #0D1526;
  --hero-grad-end:   #2563EB;
  /* Degradado glow-bg — light */
  --glow-bg-color:   rgba(37,99,235,0.04);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; transition: font-size 0.3s ease; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 1rem;
}

h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1rem; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-left   { text-align: left !important; }
.text-center { text-align: center !important; }

/* ============================================================
   LAYOUT
   ============================================================ */
.section-padding { padding: 7.5rem 5% 5rem; }
.bg-alt          { background-color: var(--bg-surface); }

.page-content {
  max-width: 1180px;
  margin: 0 auto;
}

/* ============================================================
   SECTION LABELS & DESCRIPTIONS
   ============================================================ */
.section-label {
  display: block;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

/* When inside a centered container, auto-center the label */
.text-center .section-label,
.section-label[style*="text-align:center"],
.section-label[style*="text-align: center"] {
  margin-left: auto;
  margin-right: auto;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 3rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ============================================================
   AMBIENT GLOW
   ============================================================ */
.glow-bg {
  position: fixed;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-bg-color) 0%, transparent 70%);
  top: -200px; left: -200px;
  pointer-events: none;
  z-index: 0;
  transition: background 0.4s ease;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; width: 100%; 
  min-height: var(--nav-height);
  background: rgba(8,12,22,0.85);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Evita que los botones salgan de la pantalla si crecen mucho */
  padding: 0.5rem 5%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s;
}

.light-mode .navbar { background: rgba(246,248,255,0.9); }

.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

body.dark-mode .brand-logo { filter: invert(1) brightness(1.15); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover { color: var(--text-main); }
.nav-link:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Soporta salto de línea si hay mucho zoom */
  gap: 0.75rem;
}

.nav-actions button:not(.btn-primary):not(.btn-login):not(.hamburger) {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  width: 2.25rem; height: 2.25rem; /* Medidas escalables con zoom */
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.nav-actions button:not(.btn-primary):not(.btn-login):not(.hamburger):hover {
  color: var(--accent-blue);
  background: var(--accent-glow);
}

/* ============================================================
   HAMBURGER
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem; height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  flex-shrink: 0;
}

.hamburger:hover { background: var(--bg-card-hover); }

.hamburger-line {
  display: block;
  width: 22px; height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary, .btn-secondary, .btn-login, .btn-action {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59,130,246,0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.btn-login {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-login:hover { background: var(--bg-card-hover); }

.btn-action {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-action:hover {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

.w-100 { width: 100%; }

/* ============================================================
   INTERACTIVE CARDS
   ============================================================ */
.interactive-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.interactive-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-blue) !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: 820px;
  margin: 60px auto 0;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 2rem;
}

.hero-eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  background: linear-gradient(160deg, var(--hero-grad-start) 40%, var(--hero-grad-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  transition: background 0.4s ease;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* ============================================================
   HERO BANNER (SAAS SHOWCASE)
   ============================================================ */
.hero-banner-wrapper {
  margin-top: 4.5rem;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  perspective: 1200px; /* Para efecto 3D sutil */
  z-index: 1;
}

.hero-banner-wrapper::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 10%;
  background: var(--accent-blue);
  filter: blur(80px);
  opacity: 0.15;
  z-index: -1;
  transition: opacity 0.5s ease;
}

.hero-banner-wrapper:hover::before {
  opacity: 0.3;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 40px rgba(0, 204, 153, 0.1);
  /* Transformación 3D para darle profundidad de SaaS moderno */
  transform: rotateX(4deg) translateY(5px) scale(0.98);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.7s ease, border-color 0.5s ease;
  will-change: transform;
}

.hero-banner-wrapper:hover .hero-banner-img {
  transform: rotateX(0deg) translateY(0) scale(1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 60px rgba(0, 204, 153, 0.2);
  border-color: rgba(255,255,255,0.1);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.hero-stat-item { text-align: center; }

.hero-stat-number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: box-shadow 0.3s;
}

.feature-card:hover .feature-icon-wrap {
  box-shadow: 0 0 20px rgba(59,130,246,0.3);
}

.feature-card h4 {
  font-size: 1.02rem;
  margin-bottom: 0.6rem;
  text-align: left;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  text-align: left;
}

/* ============================================================
   SOLUTIONS GRID
   ============================================================ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.solution-item {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.solution-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.solution-item p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  text-align: left;
}

.solution-number {
  position: absolute;
  top: 1rem; right: 1.2rem;
  font-family: var(--font-head);
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--accent-blue);
  opacity: 0.06;
  line-height: 1;
  user-select: none;
}

/* ============================================================
   TESTIMONIOS — GRID DE 3 COLUMNAS (sin carrusel roto)
   ============================================================ */

/* ============================================================
   TESTIMONIOS — GRID DE 3 COLUMNAS (sin carrusel roto)
   ============================================================ */

/* Ocultamos los botones del carrusel en desktop si no son necesarios, pero por ahora los mostramos */
.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 1rem 0;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s ease-in-out;
}

.carousel-card {
  flex: 0 0 100%; 
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.carousel-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
  color: var(--text-muted);
}

.carousel-btn:hover {
  background: var(--accent-blue);
  color: #fff;
  transform: scale(1.05);
  border-color: var(--accent-blue);
}

/* Comilla decorativa */
.carousel-card::before {
  content: '"';
  position: absolute;
  top: 0.6rem; right: 1.2rem;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent-blue);
  opacity: 0.07;
  pointer-events: none;
}

.carousel-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-blue);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
}

.testimonial-stars i {
  color: #F59E0B;
  font-size: 0.85rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.75;
  font-style: italic;
  flex-grow: 1;
  text-align: left;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border-blue);
  flex-shrink: 0;
}

.testimonial-header h4 {
  font-size: 0.92rem;
  margin-bottom: 0.1rem;
  text-align: left;
}

.small-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  text-align: left;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s;
}

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

.faq-item h3 {
  padding: 1.4rem 1.6rem;
  margin-bottom: 0;
  color: var(--text-main);
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  text-align: left;
}

.faq-item h3::before {
  content: 'Q';
  display: inline-flex;
  min-width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent-glow);
  color: var(--accent-blue);
  font-size: 0.75rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-head);
  margin-top: 1px;
}

.faq-item .small-text {
  padding: 0 1.6rem 1.5rem 4.2rem;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0;
  text-align: left;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-tabs {
  display: inline-flex;
  gap: 0;
  margin: 0 auto 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 4px;
}

/* Wrapper para centrar las tabs */
.text-center .pricing-tabs {
  display: inline-flex;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 0.6rem 1.6rem;
  cursor: pointer;
  border-radius: 9px;
  transition: all 0.25s;
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--accent-blue);
  color: #fff;
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 760px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.pro-card {
  border-color: var(--border-blue);
  background: linear-gradient(160deg, var(--bg-card) 0%, rgba(59,130,246,0.07) 100%);
  box-shadow: var(--glow);
}

.badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #3B82F6, #6366F1);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.price {
  font-size: 3rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-main);
  margin: 1rem 0 0.5rem;
  line-height: 1;
}

.price span:first-child { font-size: 1.4rem; vertical-align: super; }
.price span:last-child { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.plan-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
  line-height: 1.65;
}

.plan-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.9rem;
  color: var(--text-main);
  font-size: 0.92rem;
}

.plan-features i {
  color: var(--accent-blue);
  width: 16px;
  flex-shrink: 0;
}

.enterprise-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.enterprise-box p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   INPUTS
   ============================================================ */
.modern-input, .modern-select, .translate-box {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.93rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  margin-bottom: 1rem;
}

.modern-input:focus, .modern-select:focus, .translate-box:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 5% 0;
  margin-top: 0;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
}

.footer-brand-logo {
  height: 40px;
  margin-bottom: 1.2rem;
}

body.dark-mode .footer-brand-logo { filter: invert(1) brightness(1.15); }

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 300px;
  text-align: left;
}

.footer-nav-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 1.4rem;
  text-align: left;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
  text-align: left;
}

.footer-nav-link:hover {
  color: var(--accent-blue);
  padding-left: 4px;
}

.footer-logo-link { text-decoration: none; }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.8rem 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.83rem;
}

/* ============================================================
   APP DASHBOARD
   ============================================================ */
.app-dashboard {
  padding: 90px 5% 50px;
  max-width: 1180px;
  margin: 0 auto;
}

.user-welcome { margin-bottom: 2.5rem; }
.user-welcome p { color: var(--text-muted); }

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.form-group { margin-bottom: 1.3rem; }

.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.plan-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.8rem;
}

.plan-radio-card {
  display: block;
  position: relative;
  cursor: pointer;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  background: var(--bg-main);
  transition: all 0.25s ease;
}

.plan-radio-card input { position: absolute; opacity: 0; cursor: pointer; }
.plan-radio-content h4 { margin-bottom: 0.2rem; font-size: 0.92rem; text-align: left; }
.plan-radio-content p { color: var(--text-muted); font-size: 0.8rem; margin: 0; text-align: left; }
.plan-radio-card input:checked ~ .plan-radio-content h4 { color: var(--accent-blue); }
.plan-radio-card:has(input:checked) { border-color: var(--accent-blue); background: rgba(59,130,246,0.06); }

.translator-controls { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.textarea-container { position: relative; }

.status-indicator {
  position: absolute;
  bottom: 22px; right: 12px;
  font-size: 0.78rem;
  color: #EF4444;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.65);
  padding: 4px 10px;
  border-radius: 20px;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: #EF4444;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}

.translate-box { min-height: 120px; resize: vertical; }
.translate-actions { display: flex; gap: 1rem; }

/* ============================================================
   MODAL AUTH
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.auth-card {
  background: var(--bg-card);
  padding: 2.8rem;
  border-radius: var(--radius-lg);
  width: 100%; max-width: 400px;
  position: relative;
  border: 1px solid var(--border-subtle);
  transform: translateY(24px);
  transition: transform 0.3s;
  box-shadow: var(--shadow-md);
}

.modal-overlay.active .auth-card { transform: translateY(0); }

.close-modal {
  position: absolute;
  top: 16px; right: 20px;
  background: none; border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.close-modal:hover { background: var(--bg-card-hover); color: var(--text-main); }

.auth-form { display: none; }
.auth-form.active { display: block; animation: fadeIn 0.35s; }
.auth-form h2 { margin-bottom: 0.4rem; }
.auth-form p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.6rem; }

.auth-switch { text-align: center; margin-top: 1.2rem; font-size: 0.88rem; color: var(--text-muted); }
.auth-switch span { color: var(--accent-blue); cursor: pointer; font-weight: 600; }
.auth-switch span:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE — MEDIA QUERIES (MOBILE FIRST para Carrusel)
   ============================================================ */
@media (min-width: 768px) {
  .carousel-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }
}

@media (min-width: 1024px) {
  .carousel-card {
    flex: 0 0 calc((100% - 3rem) / 3);
  }
}

/* ============================================================
   TYPEWRITER
   ============================================================ */
.typing-cursor::after {
  content: '|';
  display: inline-block;
  animation: blink 0.75s step-end infinite;
  color: var(--accent-blue);
  margin-left: 3px;
  font-weight: 300;
}

.hero-title, .hero-subtitle { min-height: 1em; }

/* ============================================================
   NAVBAR SEARCH BAR
   ============================================================ */
.nav-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.nav-search-form {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0 12px;
  min-height: 2.25rem; height: auto;
  width: 180px;
  transition: width 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}

.nav-search-form:focus-within {
  width: 260px;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.nav-search-icon {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
  pointer-events: none;
  transition: color 0.3s;
}

.nav-search-form:focus-within .nav-search-icon {
  color: var(--accent-blue);
}

.nav-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0 8px;
  min-width: 0;
  /* Oculta el botón nativo "x" del input[type=search] */
}

.nav-search-input::placeholder { color: var(--text-dim); }
.nav-search-input::-webkit-search-cancel-button { display: none; }
.nav-search-input::-ms-clear { display: none; }

/* Dropdown de resultados */
.nav-search-results {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 1050;
  display: none;
  animation: fadeIn 0.2s ease;
}

.nav-search-results.visible { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item:hover,
.search-result-item:focus {
  background: var(--bg-card-hover);
  outline: none;
}

.search-result-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.search-result-text { flex: 1; min-width: 0; }
.search-result-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-no-results {
  padding: 1.2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeIn   { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse    { 0%,100% { transform:scale(0.9); opacity:0.7; } 50% { transform:scale(1.35); opacity:1; } }
@keyframes blink    { 0%,100% { opacity:1; } 50% { opacity:0; } }
@keyframes slideDown { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:translateY(0); } }

/* ============================================================
   RESPONSIVE — MEDIA QUERIES
   ============================================================ */

/* Tablet 1024px */
@media (max-width: 1024px) {
  .navbar { padding: 0 4%; }
  .nav-links { gap: 1.4rem; }
  .section-padding { padding: 5.5rem 4% 4rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .app-grid { grid-template-columns: 1fr; }
}

/* Mobile 768px — hamburguesa */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 5%;
    gap: 0;
    z-index: 999;
    animation: slideDown 0.3s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  }

  .nav-links.mobile-open { display: flex; }

  .nav-link {
    font-size: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
  }

  .nav-link:last-child { border-bottom: none; }
  .nav-link::after { display: none; }

  .hero { margin-top: 40px; }
  .hero-title { font-size: clamp(2rem, 7vw, 3rem); }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions a {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  .hero-stats { gap: 1.8rem; }

  .features-grid  { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .pricing-grid   { grid-template-columns: 1fr; max-width: 420px; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.4rem; }
}

/* Small mobile 480px */
@media (max-width: 480px) {
  .section-padding { padding: 4.5rem 5% 3.5rem; }
  .navbar { padding: 0 5%; }
  .nav-actions { gap: 0.5rem; }
  .btn-login  { font-size: 0.82rem; padding: 0.5rem 0.8rem; }
  .btn-primary { font-size: 0.85rem; padding: 0.6rem 1rem; }
  .translate-actions { flex-direction: column; }
  .translator-controls { flex-wrap: wrap; }
  .auth-card { padding: 2rem 1.5rem; margin: 1rem; max-width: calc(100% - 2rem); }
  .hero-stats { gap: 1.2rem; }
  .hero-stat-number { font-size: 1.8rem; }
  .tab-btn { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
  .faq-item h3 { padding: 1.2rem; gap: 0.6rem; }
  .faq-item h3::before { display: none; }
  .faq-item .small-text { padding: 0 1.2rem 1.2rem; }
  .enterprise-box { padding: 1.8rem; }
  .pricing-card { padding: 2rem; }
}

@media (max-width: 768px) {
  .nav-search-wrapper { margin: 1rem 0 0 0; width: 100%; }
  .nav-search-form { width: 100%; max-width: 100%; height: 42px; border-radius: 8px; }
  .nav-search-form:focus-within { width: 100%; }
  .nav-search-results { width: 100%; position: static; margin-top: 10px; box-shadow: none; border-color: transparent; }
}