:root {
  --header-height: 50px;
  --bg-color: #000;
  --text-color: #fff;
  --text-color-dark:#214068;
  --accent-color:#6C8BBD;
  --star-glow: rgba(255, 255, 255, 0.15);
  --font-sans: "Albert Sans", sans-serif;
  --font-serif: "Bacasime Antique", serif;
  --vw: min(100vw, 1920px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}
.hidden {
  opacity: 0;
  pointer-events: none;
}
/* ---------- ESTILOS LANDING -------------------------------------- */
.sticky-bar {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
}

.sticky-bar__icon {
  width: 24px;
  height: 24px;
  fill: var(--text-color);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sticky-bar__icon:hover {
  transform: scale(1.1);
}

.header-section.loaded {
  opacity: 1;
  transition: opacity 1.4s ease;
}

.header-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 125vh;
  background: url('https://brandedcontentgrupogodo.github.io/ext/endesa-2025/cap6/assets/img/endesa1.jpg') right bottom /cover no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  
}
.header-section::before {
content: '';
position: absolute;
inset: 0;
background: inherit;
filter: blur(20px);
transform: scale(1.2);
opacity: 0;
z-index: 1;
pointer-events: none;
}

.header-section.loaded::before {
transition: all 2s ease;
filter: blur(0);
transform: scale(1);
opacity: 1;
}

.header-text {
  max-width: 560px;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
  margin-left: 7rem;
}

.header-text > * {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
}

.header-text__pretitle {
  color: var(--text-color-dark);
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  font-weight: 800;
  line-height: 127.075%;
  letter-spacing: clamp(0.08rem, 0.07rem + 0.05vw, 0.0825rem);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.header-text__title {
  color: var(--text-color-dark);
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.5rem + 2.5vw, 2.5rem);
  font-weight: 600;
  line-height: 80%;
  margin-bottom: 1rem;
}

.header-text__subtitle {
  color: var(--text-color-dark);
  max-width: 500px;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  font-weight: 800;
  line-height: 108.8%;
  
}

@media (max-width: 768px) {
  .header-section {
    background: url('https://brandedcontentgrupogodo.github.io/ext/endesa-2025/cap6/assets/img/endesa1-mobile.jpg') left bottom / cover no-repeat;
  }
  .header-text {
    margin-left: 15rem;
  }
  .header-section {
    padding-left: 0;
  }
}
@media (max-width: 550px) {
  .header-section {
    padding: 2rem;
  }
  .header-text {
    margin-left: 0;
    margin-top: 0;
  }
}


.titular-podcast {
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.titular-podcast p {
  color: var(--text-color-dark);
  text-align: center;
  font-family:var(--font-serif);
  font-size: clamp(1.125rem, 1rem + 0.875vw, 1.375rem);
  font-style: normal;
  line-height: 90%;
  padding: 0 16px;
}

.video-endesa {
  height: 100vh;
  padding: 2rem;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: auto;
}

/* Permitir que el scroll pase a través cuando no se está sobre el video */
.video-container {
  pointer-events: auto;
}

/* Mejorar la interacción táctil */
@media (hover: hover) {
  .video-container:hover {
    pointer-events: auto;
  }
}

@media (max-width: 600px) {
  .video-endesa {
    height: 60vh;
  }
}

.full-image {
  max-width: 100%;
}
.full-image img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
   max-width: 100%;
}
@media (max-width: 550px) {
.full-image img {
  width: 100%;
  height: 30vh;
}
.full-image img.img-small {
  height: 30vh;
}
}

.image-caption {
  color: #6D94AA;
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 0.85rem + 0.125vw, 0.9rem);
  font-style: normal;
  font-weight: 400;
  line-height: 168.8%;
  margin-top: 0.75rem;
  max-width: 1200px;
  padding-left: 10px;
  padding-right: 10px;
  margin-left: auto;
  margin-right: auto;
}


/* ---------- CRÉDITOS ---------------------------------- */
.authorship-f {
  color: #888;
  font-size: clamp(0.75rem, 0.7rem + 0.25vw, 0.8rem);
  text-align: center;
  padding-bottom: 30px;
  font-family: var(--font-sans);
}

.container-fluid-f {
  width: calc(100% - 40px);
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}
#audio-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}

#audio-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}
#audio-toggle.pulse {
  animation: pulseIcon 1.5s infinite ease-in-out;
}

