:root {
  --fcnuclear-white: #fff;
  --fcnuclear-sand-1: #fffeff;
  --fcnuclear-sand: #fff5ec;
  --fcnuclear-sand-3: #d8cfc7;
  --fcnuclear-sand-7: #3a3735;
  --fcnuclear-green: #00a443;
  --fcnuclear-green-1: #007f33;
  --fcnuclear-forest: #00402a;
  --fcnuclear-forest-text: #00402a;
  --fcnuclear-forest-1: #dcebe1;
  --fcnuclear-forest-2: #a2bcb1;
  --fcnuclear-sky: #0da9ff;
}

#fcnuclear {
  width: 100%;
  max-width: 980px;
  margin: 20px auto;
  text-align: left;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  border: 1px solid var(--fcnuclear-sand-3);
  background: var(--fcnuclear-sand-1);
  padding: 16px;
}

#fcnuclear * {
  font-family: "IberPangeaText" !important;
  font-style: normal;
  font-weight: normal;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#fcnuclear strong {
  font-family: "IberPangeaText Bold" !important;
  font-weight: normal;
}

#fcnuclear h2,
#fcnuclear h3 {
  margin-top: 0 !important;
}

#fcnuclear ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#fcnuclear ul li:before {
  content: none !important;
  display: none !important;
}

#fcnuclear img {
  display: block;
  width: 100%;
}

#fcnuclear button {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
}

#fcnuclear .fcnuclear_title {
  color: var(--fcnuclear-green-1) !important;
  font-family: "IberPangea" !important;
  font-style: normal;
  font-weight: normal;
  font-size: 32px;
  line-height: 1.125;
  text-align: left;
  text-wrap: balance;
  margin-bottom: 12px;
}

#fcnuclear .fcnuclear_title strong {
  font-family: "IberPangea Bold" !important;
  font-style: normal;
  font-weight: normal;
}

#fcnuclear .fcnuclear__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

#fcnuclear .fcnuclear__tab {
  border: 1px solid var(--fcnuclear-green-1);
  border-radius: 8px 0 0 0;
  background: var(--fcnuclear-sand-1);
  color: var(--fcnuclear-green-1) !important;
  font-family: "IberPangea Medium" !important;
  font-size: 18px;
  line-height: 1;
  min-height: 42px;
  padding: 8px 18px;
  text-align: center;
}

#fcnuclear .fcnuclear__tab:first-child {
  border-right: none;
}

#fcnuclear .fcnuclear__tab + .fcnuclear__tab {
  border-radius: 0 8px 0 0;
  border-left: none;
}

#fcnuclear .fcnuclear__tab.active {
  color: white !important;
  border-color: var(--fcnuclear-forest);
  background: var(--fcnuclear-forest);
  font-family: "IberPangea SmBold" !important;
}

#fcnuclear .fcnuclear__body {
  background: var(--fcnuclear-sand);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 0 0 15px 15px;
}

#fcnuclear .fcnuclear__visual,
#fcnuclear .fcnuclear__content,
#fcnuclear .fcnuclear__detail {
  background: var(--fcnuclear-white);
  border-radius: 15px;
}

#fcnuclear .fcnuclear__visual {
  width: 100%;
  aspect-ratio: 442 / 307;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

#fcnuclear .fcnuclear__visualInner {
  width: 100%;
  max-width: 218px;
  position: relative;
}

#fcnuclear[data-state="detail"] .fcnuclear__visualInner {
  display: none;
}

#fcnuclear .fcnuclear__picture,
#fcnuclear .fcnuclear__image {
  width: 100%;
}

#fcnuclear .fcnuclear__picture {
  display: block;
}

#fcnuclear .fcnuclear__image {
  height: auto;
  object-fit: contain;
}

#fcnuclear .fcnuclear__picture[hidden],
#fcnuclear .fcnuclear__image[hidden] {
  display: none !important;
}

