/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
@font-face {
  font-family: "Diatype";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/ABCDiatype-Regular.otf") format("otf"), url("../fonts/ABCDiatype-Regular.woff2") format("woff2"), url("../fonts/ABCDiatype-Regular.woff") format("woff")
}

@font-face {
  font-family: "Diatype Bold";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/ABCDiatype-Bold.otf") format("otf"), url("../fonts/ABCDiatype-Bold.woff2") format("woff2"), url("../fonts/ABCDiatype-Bold.woff") format("woff")
}


:root {
  --font-family: "Diatype", system-ui, -apple-ui, sans-serif;
  --font-family-bold: "Diatype Bold", system-ui, -apple-ui, sans-serif;
  --viewportWidth: 100vw;
  --viewportHeight: 100vh;
  --primary-color: #5B87DA;
  --primaryRGB: 91, 135, 218;
  --secondary-color: #4FAE95;
  --secondaryRGB: 79, 174, 149;
  --tertiary-color: #DEE7F8;
  --tertiaryRGB: 222, 231, 248;
  --black-color: #000000;

  --dark-color: #172121;
  --darkRGB: 23, 33, 33;
  --bg-color: rgb(247 246 249);
  --bg-color-hex: #F7F6F9;
  --transition-btn: all 0.5s ease;

}

* {
  font-family: var(--font-family), sans-serif;
  transition: var(--transition-btn);
}

h1,
h2,
h3 {
  font-family: var(--font-family-bold), sans-serif;
  text-rendering: geometricPrecision;
  margin: 0;
  padding: 0;
}

p {
  font-family: var(--font-family), sans-serif;
  text-rendering: geometricPrecision;
}

body {
  font-family: var(--font-family), sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  position: relative;
}

.object-bottom {
  -o-object-position: bottom;
  object-position: bottom;
}

.video-bg-box {
  position: fixed;
  top: 0%;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.m-t-20 {
  margin-top: 20px;
}

.flex-box {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.flex-box.column {
  flex-direction: column;
}

.flex-box.row {
  flex-direction: row;
  width: 100%;
}

.flex-box.stretch {
  align-items: stretch;
}

.flex-box .flex-2 {
  width: 50%;
}

.flex-box .flex-3 {
  width: 33.33%;
}

.flex-box .flex-6 {
  width: 66.66%;
}

.section-info {
  padding: 6% 10%;
}

.try-me-container img {
  padding-left: 20%;
  padding-top: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
  }

  50% {
    transform: scale(1);
  }

  100% {
    transform: scale(0.95);
  }
}

header {
  text-align: center;
  margin: 0px auto 2%;
  padding-top: 40px;
  width: 75%;
  background: linear-gradient(0deg, rgba(247, 246, 249, 0), rgba(247, 246, 249, .5) 11%, #f7f6f9 88%);
}

.header-intro.bg-white {
  padding: 20px;
  border-radius: 10px 130px 10px 10px;
}

header .logo-head {
  width: 160px;
  height: auto;
  padding: 20px;
}

header h1 {
  color: var(--dark-color);
  font-size: 36px;
  letter-spacing: 1px;
  font-weight: 400;
  margin: 30px auto 20px;
}

header hr {
  background: rgb(229, 231, 235);
  height: 1px;
  width: 80%;
  margin: 10px auto 20px;
}

header p {
  font-family: var(--font-family);
  color: black;
  font-size: 18px;
  letter-spacing: 0.5px;
  font-weight: 300;
  padding: 10px 20px;
  margin-bottom: 0px;
}

.bg-white {
  background-color: #ffffff;
}

.map-box {
  background: transparent;
}

.energy-btn {
  text-align: center;
  padding: 3% 0;
}

a.custom-button,
.state-modal button {
  display: block;
  width: fit-content;
  color: #ffffff;
  letter-spacing: 1px;
  padding: 12px;
  background: var(--accent-color);
  border-radius: 8px;
  white-space: nowrap;
  border: none;
}

a.custom-button:hover,
a.custom-button:focus,
.state-modal button:hover {
  text-decoration: none;
  background: #780303;
}

a.et_pb_button.custom-button {
  margin-top: 20px;
}

.box-comunidad {
  margin: 4%;
  padding: 4%;
  padding-top: 0;
  -webkit-box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.3);
  box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.3);
}

.box-comunidad .img-center {
  text-align: center;
  margin: 0 auto;
  padding-bottom: 30px;
}

.box-comunidad .img-center.pad {
  padding-top: 25px;
}

.box-comunidad .img-center p {
  font-size: 18px;
  color: #003F77;
}

