
.app-iberdrola-hero {
  display: flex;
  width: 100%;
  padding: 32px 16px;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  background-color: #ffffff;
  height: auto;
  overflow: hidden;
  border-radius: 0 0 48px 48px;
}

.app-iberdrola-hero-img {
  position: static;
  width: 100%;
  height: 270px;
  align-self: stretch;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.app-iberdrola-hero-card {
  display: flex;
  width: 100%;
  padding: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  position: static;
  height: auto;
  transform: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 0;
  background-color: #ffffff;
  border-radius: 16px;
}

.card-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  align-self: stretch;
  padding: 0;
}

.app-iberdrola-hero-card h2 {
  align-self: stretch;
  margin: 0;
  color: #2c2c2c;
  text-align: left;
  font-feature-settings:
    "liga" off,
    "clig" off;
}

.app-iberdrola-hero-card p {
  align-self: stretch;
  margin: 0;
  color: #2c2c2c;
  text-align: left;
  font-feature-settings:
    "liga" off,
    "clig" off;
}

.app-iberdrola-hero-card a {
  align-self: auto;
  height: 56px;
  width: 200px;
  min-width: 200px;
  max-width: 328px;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  background: #2f6852 !important;
  border: none !important;
  border-radius: 100px;
  cursor: pointer;
  color: #fffaf6;
  text-align: center;
}

@media (min-width: 576px) {
  .app-iberdrola-hero {
    padding: 32px 42px;
  }

  .app-iberdrola-hero-img {
    width: 100%;
    height: 270px;
    border-radius: 16px;
  }
}

@media (min-width: 768px) {
  .app-iberdrola-hero {
    padding: 0;
    gap: 0;
  }

  .app-iberdrola-hero-img {
    position: static;
    width: calc(100% - 96px);
    height: 270px;
    margin: 0 48px 32px;
    border-radius: 16px;
  }

  .app-iberdrola-hero-card {
    padding: 32px 48px;
  }

  .app-iberdrola-hero-card h2 {
    text-align: left;
  }

  .app-iberdrola-hero-card p {
    text-align: left;
  }

  .app-iberdrola-hero-card a {
    width: 200px;
    min-width: 200px;
    max-width: 328px;
  }
}

@media (min-width: 992px) {
  .app-iberdrola-hero {
    position: relative;
    height: 560px;
    padding: 40px 82px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background-color: transparent;
  }

  .app-iberdrola-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
  }

  .app-iberdrola-hero-card {
    position: absolute;
    left: 82px;
    top: 50%;
    transform: translateY(-50%);
    width: 402px;
    padding: 32px 24px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  }

  .card-content {
    display: contents;
  }

  .card-texts {
    align-items: flex-start;
  }

  .app-iberdrola-hero-card h2 {
    text-align: center;
  }

  .app-iberdrola-hero-card p {
    text-align: center;
  }

  .app-iberdrola-hero-card a {
    align-self: stretch;
    max-width: 412px;
    width: 354px;
    height: 56px;
    min-width: unset;
  }
}

@media (min-width: 1200px) {
  .app-iberdrola-hero {
    padding: 40px 102px;
    align-items: flex-start;
    gap: 0;
  }

  .app-iberdrola-hero-card {
    width: 401px;
    left: 102px;
  }

  .app-iberdrola-hero-card a {
    width: 354px;
  }
}

@media (min-width: 1400px) {
  .app-iberdrola-hero {
    padding: 0;
  }

  .app-iberdrola-hero-card {
    left: 324px;
    width: 408px;
  }
}