@media (max-width: 699px) {
  #fcnuclear .fcnuclear__visualInner {
    max-width: 100%;
  }

  #fcnuclear .fcnuclear__content {
    min-height: max(376px, calc(551px - 31vw));
  }

  #fcnuclear[data-state="detail"] .fcnuclear__visual > .fcnuclear__image {
    height: 100%;
    object-fit: contain;
  }

}

#fcnuclear .fcnuclear__hotspots {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  aspect-ratio: 442 / 307;
  transform: translateY(-50%);
}

#fcnuclear .fcnuclear__hotspots[hidden],
#fcnuclear .fcnuclear__list[hidden],
#fcnuclear .fcnuclear__detail[hidden] {
  display: none;
}

#fcnuclear .fcnuclear__hotspot {
  /* El tamaño DEBE escalar linealmente con la imagen (= círculo guía del SVG, r≈22.4 ≈ 10.2%)
     para que los números queden SIEMPRE pegados a sus líneas conectoras en todos los anchos.
     Sin max/min ni saltos por breakpoint (eso separaba el 1 y el 4). */
  width: 10.2%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--fcnuclear-forest);
  background: var(--fcnuclear-sand-1);
  color: var(--fcnuclear-forest-text) !important;
  font-family: "IberPangea SmBold" !important;
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1;
  text-align: center;
  transform: translate(-50%, -50%);
  z-index: 5;
}

#fcnuclear .fcnuclear__hotspot:active {
  border-color: var(--fcnuclear-green-1);
  background: var(--fcnuclear-green-1);
  color: var(--fcnuclear-white) !important;
}

#fcnuclear .fcnuclear__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

#fcnuclear[data-state="detail"] .fcnuclear__content {
  padding: 12px;
}

#fcnuclear .fcnuclear__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

#fcnuclear .fcnuclear__detail {
  flex: 1;
}

#fcnuclear .fcnuclear__item {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  border-radius: 15px;
  background: var(--fcnuclear-sand);
  padding: 16px;
  color: var(--fcnuclear-forest) !important;
  font-family: "IberPangea Medium" !important;
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1.22;
  text-align: left;
}

#fcnuclear .fcnuclear__item:hover .fcnuclear__plus {
  background-image: url("/wcorp/gc/prod/es_ES/estaticos/funcionamiento-central-nuclear/images/ico-mas-hover.svg");
}

#fcnuclear .fcnuclear__number {
  display: none;
}

#fcnuclear .fcnuclear__plus {
  width: 34px;
  min-width: 34px;
  height: 34px;
  display: block;
  background-image: url("/wcorp/gc/prod/es_ES/estaticos/funcionamiento-central-nuclear/images/ico-mas.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  text-align: left;
  text-indent: -9999px;
  overflow: hidden;
}

#fcnuclear .fcnuclear__detail {
  color: var(--fcnuclear-sand-7) !important;
}

#fcnuclear .fcnuclear__close {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 40px;
  background: var(--fcnuclear-green-1);
  padding: 12px 8px 12px 20px;
  color: var(--fcnuclear-white) !important;
  font-family: "IberPangea Medium" !important;
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1.22;
  text-align: left;
  margin-bottom: 16px;
}

#fcnuclear .fcnuclear__closeIcon {
  width: 32px;
  min-width: 32px;
  height: 32px;
  display: block;
  background-color: transparent;
  background-image: url("/wcorp/gc/prod/es_ES/estaticos/funcionamiento-central-nuclear/images/ico-cerrar.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  text-align: left;
  text-indent: -9999px;
  overflow: hidden;
}

#fcnuclear .fcnuclear__copy {
  padding: 0 8px 4px;
  color: var(--fcnuclear-sand-7) !important;
  font-size: 17px;
  line-height: 1.25;
  text-align: left;
}

#fcnuclear .fcnuclear__copy h3 {
  color: var(--fcnuclear-green-1) !important;
  font-family: "IberPangea Medium" !important;
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1.22;
  text-align: left;
  margin-bottom: 8px;
}

#fcnuclear .fcnuclear__copy p {
  color: var(--fcnuclear-sand-7) !important;
  font-family: "IberPangeaText" !important;
  font-weight: normal;
  font-style: normal;
  font-size: 16px;
  line-height: 1.25;
  text-align: left;
  margin-bottom: 20px;
}