@keyframes pulseIcon {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.parrafos-normal {
  padding: 3.5rem 0;
}
.parrafos-normal h2 {
  max-width: 600px;
  margin: auto;
  padding: 50px 16px 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.25rem + 1.875vw, 2rem);
  margin-bottom: 1rem;
  font-weight: 300;
  color: var(--text-color-dark);
}

.parrafos-normal p {
  max-width: 600px;
  margin: auto;
  padding: 30px 16px;
  color: var(--text-color-dark);
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1rem);
  font-style: normal;
  font-weight: 300;
  line-height: 168.8%;

}

@media (max-width: 550px) {
  .parrafos-normal {
      padding: 1.5rem 16px;
  }
}


/* ---------- SECCIÓN DE TARJETAS ---------------------------------- */
.cards-section {
  background-color: var(--accent-color);
  padding: 3.5rem 2rem;
}


.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  justify-items: stretch;
}

.card {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card__label {
  background-color: var(--text-color);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: clamp(0.8125rem, 0.7875rem + 0.21875vw, 0.875rem);
  font-weight: 600;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.25rem;
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.card__image--icon {
  height: auto;
  object-fit: contain;
  max-height: 130px;
  padding: 1rem;
  margin: 0 auto;
}

.card__title {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 1.125rem + 0.9375vw, 1.5rem);
  font-weight: 600;
  color: var(--text-color);
  margin: 0 auto;
  line-height: 1.3;
  text-align: center;
  max-width: 200px;
}

.card__description {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1rem);
  font-weight: 300;
  color: var(--text-color);
  line-height: 1.688;
  margin: 0;
  text-align: center;
}

.card__description ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-block;
}

ul.card__description {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-block;
}

.card__description li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.card__description li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-color);
  font-weight: 400;
}

@media (max-width: 768px) {
  .cards-section {
    padding: 3rem 1.5rem;
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 0;
  }
  
  .card {
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .card__image {
    height: 160px;
  }
  
  .card__image--icon {
    max-height: 160px;
    padding: 1.25rem;
  }
}

@media (max-width: 550px) {
  .cards-section {
    padding: 2.5rem 1rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0;
  }
  
  .card {
    padding: 1.25rem;
    gap: 1rem;
  }
  
  .card__image {
    height: 180px;
  }
  
  .card__image--icon {
    max-height: 180px;
    padding: 1.25rem;
  }
}

/* estilos para que en LV se muestre el contenido sin margenes */
.wallpaper-inverted-ad{
  display: none!important;
}

.visual-article-free .col-12 {
  padding-right: 0 !important;
  padding-left: 0 !important;
  margin-top: 0 !important;
}
.content-free-html {
  margin:0 !important;
}
.container-fluid {
  padding-right: 0 !important;
  padding-left: 0 !important;
}
.visual__story--free .content-free-html {
  margin: 0px !important;
}
.row>* {
  padding-right: 0!important;
  padding-left: 0!important;
  margin-top: 0!important;
}
.article-default a:hover {
  text-decoration: none;
  box-shadow: none;
}
button:focus {
  outline: 1px dotted var(--background-color);
  outline: 5px auto var(--background-color) -webkit-focus-ring-color;
}
.links-endesa {
color: var(--accent-color);
}


/* ---------- SECCIÓN DE CARACTERÍSTICAS ---------------------------------- */
.features-section {
  background-color: var(--accent-color);
  width: 100%;
  padding: 4rem 2rem;
}

.features-section__container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.features-section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.5rem + 2.5vw, 2.5rem);
  font-weight: 400;
  color: var(--text-color);
  margin: 0 auto 1.5rem;
  line-height: 1.2;
}

.features-section__subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  font-weight: 300;
  color: var(--text-color);
  margin: 0 auto 3rem;
  line-height: 1.5;
  max-width: 800px;
}

.features-section__boxes {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.features-box {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  border: 1px solid var(--text-color);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.features-box__title {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 1.125rem + 0.9375vw, 1.5rem);
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 1rem;
  text-align: center;
}

.features-box__description {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1rem);
  font-weight: 300;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.features-section__disclaimer {
  font-family: var(--font-sans);
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1rem);
  font-weight: 300;
  color: var(--text-color);
  text-align: center;
  margin: 0;
  opacity: 0.8;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .features-section {
    padding: 3rem 1.5rem;
  }

  .features-section__boxes {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .features-box {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 550px) {
  .features-section {
    padding: 2.5rem 1rem;
  }

  .features-box {
    padding: 1.5rem 1rem;
  }
}




