/* ===============================
   DANFOSS SECTION
================================= */

.danfoss.section {
  background: var(--background-color);
  padding: 0 0 100px 0;
  color: var(--default-color);
}

/* ===== Banner Header ===== */
.danfoss-header {
  background: linear-gradient(135deg, #0a1929 0%, #1a2b4a 100%);
  padding: 60px 0;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.danfoss-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0L50 50M50 0L0 50M50 50L100 100M100 50L50 100" stroke="%232f9fb8" stroke-width="0.5" opacity="0.1"/></svg>');
  opacity: 0.3;
}

.danfoss-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.danfoss-logo-box {
  background: #c81e29;
  padding: 25px 40px;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(200, 30, 41, 0.3);
}

.danfoss-logo {
  height: 60px;
  width: auto;
  display: block;
}

.danfoss-title-box {
  text-align: left;
}

.danfoss-subtitle {
  display: block;
  color: var(--accent-color);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.danfoss-main-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--heading-color);
  margin: 0;
  letter-spacing: 3px;
}

/* ===== Intro ===== */
.danfoss-intro {
  margin-bottom: 60px;
}

.danfoss-intro h2 {
  font-size: 2rem;
  color: var(--heading-color);
  font-weight: 400;
  line-height: 1.6;
}

.danfoss-intro h2 strong {
  color: var(--accent-color);
  font-weight: 700;
}

/* ===== Beneficios de Variadores ===== */
.benefits-section {
  margin-bottom: 60px;
  padding: 40px 0;
}

.benefits-title {
  text-align: center;
  color: var(--heading-color);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 45px;
  position: relative;
  padding-bottom: 15px;
}

.benefits-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), #1e7a8f);
  border-radius: 2px;
}

.benefit-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  height: 100%;
  border: none;
  transition: none;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.benefit-icon {
  width: 70px;
  height: 70px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: none;
  box-shadow: none;
}

.benefit-icon i {
  font-size: 2.5rem;
  color: var(--accent-color);
}

.benefit-content h4 {
  font-size: 1.1rem;
  color: var(--heading-color);
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.benefit-content p {
  font-size: 0.9rem;
  color: var(--default-color);
  line-height: 1.6;
  margin: 0;
  opacity: 0.85;
}

/* Responsive para beneficios */
@media (max-width: 991px) {
  .benefits-title {
    font-size: 1.6rem;
  }
  
  .benefit-icon {
    width: 60px;
    height: 60px;
  }
  
  .benefit-icon i {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .benefits-section {
    padding: 30px 0;
  }
  
  .benefits-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
  }
  
  .benefit-card {
    padding: 0;
    margin-bottom: 30px;
  }

  .benefit-icon i {
    font-size: 2.2rem;
  }
}

/* ===== Líneas de Productos ===== */
.product-lines-row {
  margin-bottom: 80px;
}

.product-line-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 30px;
  height: 100%;
  border: 2px solid rgba(47, 159, 184, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-line-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), #1e7a8f);
}

.product-line-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 15px 40px rgba(47, 159, 184, 0.3);
}

.product-line-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-line-header i {
  font-size: 2rem;
  color: var(--accent-color);
}

.product-line-header h3 {
  font-size: 1.5rem;
  color: var(--heading-color);
  margin: 0;
  font-weight: 700;
  letter-spacing: 1px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--default-color);
  font-size: 0.95rem;
}