#fcnuclear .fcnuclear__copy p:last-child {
  margin-bottom: 0;
}

#fcnuclear .fcnuclear__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
}

#fcnuclear .fcnuclear__counter {
  display: inline-flex;
  border: 1px solid var(--fcnuclear-forest);
  border-radius: 20px;
  color: var(--fcnuclear-green-1) !important;
  font-family: "IberPangeaText" !important;
  font-weight: normal;
  font-size: 14px;
  font-style: italic;
  line-height: 1;
  padding: 7px 18px;
}

#fcnuclear .fcnuclear__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  position: relative;
  z-index: 1;
}

#fcnuclear .swiper-button-prev,
#fcnuclear .swiper-button-next {
  width: 32px;
  height: 32px;
  display: block !important;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent !important;
  cursor: pointer;
  text-align: left;
  text-indent: -9999px;
  overflow: hidden;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2;
}

#fcnuclear .swiper-button-prev {
  background-image: url("/wcorp/gc/prod/es_ES/estaticos/funcionamiento-central-nuclear/images/ico-prev.svg");
}

#fcnuclear .swiper-button-next {
  background-image: url("/wcorp/gc/prod/es_ES/estaticos/funcionamiento-central-nuclear/images/ico-next.svg");
}

#fcnuclear .swiper-button-prev.swiper-button-disabled,
#fcnuclear .swiper-button-next.swiper-button-disabled,
#fcnuclear .swiper-button-prev:disabled,
#fcnuclear .swiper-button-next:disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

#fcnuclear .fcnuclear__hotspot:focus-visible,
#fcnuclear .fcnuclear__item:focus-visible,
#fcnuclear .fcnuclear__tab:focus-visible,
#fcnuclear .fcnuclear__close:focus-visible,
#fcnuclear .swiper-button-prev:focus-visible,
#fcnuclear .swiper-button-next:focus-visible {
  outline: 3px solid var(--fcnuclear-sky);
  outline-offset: 3px;
}

#fcnuclear[data-state="detail"] .fcnuclear__visual {
  aspect-ratio: 442 / 307;
  padding: 24px;
}

#fcnuclear[data-state="detail"] .fcnuclear__visual > .fcnuclear__picture,
#fcnuclear[data-state="detail"] .fcnuclear__visual > .fcnuclear__image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

#fcnuclear[data-state="detail"] .fcnuclear__visual > .fcnuclear__picture .fcnuclear__image,
#fcnuclear[data-state="detail"] .fcnuclear__visual > .fcnuclear__image {
  height: 100%;
  object-fit: contain;
}

#fcnuclear[data-state="detail"] .fcnuclear__visual picture,
#fcnuclear[data-state="detail"] .fcnuclear__visual img {
  border-radius: 16px;
  overflow: hidden;
}

@media (max-width: 699px) {
  #fcnuclear[data-state="detail"] .fcnuclear__visual {
    padding: 12px;
  }
}

