.divider-orange{
    width: 120px;
    height: 5px;
    background-color: #ff5c1b;
    margin-bottom: 2.5rem;
    margin-top: 1rem;
     animation: growDivider 1s ease-in forwards;
}
.divider-orange-txt{
    width: 120px;
    height: 5px;
    background-color: #ff5c1b;
    margin-bottom: 2.5rem;
    margin-top: 0.5rem;
    animation: growDivider 1s ease-in forwards;
}

@keyframes growDivider {
  from {
    width: 0;
  }
  to {
    width:10%;
  }
}

.section-energia {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 20rem auto;
}

.energia-header {
  text-align: left;
  margin-bottom: 8rem;
}

.energia-title {
  font-size: 4rem;
  font-weight: 800;
  color: #1d1d1d;
  line-height: 1.2;
}

.energia-title .highlight {
  color: #ff5c1b;
  font-size: 4rem !important;
}

.energia-subtitle {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 4rem;
  font-weight: 800;
  color: #1d1d1d;
}

.energia-subtitle .highlight {
  color: #ff5c1b;
  font-size: 4rem !important;
}

.energia-content {
  background-color: #0c1b2a;
  color: #ffffff;
  border-radius: 30px;
  padding: 5rem;
  margin-top: 2rem;
}

.energia-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.energia-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1.6rem;
}

.energia-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  height: auto; 
}

.energia-image {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.energia-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.energia-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 27, 42, 0.6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  border-radius: 30px;
  pointer-events: none;
}

.energia-list {
  color: #ffffff;
}

.energia-list ul {
  list-style-type: none;
  padding: 5rem;
  font-size: 1rem;
  background-color: #0c1b2a;
  line-height: 1.8;
  border-radius: 30px;
}

.energia-list li {
  font-size: 1.6rem;
}

.energia-list ul li::before {
  content: '· ';
  color: #ff5c1b;
  font-weight: bold;
}


/* Tablet y Desktop */
@media (min-width: 768px) {
  .energia-title {
    font-size: 4rem;
  }

  .energia-grid {
    flex-direction: row;
    align-items: stretch;
    height: 400px; /* ✅ Sólo en desktop */
  }

  .energia-image,
  .energia-list {
    flex: 1 1 50%;
  }

  .energia-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
  }

  .energia-list ul {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem;
    background-color: #0c1b2a;
    border-radius: 30px;
  }

  .energia-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 30px;
  }

  .energia-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 30px;
  }
}

@media (min-width: 1024px) {
  .energia-content h2 {
    font-size: 2.5rem;
  }

  .energia-list ul {
    font-size: 1.05rem;
  }
}