.product-features i {
  color: var(--accent-color);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.product-image {
  margin: 30px 0;
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.product-image img {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

/* ===== AT Advanced Technologies ===== */
.at-technologies-section {
  padding: 50px;
  border-radius: 12px;
  margin-bottom: 80px;
}

.at-content {
  padding-right: 30px;
}

.at-logo-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 25px;
}

.at-logo {
  height: 92px;
  width: auto;
}

.at-text h3 {
  font-size: 1.5rem;
  color: var(--heading-color);
  margin: 0 0 5px 0;
  font-weight: 700;
}

.at-subtitle {
  color: var(--default-color);
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
}

.at-description {
  font-size: 1.1rem;
  color: var(--default-color);
  line-height: 1.8;
  margin: 0;
  text-align: center;
}

.at-description strong {
  color: var(--accent-color);
  font-weight: 600;
}

.at-image-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* .at-specialist-img {
  width: 90%;
  max-height: 600px;
  display: block;
  margin: auto;
} */

.at-specialist-img {
    width: auto;
    max-height: 410px;
    display: block;
    margin: auto;
    border-radius: 6px;
}

.at-contact-icons {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(47, 159, 184, 0.4);
}

.contact-icon:hover {
  background: #258a9e;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(47, 159, 184, 0.6);
}

/* ===== Beneficios ===== */
.danfoss-benefits {
  background-color: #fff;
  padding: 50px;
  border-radius: 12px;
  margin-bottom: 80px;
  border: 2px solid rgba(47, 159, 184, 0.2);
}

.benefits-title {
  text-align: center;
  color: var(--accent-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.benefits-grid {
  display: flex;
  justify-content: center;
}

.benefit-item {  
  padding: 25px 15px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--accent-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.benefit-item:hover {
  background: rgba(47, 159, 184, 0.1);
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(47, 159, 184, 0.3);
}

.benefit-item i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.benefit-item span {
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== Aplicaciones ===== */
.danfoss-applications {
  margin-top: 60px;
}

.applications-title {
  text-align: center;
  color: var(--heading-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.industry-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.industry-tab {
  background: var(--surface-color);
  border: 2px solid rgba(47, 159, 184, 0.3);
  padding: 15px 30px;
  border-radius: 10px;
  color: var(--default-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.industry-tab i {
  font-size: 1.5rem;
}

.industry-tab:hover {
  background: rgba(47, 159, 184, 0.1);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.industry-tab.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  box-shadow: 0 5px 15px rgba(47, 159, 184, 0.4);
}

/* Nota: applications-content y application-item se han movido al modal */

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .danfoss-main-title {
    font-size: 2.5rem;
  }

  .at-technologies-section {
    padding: 30px;
  }

  .at-content {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .at-logo {
    height: 82px;
  }

  .danfoss-benefits {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .danfoss-banner {
    flex-direction: column;
    text-align: center;
  }

  .danfoss-title-box {
    text-align: center;
  }

  .danfoss-main-title {
    font-size: 2rem;
  }

  .danfoss-intro h2 {
    font-size: 1.5rem;
  }

  .at-logo {
    height: 72px;
  }

  .benefits-title,
  .applications-title {
    font-size: 1.5rem;
  }

  .industry-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .industry-tab {
    justify-content: center;
  }
}

/* ===== Tarjetas clicables con GLightbox ===== */
.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.clickable-card {
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.clickable-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(47, 159, 184, 0.4);
}

.view-more-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  margin-top: 15px;
  background: rgba(47, 159, 184, 0.1);
  border-radius: 8px;
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.product-card-link:hover .view-more-indicator {
  background: rgba(47, 159, 184, 0.2);
  transform: scale(1.02);
}

.view-more-indicator i {
  font-size: 1.2rem;
}

/* ===== Modal de Aplicaciones ===== */
.applications-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.applications-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.applications-modal-content {
  background: var(--surface-color);
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border: 2px solid var(--accent-color);
}

.applications-modal.active .applications-modal-content {
  transform: scale(1);
}

.applications-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 2px solid rgba(47, 159, 184, 0.3);
  background: linear-gradient(135deg, rgba(47, 159, 184, 0.1), rgba(47, 159, 184, 0.05));
}

.applications-modal-header h3 {
  margin: 0;
  color: var(--heading-color);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.applications-modal-close {
  background: transparent;
  border: none;
  color: var(--default-color);
  font-size: 2rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
  opacity: 0.8;
}

.applications-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-color);
  opacity: 1;
}

.applications-modal-body {
  padding: 30px;
  overflow-y: auto;
  max-height: calc(80vh - 90px);
}

/* ===== Lista de Aplicaciones (estilo simple) ===== */
.applications-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.applications-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--default-color);
  font-size: 0.95rem;
  background: transparent;
}

.applications-list li i {
  color: var(--accent-color);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Responsive para modal */
@media (max-width: 768px) {
  .applications-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .applications-modal-header {
    padding: 20px;
  }

  .applications-modal-header h3 {
    font-size: 1.4rem;
  }

  .applications-modal-body {
    padding: 20px;
    max-height: calc(90vh - 80px);
  }

  .applications-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .applications-list li {
    font-size: 0.9rem;
  }
}

/* Scrollbar personalizado para el modal */
.applications-modal-body::-webkit-scrollbar {
  width: 8px;
}

.applications-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.applications-modal-body::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
}

.applications-modal-body::-webkit-scrollbar-thumb:hover {
  background: #258a9e;
}

