:root {
  --header-height: 50px;
  --bg-color: #000;
  --text-color: #fff;
  --text-color-dark:#29385A;
  --accent-color:#5698AC;
  --star-glow: rgba(255, 255, 255, 0.15);
  --font-sans: "Albert Sans", sans-serif;
  --font-serif: "Bacasime Antique", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- ESTILOS LANDING -------------------------------------- */
.sticky-bar {
      position: sticky;
      top: 0;
      height: var(--header-height);
      background-color: var(--bg-color);
      display: flex;
      align-items: center;
      justify-content:center;
      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);
    }
.hidden {
  opacity: 0;
  pointer-events: none;
}

.header-section.loaded {
  opacity: 1;
  transition: opacity 1.4s ease;
}

.header-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  background: url('https://brandedcontentgrupogodo.github.io/ext/endesa-2025/cap2/assets/img/endesa1.jpg') center bottom /cover no-repeat;
  color: var(--text-color-dark);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 0 11rem;
}
.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: 600px;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
  text-shadow: 0px 2px 15px rgb(255 255 255 / 77%);
}

.header-text > * {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
}

.header-text__pretitle {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 127.075%;
  letter-spacing: 1.32px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.header-text__title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 80%;
  margin-bottom: 1rem;
}

.header-text__subtitle {
  max-width: 500px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 108.8%;
}

@media (max-width: 768px) {
  .header-section {
    background: url('https://brandedcontentgrupogodo.github.io/ext/endesa-2025/cap2/assets/img/endesa1.jpg') left bottom / cover no-repeat;
  }
  .header-text__title {
    font-size: 28px;
  }
  .header-text__subtitle {
    font-size: 16px;
  }
}
@media (max-width: 550px) {
  .header-section {
    padding: 2rem;
  }
    .header-text {
    margin-top: 0;
  }
}

.entradilla {
  padding: 3.5rem 0;
}

.entradilla p {
  max-width: 1100px;
  margin: auto;
  padding: 0 16px;
  color: var(--text-color-dark);
  font-family: var(--font-sans);
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 168.8%;
}

.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: 22px;
  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;
}

@media (max-width: 600px) {
  .video-endesa {
    height: 60vh;
  }
}

.timeline-section {
  background-color: var(--accent-color);
  color: var(--text-color);
  padding: 4rem 2rem;
}

.timeline-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.timeline-left {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 15px;
  top: 0;
  height: 100%;
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  margin-top: 5rem;
  position: relative;
  padding-left: 40px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease-out;
}

.timeline-item.active {
  opacity: 1;
  transform: translateY(0);
}

.timeline-icon {
  margin-right: 1rem;
  flex-shrink: 0;
}

.timeline-year {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
}

.timeline-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  margin: 0.2rem 0 0;
}

.timeline-right {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.timeline-paragraph {
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-style: normal;
  font-weight: 300;
  line-height: 168.8%;
}

@media (max-width: 768px) {
  .timeline-container {
    flex-direction: column;
  }
  .timeline-line {
    left: 0;
  }
  .timeline-item {
    padding-left: 30px;
    margin-top: 2rem;
  }
}
.full-image {
  max-width: 100%;
}
.full-image img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
   max-width: 100%;
}
.full-image-alimento {
  width: 100%;
}

.full-image-alimento img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

/* Por defecto: ocultamos mobile, mostramos desktop */
.img-mobile {
  display: none !important;
}

.img-desktop {
  display: block !important;
}

@media (max-width: 550px) {
.full-image img {
  width: 100%;
  height: 60vh;
}
  .img-desktop {
    display: none !important;
  }

  .img-mobile {
    display: block !important;
  }
}

.image-caption {
  color: #6D94AA;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  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;
}

/* fases */
.fases-proceso {
  padding: 3rem 2rem;
  background-color: var(--accent-color);
  color: var(--text-color);
  text-align: center;
  min-height: 400px;
}

.fases-title {
  font-size: 2rem;
  font-family: var(--font-serif);
  margin-bottom: 2rem;
  font-style: normal;
  font-weight: 400;
}

.fases-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-evenly;
}

.fase-card {
  position: relative;
  background: #60A4B9;
  border-radius: 15px;
  box-shadow: 0 4px 9.7px 0 #49828B;
  padding: 1.5rem 1rem;
  width: 150px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  justify-content: center;
}

.fase-card:hover {
  transform: translateY(-5px);
}

.fase-icon {
  width: 50px;
  height: auto;
  margin-bottom: 0.5rem;
}

.fase-name {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-sans);
}

.fase-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--text-color-dark);
  font-family: var(--font-sans);
  color: white;
  padding: 0.75rem;
  border-radius: 0 0 15px 15px;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(20%);
  transition: opacity 0.4s cubic-bezier(.25,.8,.25,1),
              transform 0.4s cubic-bezier(.25,.8,.25,1);
  transition: all 0.3s ease;
  pointer-events: none;
}

.fase-card:hover .fase-info {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.flecha {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: white;
}

@media (max-width: 768px) {
  .fases-container {
    flex-direction: row;
    justify-content: center;
  }

  .fase-card {
    flex: 0 0 calc(50% - 1.5rem);
  }

  .flecha {
    display: none;
  }
}

/* ---------- CRÉDITOS ---------------------------------- */
.authorship-f {
  color: #888;
  font-size: .8em;
  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: 20px;
  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: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
  font-weight: 600;
  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: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 168.8%;

}
@media (max-width: 768px) {
  .parrafos-normal {
    padding: 2.5rem 16px;
  }
}

.destacado-endesa {
  background-color: var(--accent-color);
  display: flex;
    flex-wrap: wrap;
        justify-content: space-around;
    align-items: center;
    padding: 2rem;
    gap: 1rem;
    align-content: center;
}

.destacado-texto {
  flex: 1;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.bloque-bosque {
position: relative;
  width: 100%;
  background: url('https://brandedcontentgrupogodo.github.io/ext/endesa-2025/cap2/assets/img/fondo-endesa.jpg') center/cover no-repeat;
background-attachment: fixed; /* opcional, efecto parallax */
  color: white;
  padding: 5rem 1.5rem; /* más alto que antes */
  font-family: var(--font-sans);
  margin-top: 2rem;
  overflow-x: hidden;
}

.bosque-titulo {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 3rem;
  color: white;
}

/* Tabla */
.tabla-especies table {
  width: 80%;
  border-collapse: collapse; /* Une los bordes */
  margin: auto;
}

.tabla-especies th,
.tabla-especies td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #5DA7B2;
}

/* Cabecera */
.tabla-especies th {
  font-weight: bold;
}

/* Tercera columna destacada */
.tabla-especies td:nth-child(3),
.tabla-especies th:nth-child(3) {
  background-color: #4A8192;
  color: #00E087; 
}
/* primera columna bold */
.tabla-especies td:nth-child(1),
.tabla-especies th:nth-child(1) {
  font-weight: 800;
}

/* Responsive */
@media (max-width: 768px) {
  .tabla-especies table,
  .tabla-especies thead,
  .tabla-especies tbody,
  .tabla-especies th,
  .tabla-especies td,
  .tabla-especies tr {
    display: block;
    width: 100%;
  }

  .tabla-especies tr {
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255,255,255,0.2);
  }

  .tabla-especies td {
    padding: 0.5rem;
    border-bottom: none;
  }
}


/* 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);
}
.timeline-right .links-endesa {
color: var(--text-color);
}



