/* EV Calculator Styles */
:root {
  --primary: 220 70% 50%;
  --primary-foreground: 0 0% 98%;
  --secondary: 220 14.3% 95.9%;
  --secondary-foreground: 220.9 39.3% 11%;
  --accent: 142 76% 36%;
  --accent-foreground: 355.7 100% 97.3%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --success: 142 76% 36%;
  --success-foreground: 355.7 100% 97.3%;
  --warning: 32 95% 44%;
  --warning-foreground: 355.7 100% 97.3%;
  --muted: 220 14.3% 95.9%;
  --muted-foreground: 220 8.9% 46.1%;
  --card: 0 0% 100%;
  --card-foreground: 220.9 39.3% 11%;
  --border: 220 13% 91%;
  --background: 0 0% 100%;
  --foreground: 220.9 39.3% 11%;
  --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  --gradient-subtle: linear-gradient(180deg, hsl(var(--background)), hsl(var(--secondary)));
  --shadow-elegant: 0 10px 30px -10px hsl(var(--primary) / 0.1);
  --shadow-card: 0 4px 6px -1px hsl(0 0% 0% / 0.1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
}

.ev-calculator-container {
  min-height: 100vh;
  background: hsl(var(--background));
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--background)), hsl(var(--accent) / 0.1));
  padding: 4rem 1rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, hsl(var(--primary) / 0.05), transparent);
}

.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--primary));
  font-weight: 500;
}

.zap-icon {
  font-size: 1.5rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.text-primary {
  color: hsl(var(--primary));
}

.hero-description {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  max-width: 28rem;
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 1rem;
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.feature-emoji {
  font-size: 2rem;
}

.feature-title {
  font-weight: 600;
}

.feature-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Calculator Section */
.calculator-section {
  padding: 4rem 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 32rem;
  margin: 0 auto;
}

/* Tabs */
.tabs-container {
  max-width: 1536px;
  margin: 0 auto;
}

.tabs-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 0.25rem;
  margin-bottom: 2rem;
}

.tab-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 500;
}

.tab-trigger:hover {
  background: hsl(var(--muted));
}

.tab-trigger.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.tab-icon {
  font-size: 1.25rem;
}

.tab-label {
  white-space: nowrap;
}

/* Tab Description Card */
.tab-description-card {
  background: linear-gradient(90deg, hsl(var(--primary) / 0.05), hsl(var(--accent) / 0.05));
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.description-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.description-icon {
  font-size: 1.5rem;
  color: hsl(var(--primary));
}

.description-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.description-text {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .calculator-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Cards */
.calculator-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-header {
  padding: 1.5rem 1.5rem 0;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-icon {
  font-size: 1.25rem;
}

.card-description {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.card-content {
  padding: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

input, select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  transition: var(--transition-smooth);
}

input:focus, select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

/* Buttons */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: hsl(var(--primary) / 0.9);
}

.btn-primary:disabled {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  cursor: not-allowed;
}

.btn-icon {
  font-size: 1rem;
}

.full-width {
  width: 100%;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: hsl(var(--muted-foreground));
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

/* Results */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.result-box {
  text-align: center;
  padding: 1rem;
  border-radius: 0.5rem;
}

.result-box.primary {
  background: hsl(var(--primary) / 0.1);
}

.result-box.accent {
  background: hsl(var(--accent) / 0.1);
}

.result-box.success {
  background: hsl(var(--success) / 0.1);
}

.result-box.warning {
  background: hsl(var(--warning) / 0.1);
}

.result-box.destructive {
  background: hsl(var(--destructive) / 0.1);
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.result-value.accent {
  color: hsl(var(--accent));
}

.result-value.success {
  color: hsl(var(--success));
}

.result-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.separator {
  height: 1px;
  background: hsl(var(--border));
  margin: 1rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.badge.success {
  background: hsl(var(--success));
  color: hsl(var(--success-foreground));
}

.badge.destructive {
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.badge.warning {
  background: hsl(var(--warning));
  color: hsl(var(--warning-foreground));
}

.progress-bar {
  width: 100%;
  height: 0.5rem;
  background: hsl(var(--secondary));
  border-radius: 0.25rem;
  overflow: hidden;
  margin: 0.5rem 0;
}

.progress-fill {
  height: 100%;
  background: hsl(var(--primary));
  transition: width 0.3s ease;
}

.tip-box {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: hsl(var(--muted));
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Footer */
.footer {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.5);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-icon {
  font-size: 1.25rem;
  color: hsl(var(--primary));
}

.footer-title {
  font-weight: 600;
}

.footer-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Responsive */
@media (max-width: 640px) {
  .tabs-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .tab-trigger:nth-child(5) {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
}




/* FAQ Section */
.faq-section {
  padding: 4rem 1rem;
  background: linear-gradient(
    180deg,
    hsl(var(--background)),
    hsl(var(--secondary))
  );
}

.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.faq-question:hover {
  background: hsl(var(--secondary));
}

.faq-icon {
  font-size: 1.25rem;
  color: hsl(var(--primary));
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

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


/* How it works */
.how-it-works-section {
  padding: 4rem 1rem;
}

.how-it-works-grid {
  max-width: 900px;
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.how-step {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elegant);
}

.step-number {
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 14px hsl(var(--primary) / 0.35);
}

.how-step p {
  margin: 0;
  font-size: 0.95rem;
  color: hsl(var(--foreground));
  line-height: 1.5;
}



/* Disclaimer */
.disclaimer-section {
  padding: 2rem 1rem 4rem;
}

.disclaimer-text {
  max-width: 900px;
  margin: 0 auto;
  background: hsl(var(--warning) / 0.1);
  border: 1px solid hsl(var(--warning) / 0.35);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  box-shadow: 0 8px 20px hsl(var(--warning) / 0.15);

  /* FIX VISIBILIDAD */
  color: hsl(var(--foreground));
}