.box-comunidad .energy-dates img {
  width: 20%;
}

.box-comunidad .energy-dates h3 {
  color: var(--accent-color);
}

.box-comunidad .energy-dates p {
  color: #003F77;
}

.cta-cont {
  width: 100%;
}

.app-content {
  background-color: transparent;
  position: relative;
  text-align: center;
}

.app-content>.flex-2 {
  padding: 4% 0px;
  z-index: 1;
}

.app-content h2 {
  font-size: 48px;
  color: #000000;
  font-weight: 500;
  line-height: 52px;
  padding-bottom: 16px;
}

.app-content a {
  text-decoration: underline;
  color: var(--grey1);
  font-size: 14px;
  line-height: 32px;
  font-weight: 300;
}

.app-content .flex-3 img {
  width: 100%;
  margin: 0 auto;
}

.app-sections .flex-2 {
  padding: 20px;
}

.app-sections .flex-2 .app-info-box {
  padding: 20px;
  border-radius: 20px;
}

.app-sections .flex-2 img {
  height: auto;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  max-height: 22px;
  max-width: 22px;
  width: auto;
}

footer {
  background: var(--dark-color);
  color: #ffffff;
  padding: 2%;
  text-align: center;
}

footer p {
  font-size: 16px;
  letter-spacing: 1px;
}

footer img {
  width: 40px;
  margin: 8px 0;
}

footer .fuentes p {
  font-size: 12px;
  text-align: left;
  margin-bottom: 0;
  font-weight: 100;
}

.spain-map-container {
  text-align: center;
  padding: 4% 0px;
}

.span-map-item {
  display: inline-block;
}

.state,
.state * {
  transition: all 0.8s ease;
  cursor: pointer;
}

.state.active *,
.state:active *,
.state:hover * {
  fill: var(--dark-color) !important;
}

.state.active:hover * {
  fill: #9db7e9 !important;
}

.box-comunidad {
  display: none;
}

.box-comunidad.active {
  display: block;
}

/* modal */

.state-modal {
  z-index: 1;
}

.state-modal-contaniner {
  text-align: center;
}

.state-modal .state-modal-imgs div.date-modal-row {
  background-color: var(--azul3);
  border-radius: 10px;
  width: 100%;
  height: fit-content;
  justify-content: space-between;
  margin: 4px 0px 10px;
}

.state-modal .state-modal-imgs>.row {
  background-color: var(--bg-color);
  border-radius: 40px;
  padding: 10px 6px;
}

p.modal-percentage.state-info {
  margin-top: 10px;
  font-size: 16px;
  color: var(--dark-color);
}

.state-modal .state-modal-imgs {
  text-align: center;
}

.state-modal .state-modal-imgs img {
  width: 38px;
  padding: 4px;
}

span.modal-title {
  color: black;
  font-family: var(--font-family-bold);
  font-size: 18px;
  text-align: left;
  font-weight: 500;
}

span.modal-percentage {
  font-family: var(--font-family-bold);
  font-size: 18px;
}

span.modal-percentage.state-status {
  font-family: var(--font-family);
  font-size: 16px;
}

.state-modal .state-modal-imgs .date-modal-row:after {
  content: attr(data-text);
  display: none;
  font-size: 10px;
  position: relative;
}

.state-modal {
  position: absolute;
  background-color: white;
  border-radius: 16px;
  min-width: 280px;
  max-width: 420px;
  padding: 35px 20px 20px 20px;
  transition: top 0.3s ease, left 0.3s ease;
  -webkit-box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.3);
  box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.3);
}

.state-modal-title {
  text-align: center;
  margin: 8px 0px;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--dark-color);
  text-transform: uppercase;
}

.state-modal-title:hover,
.box-comunidad .img-center a:hover {
  text-decoration: none;
}

.state-modal .state-modal-buttons {
  text-align: center;
  margin-top: 12px;
}

.state-modal-close {
  transition: all 0.3s ease;
  position: absolute;
  right: 10px;
  top: 10px;
}

.state-modal-close:hover {
  -ms-transform: rotate(90deg);
  /* IE 9 */
  -webkit-transform: rotate(90deg);
  /* Safari */
  transform: rotate(90deg);
}

.state-modal-close img {
  width: 20px;
  cursor: pointer;
}

.state-modal-corner {
  content: "";
  display: block;
  position: absolute;
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  top: -10px;
  background-color: white;
  border: red;
}

.state-modal:before {}

.info-content-box {
  background-color: #ffffff;
  padding: 2%;
  width: 80%;
  margin: 0 auto;
  border-radius: 20px;
}

