/* ==========================================================================
   Estilos Generales y Layout
   ========================================================================== */
body {
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Componente: Header (Navegación)
   ========================================================================== */
.main-header {
  background-color: var(--color-bg-white);
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-badge {
  background-color: var(--color-primary-green);
  color: white;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 6px;
}

.logo-text {
  font-weight: 800;
  color: var(--color-brand-blue);
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.header-tagline {
  color: var(--color-text-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==========================================================================
   Componente: Hero (Contenido de Introducción)
   ========================================================================== */
.hero-section {
  margin-top: 40px;
  margin-bottom: 60px;
}

.hero-tag {
  color: var(--color-secondary-orange);
  font-weight: bold;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  color: var(--color-brand-blue);
  margin-top: 5px;
  border-bottom: 3px solid var(--color-primary-green);
  padding-bottom: 5px;
  display: inline-block;
}

.hero-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  max-width: 700px;
  margin-bottom: 30px;
}

/* ==========================================================================
   Componente: Botones
   ========================================================================== */
.btn-primary {
  background-color: var(--color-primary-green);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-brand-blue);
}

.btn-secondary {
  background-color: var(--color-secondary-orange);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s ease;
}

.btn-secondary:hover {
  opacity: 0.9;
}

/* ==========================================================================
   Componente: Tarjetas de Servicios (Grid)
   ========================================================================== */
.section-title {
  color: var(--color-brand-blue);
  margin-top: 50px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.service-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--color-bg-white);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  color: var(--color-primary-green);
  margin-top: 0;
}

/* ==========================================================================
   Componente: Sección Proyecto Destacado (Hidroeléctrica)
   ========================================================================== */
.featured-project-section {
  background-color: var(--color-brand-blue);
  color: white;
  padding: 60px 0;
  border-radius: 12px;
  margin-top: 50px;
  margin-bottom: 50px;
  box-shadow: 0 10px 30px rgba(46, 49, 146, 0.15);
}

.project-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 768px) {
  .project-layout {
    flex-direction: row;
    align-items: center;
  }
}

.project-info {
  flex: 1.2;
}

.project-specs {
  flex: 0.8;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-tag {
  color: var(--color-secondary-orange);
  font-weight: bold;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.project-title {
  color: white;
  font-size: 2rem;
  margin-top: 5px;
  margin-bottom: 15px;
}

.project-description {
  color: #e2e8f0;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.spec-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  margin-top: 2px;
  display: block;
}

/* ==========================================================================
   Componente: Sección de Triaje Técnico (Wizard Interactivo)
   ========================================================================== */
.contact-section {
  margin-top: 50px;
  margin-bottom: 80px;
}

.contact-subtitle {
  color: #666;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-top: 10px;
  margin-bottom: 40px;
  max-width: 700px;
}

.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 768px) {
  .contact-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Tarjeta Contenedora del Wizard */
.wizard-card {
  flex: 1.3;
  background-color: var(--color-bg-white);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

/* Encabezado y Barra de Progreso */
.wizard-header {
  margin-bottom: 25px;
}

.wizard-step-indicator {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
  font-family: monospace;
  font-weight: bold;
  margin-bottom: 8px;
}

.wizard-progress-bar {
  width: 100%;
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

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

.wizard-heading {
  color: var(--color-brand-blue);
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 5px;
}

.wizard-subheading {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Tarjetas de Selección de Categoría (Paso 1) */
.wizard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.category-card {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-card:hover {
  background-color: white;
  border-color: var(--color-primary-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 135, 68, 0.1);
}

.category-card h4 {
  color: var(--color-brand-blue);
  margin: 10px 0 5px 0;
  font-size: 1rem;
}

.category-card p {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}

.category-icon {
  font-size: 1.8rem;
}

/* Campos de Formulario (Pasos 2 y 3) */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  background-color: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary-green);
  box-shadow: 0 0 0 3px rgba(0, 135, 68, 0.1);
  background-color: white;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

/* Cuadro de Diagnóstico Dinámico (Paso 3) */
.diagnostic-box {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 15px;
  font-size: 0.9rem;
  color: #166534;
  margin-bottom: 20px;
}

/* Botones de Navegación del Wizard */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

.success-icon {
  font-size: 3.5rem;
  color: var(--color-primary-green);
  margin-bottom: 15px;
}

.text-center {
  text-align: center;
}

/* Tarjeta de Información Directa (Derecha) */
.contact-info-card {
  flex: 0.7;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  box-sizing: border-box;
}

.info-card-title {
  color: var(--color-brand-blue);
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 15px;
}

.info-card-text {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 25px;
}

.info-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.info-icon {
  font-size: 1.2rem;
}

.info-link {
  color: var(--color-secondary-orange);
  text-decoration: none;
  font-weight: bold;
}

.info-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Componente: Footer
   ========================================================================== */
.main-footer {
  background-color: #1a1a1a;
  color: #ccc;
  padding: 40px 0;
  font-size: 0.85rem;
  border-top: 4px solid var(--color-primary-green);
}

.footer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 10px;
  font-size: 1rem;
}

.footer-col p {
  max-width: 300px;
  margin: 0 0 10px 0;
}

.footer-link {
  color: var(--color-secondary-orange);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: #777;
}