@media (min-width: 700px) {

  #fcnuclear .swiper-button-prev:hover {
    background-image: url("/wcorp/gc/prod/es_ES/estaticos/funcionamiento-central-nuclear/images/ico-prev-hover.svg");
  }
  
  #fcnuclear .swiper-button-next:hover {
    background-image: url("/wcorp/gc/prod/es_ES/estaticos/funcionamiento-central-nuclear/images/ico-next-hover.svg");
  }

  #fcnuclear {
    padding: 24px;
  }

  #fcnuclear .fcnuclear_title {
    margin-bottom: 24px;
  }

  #fcnuclear .fcnuclear__body {
    gap: 24px;
    padding: 24px;
  }

  #fcnuclear .fcnuclear__image {
    height: auto;
    max-height: none;
  }

  #fcnuclear .fcnuclear__picture,
  #fcnuclear .fcnuclear__image:not([data-image-state="general"]) {
    aspect-ratio: 834 / 564;
  }

  #fcnuclear[data-state="detail"] .fcnuclear__visual {
    aspect-ratio: 442 / 307;
  }

  #fcnuclear .fcnuclear__visualInner {
    max-width: 445px;
  }

  #fcnuclear .fcnuclear__hotspot {
    font-size: 16px;
  }

  #fcnuclear .fcnuclear__content {
    min-height: 400px;
    padding: 16px;
  }
  
  #fcnuclear[data-state="detail"] .fcnuclear__content {
    padding: 16px;
  }

  #fcnuclear .fcnuclear__list {
    height: 100%;
    justify-content: space-between;
    gap: 24px;
  }

  #fcnuclear .fcnuclear__item {
    min-height: 74px;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 16px;
  }

  #fcnuclear .fcnuclear__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--fcnuclear-green-1);
    color: var(--fcnuclear-white) !important;
    font-family: "IberPangea Bold" !important;
    font-weight: normal;
    font-style: normal;
    font-size: 16px;
    line-height: 1;
    text-align: center;
  }

  #fcnuclear .fcnuclear__plus {
    width: 32px;
    min-width: 32px;
    height: 32px;
    font-size: 28px;
  }

  #fcnuclear .fcnuclear__footer {
    padding-top: 24px;
  }


  #fcnuclear .fcnuclear__tab:hover {
    color: white !important;
    border-color: var(--fcnuclear-green-1);
    background: var(--fcnuclear-green-1);
    font-family: "IberPangea SmBold" !important;
  }

  #fcnuclear .fcnuclear__tab.active,
  #fcnuclear .fcnuclear__tab.active:hover {
    color: white !important;
    border-color: var(--fcnuclear-forest);
    background: var(--fcnuclear-forest);
  }

  #fcnuclear .fcnuclear__hotspot:hover {
    border-color: var(--fcnuclear-green-1);
    background: var(--fcnuclear-green-1);
    color: var(--fcnuclear-white) !important;
  }

  #fcnuclear .fcnuclear__close:hover .fcnuclear__closeIcon {
    filter: brightness(0.94);
  }
}

@media (min-width: 1080px) {
  
  #fcnuclear .fcnuclear__body {
    min-height: 480px;
    display: grid;
    grid-template-columns: calc(57% - 24px) calc(43% - 0px);
  }


  #fcnuclear .fcnuclear__visual {
    min-height: 479px;
  }

  #fcnuclear .fcnuclear__visualInner {
    max-width: 442px;
  }

  #fcnuclear .fcnuclear__picture,
  #fcnuclear .fcnuclear__image {
    aspect-ratio: auto;
  }

  #fcnuclear[data-state="detail"] .fcnuclear__visual {
    aspect-ratio: auto;
    padding: 24px;
  }

  #fcnuclear .fcnuclear__hotspot {
    font-size: clamp(14px, 2vw, 20px);
  }

  #fcnuclear .fcnuclear__content {
    min-height: 432px;
  }

  #fcnuclear .fcnuclear__item {
    min-height: 92px;
  }

  #fcnuclear.fcnuclear--interior .fcnuclear__body {
    min-height: 0;
    display: flex;
    grid-template-columns: none;
  }

  #fcnuclear.fcnuclear--interior .fcnuclear__visual {
    min-height: 0;
  }

  #fcnuclear.fcnuclear--interior .fcnuclear__visualInner {
    max-width: 445px;
  }

  #fcnuclear.fcnuclear--interior .fcnuclear__picture,
  #fcnuclear.fcnuclear--interior .fcnuclear__image:not([data-image-state="general"]) {
    aspect-ratio: 834 / 564;
  }

  #fcnuclear.fcnuclear--interior[data-state="detail"] .fcnuclear__visual {
    aspect-ratio: 834 / 564;
    padding: 24px;
  }

  #fcnuclear.fcnuclear--interior .fcnuclear__hotspot {
    font-size: 16px;
  }

  #fcnuclear.fcnuclear--interior .fcnuclear__content {
    min-height: 400px;
  }

  #fcnuclear.fcnuclear--interior .fcnuclear__item {
    min-height: 74px;
  }

}