.info-content-box .flex-6 {
  padding: 20px 40px;
  font-size: 18px;
  color: black;
}

.info-content-box .flex-3 {
  background-image: url(../images/Inicio_1.jpg.webp);
  background-size: cover;
  background-position: center;
  border-radius: 10px 60px 10px 10px;
}

.info-content-box h1 {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.info-content-box img {
  width: 100%;
}

.info-content-box a {
  width: fit-content;
  margin-top: 30px;
  color: black;
  font-size: 16px;
  padding: 20px;
  background-color: rgb(18 235 147 / 1);
  border-radius: 50px;
}

.info-content-box a:hover {
  color: #ffffff;
  background-color: var(--dark-color);
  text-decoration: none;
}

.info-content-box a svg {
  margin-left: 10px;
}

/* fin modal */
@media (max-width: 1200px) {
  .spain-map-container .span-map-item svg {
    width: 90%;
  }

}

@media (max-width: 991px) {
  .app-content {
    min-height: fit-content;
  }

  .app-content>.flex-2 {
    padding: 0px;
  }

  .app-content h2 {
    font-weight: 300;
    line-height: 42px;
    font-size: 34px;
    padding-bottom: 0px;
  }

  .general-energy-box .energies {
    padding: 30px;
  }

  .energy-btn a {
    font-size: 12px;
  }

  .energy-type-btn {
    width: 50%;
    float: left;
  }

  .energy-type-btn.btn-foto,
  .energy-type-btn.btn-solar {
    margin-top: 40px;
  }

  .box-comunidad .energy-dates img {
    width: 12%;
  }

  .app-content .flex-3,
  .app-content .flex-6,
  .info-content-box .flex-3,
  .info-content-box .flex-6 {
    width: 100%;
  }

  .app-content .flex-3 img {
    width: 40%;
    margin: 0 auto;
  }

  .app-content {
    flex-direction: column-reverse;
  }
}

@media (max-width: 768px) {

  header {
    margin: 0px;
    width: 100%;
  }

  .app-sections .flex-2 {
    width: 100%;
    padding: 10px;
  }

  header h1 {
    font-size: 26px;
    font-weight: 500;
    margin: 20px auto 20px;
  }

  .cabecera p {
    font-size: 20px;
  }

  .spain-map-container .span-map-item svg {
    height: 90%;
  }

  .info-content-box img {
    left: -26px;
    top: 6%;
    width: 90px;
    opacity: 0.3;
  }

  .info-content-box>div {
    padding: 10px 20px 20px 80px;
  }

  .app-content p {
    line-height: 28px;
    font-size: 20px;
  }

  .app-content h2 {
    line-height: 36px;
    font-size: 28px;
  }

  .state-modal {
    padding: 30px 10px 10px 10px;
  }

  .state-modal-title {
    font-size: 18px;
  }

  .img-center img {
    width: 40%;
  }

  .general-energy-box .energies {
    padding: 20px 30px;
  }

  .cabecera .logo-head {
    width: 60%;
  }

  footer p {
    font-size: 14px;
  }

  .info-content-box .flex-3 {
    height: 300px;
  }

  .info-content-box .flex-3,
  .info-content-box .flex-6 {
    padding: 20px 10px;
    width: 100%;
  }
}

@media(max-width: 480px) {

  .info-content-box>div {
    padding: 0px 20px 10px;
  }

  .spain-map-container .span-map-item svg {
    width: 100%;
    height: 100%;
  }

  .box-comunidad .energy-dates img {
    width: 18%;
  }

  .info-content-box li {
    font-size: 14px;
  }

  .info-content-box img {
    top: 30%;
    width: 80px;
    opacity: 0.15;
  }

  .general-energy-box {
    font-size: 14px;
    background-position: left;
  }

  .general-energy-box .energies {
    padding: 15px 15px;
  }

  .img-center img {
    width: 70%;
  }

  .state-modal {
    min-width: 225px;
  }

  .energy-btn a,
  .state-modal button {
    padding: 6px 6px;
  }

  header .logo-head {
    width: 220px;
    height: auto;
    padding: 10px 0px;
  }

  header {
    width: 90%;
  }

  header h1 {
    font-size: 24px;
    margin: 20px auto 10px;
  }

  header p {
    font-size: 18px;
    padding: 10px 0px;
  }

  .app-content {
    background-position: 0 top;
    padding: 20px 10%;
  }

  .app-content>.flex-2 {
    width: 100%;
  }

  footer p {
    font-size: 12px;
  }

  footer h2 {
    font-size: 20px;
  }

  footer .fuentes {
    padding: 20px;
    word-break: break-all;
  }
}