/* Index Page Specific Styles - Original Layout */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--light) 0%, rgba(55, 178, 155, 0.05) 100%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 32px;
  color: var(--dark);
}

.hero-description {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-cta {
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--dark);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(17, 76, 92, 0.2);
}

/* AI Process Flow */
.ai-process-flow {
  background: linear-gradient(135deg, rgba(17, 76, 92, 0.05) 0%, rgba(55, 178, 155, 0.1) 100%);
  border-radius: 24px;
  padding: 60px 40px;
  min-height: 500px;
}

.flow-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(55, 178, 155, 0.2);
  transition: var(--transition);
}

.flow-step:hover {
  transform: scale(1.02);
  border-color: var(--secondary);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 32px;
  color: white;
}

.input-icon {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
}

.ai-icon {
  background: linear-gradient(135deg, #F59E0B, #D97706);
}

.report-icon {
  background: linear-gradient(135deg, #10B981, #059669);
}

.simple-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.steps-content {
  flex: 1;
}

.steps-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.steps-content p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Sections */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}


.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding: 120px 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(17, 76, 92, 0.1);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(17, 76, 92, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
  font-size: 32px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Report Analysis Steps */
.report-analysis-steps {
  padding: 100px 0;
  background: var(--light);
}

.steps-header {
  text-align: center;
  margin-bottom: 80px;
}

.steps-header h2 {
  font-size: 48px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.highlight-text {
  color: var(--secondary);
}

.analysis-steps-list {
  margin-bottom: 80px;
}

.analysis-step {
  position: relative;
  margin-bottom: 120px;
}

.analysis-step:last-child {
  margin-bottom: 0;
}

.step-number-badge {
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  z-index: 10;
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  border: 4px solid var(--primary);
}

.step-number-badge span {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.steps-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  overflow: hidden;
}

.step-reverse .steps-content {
  direction: rtl;
}

.step-reverse .step-text,
.step-reverse .step-image {
  direction: ltr;
}

.step-image {
  height: 400px;
  overflow: hidden;
}

.image-container {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-text {
  padding: 40px;
}

.step-text-content h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.step-text-content p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

.step-connector {
  position: absolute;
  left: 50%;
  bottom: -60px;
  transform: translateX(-50%);
  width: 3px;
  height: 60px;
  background: linear-gradient(to bottom, var(--secondary), var(--primary));
  border-radius: 3px;
}

/* Interactive Stats Section */
.interactive-stats {
  padding: 120px 0;
  background: linear-gradient(135deg, #114C5C 0%, #0E2E3A 50%, #37B29B 100%);
  color: var(--white);
}

.stats-header {
  text-align: center;
  margin-bottom: 80px;
}

.stats-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.stats-header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  margin-bottom: 24px;
  display: block;
  font-size: 24px;
  color: white;
}

.interactive-stats .stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.interactive-stats .stat-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.interactive-stats .stat-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Valorador Section */
.valorador-section {
  padding: 60px 0;
  background: var(--white);
}

.valorador-header {
  text-align: center;
  margin-bottom: 40px;
}

.valorador-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.valorador-header p {
  font-size: 18px;
  color: var(--text-muted);
}

.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-icon {
  color: var(--secondary);
  font-weight: 700;
}

/* Valorador Section Wrapper */
.valorador-section-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding: 0;
}

.valorador-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    width: 80vw;           /* 80% of viewport width */
    max-width: 80%;        /* Fallback for parent constraint */
    height: 700px;
    border: 1px solid rgba(17, 76, 92, 0.1);
    margin: 0 auto;
}

.valorador1-wrapper {
    width: 100%;
    height: 100%;
}

#valorador-app {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
  }
  
  .stat-divider {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-header h2 {
    font-size: 36px;
  }
  
  .steps-content {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .step-reverse .steps-content {
    direction: ltr;
  }
  
  .step-image {
    height: 300px;
    order: -1;
  }
  
  .step-text {
    padding: 30px 20px;
  }
  
  .step-text-content h3 {
    font-size: 24px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .ai-process-flow {
    padding: 40px 20px;
  }
  
  .flow-step {
    flex-direction: row;
    gap: 16px;
    padding: 20px;
  }
  
  .step-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  /* Valorador responsive */
  .valorador-section {
    padding: 40px 0;
  }

  .valorador-card {
    width: 95vw;           /* 95% of viewport width on mobile */
    max-width: 95%;        /* Fallback for parent constraint */
    height: 600px;
    padding: 20px;
    margin: 0 auto;
  }

  .valorador-header h2 {
    font-size: 32px;
  }

  .trust-indicators {
    gap: 20px;
    margin-top: 20px;
  }
}