/* ==========================================================================
   ISOMETRÍA EMPRESARIAL S.A. - COMPONENTS DESIGN SYSTEM
   Bento Grids, Interactive Wizard, Technical Cards, Modals
   ========================================================================== */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #f5771c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-item h3 {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  color: var(--text-white);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.hero-stat-item h3 span {
  color: var(--color-primary);
}

.hero-stat-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Hero Visual Card / Interactive Preview */
.hero-visual-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  backdrop-filter: blur(20px);
}

.hero-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-accent-emerald);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent-emerald);
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #020408;
  height: 280px;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-visual-card:hover .hero-image-wrap img {
  transform: scale(1.04);
}

.hero-visual-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(7, 10, 17, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-visual-badge h5 {
  font-size: 0.875rem;
  color: var(--text-white);
}

.hero-visual-badge span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-primary);
}

/* ==========================================================================
   CONFIGURADOR / COTIZADOR INTERACTIVO DE TRANSFORMADORES
   ========================================================================== */

.configurator-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-header .badge {
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.configurator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.configurator-steps-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.step-indicator.active {
  color: var(--text-white);
}

.step-indicator.active .step-number {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--text-white);
  box-shadow: 0 0 12px var(--color-primary-glow);
}

.step-indicator.completed .step-number {
  background: var(--color-accent-emerald);
  border-color: var(--color-accent-emerald);
  color: #fff;
}

.configurator-body {
  min-height: 280px;
}

.configurator-step-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.configurator-step-pane.active {
  display: block;
}

.option-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.option-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
}

.option-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-primary);
  transform: translateY(-2px);
}

.option-card.selected {
  background: rgba(245, 119, 28, 0.08);
  border-color: var(--color-primary);
  box-shadow: 0 0 16px var(--color-primary-glow);
}

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

.option-card h4 {
  font-size: 0.9375rem;
  color: var(--text-white);
}

.option-card p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.configurator-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* Resumen del Cotizador */
.quote-summary-box {
  background: rgba(7, 10, 17, 0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.quote-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.quote-summary-item:last-child {
  border-bottom: none;
}

.quote-summary-label {
  color: var(--text-muted);
}

.quote-summary-val {
  font-family: var(--font-mono);
  color: var(--text-white);
  font-weight: 600;
}

/* ==========================================================================
   BENTO GRID DE SERVICIOS
   ========================================================================== */

.bento-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.bento-card-8 { grid-column: span 8; }
.bento-card-4 { grid-column: span 4; }
.bento-card-6 { grid-column: span 6; }
.bento-card-12 { grid-column: span 12; }

.bento-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-primary-subtle);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.bento-icon-blue {
  background: var(--color-accent-blue-glow);
  border-color: rgba(2, 132, 199, 0.4);
  color: #38bdf8;
}

.bento-card h3 {
  margin-bottom: 0.75rem;
}

.bento-card p {
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.bento-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.bento-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.bento-list li i {
  color: var(--color-primary);
  font-size: 0.75rem;
}

/* ==========================================================================
   CATÁLOGO DE PRODUCTOS / TRANSFORMADORES
   ========================================================================== */

.catalog-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.catalog-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  background: var(--bg-card);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.04);
}

.filter-btn.active {
  background: var(--color-primary);
  color: var(--text-white);
  border-color: var(--color-primary);
}

.search-box {
  position: relative;
  min-width: 240px;
}

.search-box input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-white);
  padding: 0.55rem 1rem 0.55rem 2.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.search-box i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Grid de Productos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.product-card-img-wrap {
  height: 220px;
  position: relative;
  background: #000;
  overflow: hidden;
}

.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img-wrap img {
  transform: scale(1.06);
}

.product-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(7, 10, 17, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.product-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.product-card-body p {
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-specs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.spec-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  color: var(--text-secondary);
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   FORMULARIO DE CONTACTO / COTIZACIÓN
   ========================================================================== */

.contact-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-subtle);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-row h5 {
  font-size: 0.9375rem;
  color: var(--text-white);
  margin-bottom: 0.2rem;
}

.contact-detail-row p, .contact-detail-row a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   MODAL DE ESPECIFICACIONES TÉCNICAS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--text-white);
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
  font-size: 0.875rem;
}

.modal-specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.modal-specs-table td {
  padding: 0.65rem 0.5rem;
}

.modal-specs-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  width: 35%;
}

.modal-specs-table td:last-child {
  color: var(--text-white);
  font-family: var(--font-mono);
}

/* Responsive Components */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bento-card-8, .bento-card-4, .bento-card-6 {
    grid-column: span 12;
  }

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

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

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

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .configurator-steps-nav {
    grid-template-columns: 1fr;
  }

  .configurator-card, .contact-form-card, .contact-info-card {
    padding: 1.5rem;
  }
}
