/*
Theme Name: todoslospuentestodoslosrios
Text Domain: todoslospuentestodoslosrios
Version: 1.0
Description: Custom theme for todoslospuentestodoslosrios
Author: Clara Harguindey
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  text-decoration: none;
}

@font-face {
  font-family: "DejaVu Serif";
  src: url("./assets/fonts/DejaVuSerif.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "DejaVu Serif";
  src: url("./assets/fonts/DejaVuSerif-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "DejaVu Serif";
  src: url("./assets/fonts/DejaVuSerif-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "DejaVu Serif";
  src: url("./assets/fonts/DejaVuSerif-BoldItalic.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
}

:root {
  --spacing--20: 0.125rem;
  --spacing--30: 0.25rem;
  --spacing--40: 0.5rem;
  --spacing--50: 24px;

  --color-text: #43aabc;
  --color-alert: #e18ea9;
  --color-background: #ceeaef;
  --color-dark: #29281f;
  --color-light: #ffffff;

  --btn-font-size-desktop: 18px;
  --btn-font-size-tablet: 14px;
  --btn-font-size-mobile: 12px;

  --btn-padding-desktop: 8px 16px;
  --btn-padding-tablet: 6px 12px;
  --btn-padding-mobile: 4px 8px;

  --header-padding-desktop: var(--spacing--50);
  --header-padding-tablet: var(--spacing--40);
  --header-padding-mobile: var(--spacing--30);

  --font-size-desktop: 18px;
  --font-size-tablet: 16px;
  --font-size-mobile: 14px;
}

body {
  font-family: "DejaVu Serif", serif;
  max-width: 100vw;
  display: block;
  height: 100vh;
  position: relative;
  background: var(--color-background);
  color: var(--color-text);
}

body.page-template-front-page {
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

a > .site-header-title {
  color: var(--color-text);
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing--40);
}

.menu-item img.menu-icon {
  width: 100px;
  vertical-align: middle;
}

.menu-item img.menu-icon-paseos {
  width: 124px;
  vertical-align: middle;
  margin-bottom: -14px;
}

.menu-item img.menu-icon-talleres {
  width: 140px;
  vertical-align: middle;
}

.menu-separator {
  width: 25px;
}

.menu-separator-desktop,
.menu-separator-mobile {
  width: 25px;
}

.menu-separator-mobile {
  display: none;
}

.page-template-front-page body {
  background: var(--color-background);
}

h2.site-header-title {
  font-size: 32px;
  font-family: "Playwrite IT Moderna", serif;
  text-shadow: -1px -1px 0 var(--color-light), 1px -1px 0 var(--color-light),
    -1px 1px 0 var(--color-light), 1px 1px 0 var(--color-light);
}

a {
  text-decoration: none;
}

p a {
  text-decoration: underline;
  color: var(--color-text);
}

p {
  margin-bottom: 5px;
  margin-block-end: 10px;
}

p::selection {
  color: white;
  background-color: var(--color-text);
}

.hero-container {
  position: relative;
  max-height: 100vh !important;
  max-width: 100vw !important;
  overflow: hidden !important;
}

.hero-video {
  position: relative;
  width: 100vw;
  height: 56.25vw;
  max-height: 100vh;
  overflow: hidden;
}

.hero-video iframe {
  width: 100%;
  height: 100%;
}

/* Front-page content*/

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80vh;
  width: 100vw;
  text-align: center;
  padding: 24px;
}

.hero-image {
  max-width: 100%;
  max-height: 40vh;
  margin-bottom: 20px;
}

.hero-text {
  font-size: clamp(20px, 4vw, 32px);
  max-width: 50%;
  color: white;
  text-align: center;
}

/* Estilos para el Header */
header {
  border-bottom: 1px solid var(--color-text);
  padding: 8px var(--spacing--50);
  color: white;
  width: 100%;
  max-width: 100vw;
  z-index: 999;
}

a h2.site-site-header-title {
  text-decoration: none;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.front-page-logo {
  width: 50px;
}

.mobile-logo {
  display: none;
}

.logo {
  width: 600px;
  margin-bottom: -14px;
}

.page-title-wrapper {
  width: 100%;
  text-align: center;
  margin-bottom: 32px;
}

.page-title-logo {
  width: 140px;
}

.page-title-logo-about {
  width: 160px;
}

.page-title-logo-paseos {
  width: 200px;
}

.page-title-logo-otros {
  width: 160px;
}

.page-title-logo-talleres {
  width: 210px;
}

.page-title-logo-very-long {
  width: 400px;
}

/* Menú de navegación */
nav {
  pointer-events: all;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: var(--spacing--40);
  color: var(--color-text);
}

footer nav ul li {
  display: inline-block;
  border: 1px solid var(--color-text);
  background: var(--color-light);
  color: var(--color-text);
  border-radius: 50px;
  padding: calc(var(--spacing--20) - 1px) calc(var(--spacing--40) - 1px);
  display: flex;
  align-items: center;
  justify-content: center;
}

footer nav ul li:hover {
  background: var(--color-text);
  color: var(--color-light);
  border-color: var(--color-light);
}

/* nav ul li.current_page_item {
  background: var(--color-text);
  color: var(--color-light);
  border-color: var(--color-light);
} */

footer nav ul li a {
  text-decoration: none;
  display: block;
  font-size: 20px;
  color: inherit;
  padding: 10px;
  transition: color 0.3s;
}

main {
  padding: 16px;
  margin-top: 16px;
  margin-bottom: 60px;
}

footer {
  border-bottom: 1px solid var(--color-text);
  padding: 16px var(--spacing--50);
  position: fixed;
  bottom: 30px;
  color: white;
  width: 100%;
  display: flex;
  max-width: 100vw;
  z-index: 998;
  pointer-events: none;
}

.contact-link-wrapper {
  font-size: 16px;
}

/* FRONT PAGE*/
.page-template-front-page main {
  margin-top: 0;
}

.page-template-front-page footer nav ul li {
  border: 1px solid var(--color-light);
  background: transparent;
  color: var(--color-light);
  gap: var(--spacing--40);
}

.page-template-front-page .header-wrapper {
  color: var(--color-light);
}

.page-template-front-page footer nav ul li:hover {
  background: var(--color-text);
  color: var(--color-light);
  border-color: var(--color-light);
}

.page-template-front-page header,
.page-template-front-page footer {
  border-bottom: 1px solid white;
}

.page-template-front-page footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.contact-link {
  color: white;
  text-decoration: underline;
  pointer-events: auto;
}

.page-title {
  font-family: "Playwrite IT Moderna", sans-serif;
  text-align: center;
  margin-bottom: 24px;
  font-size: 48px;
  text-shadow: -1px -1px 0 var(--color-light), 1px -1px 0 var(--color-light),
    -1px 1px 0 var(--color-light), 1px 1px 0 var(--color-light);
}

/*404*/
.error {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80%;
  text-align: center;
}

.error p {
  text-align: center;
  margin-top: 12px;
  font-size: 24px;
}

/*GRID*/
.grid {
  display: grid;
  gap: 56px;
  list-style: none;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 80px;
}

.grid-item {
  text-align: center;
  font-size: 20px;
}

.talleres-list,
.otros-list {
  padding: 0 20px;
}

.grid-img {
  width: 100%;
  height: auto;
}

.grid-fecha {
  color: var(--text-color);
  text-align: center;
}

.grid-frame,
.grid-frame-otros {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.grid-frame:before {
  content: "";
  position: absolute;
  top: -6%;
  left: -7%;
  right: -7%;
  bottom: -6%;
  background-image: url("./assets/images/frames/marco-talleres.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 10;
}

.grid-frame-otros:before {
  content: "";
  position: absolute;
  top: -6%;
  left: -7%;
  right: -7%;
  bottom: -6%;
  background-image: url("./assets/images/frames/marco-otros.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 10;
}

.grid-title {
  font-size: 1.2rem;
  font-style: italic;
  margin: 8px 0;
  margin-top: 24px;
  color: var(--color-text);
  text-align: center;
}

.grid-institution {
  font-size: 0.9rem;
  color: var(--color-text);
  text-align: center;
}

.grid-description p {
  text-align: center;
}

.grid-description a {
  text-decoration: underline;
  color: var(--color-text);
}

p.grid-date {
  text-align: center;
  color: var(--color-text);
}

iframe {
  width: 120vw;
}

/*NOGRID*/

.about-page-container,
.paseos-page-container {
  display: flex;
  gap: 32px;
}

.team-image {
  max-width: 550px;
}

.about-content,
.paseos-content {
  font-size: 24px;
  margin-bottom: 80px;
  padding: 10px;
}

.paseos-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 48px;
}

.paseos-description {
  width: calc(55% - 16px);
  text-align: left;
  margin-bottom: 100px;
}

.metaslider .flex-viewport {
  border-radius: 10px;
  margin-top: 5px;
}

#metaslider_86 img {
  width: 100%;
  object-fit: cover;
}

.decoration-top-left {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none;
}

.decoration-bottom-right {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 999;
  pointer-events: none;
}

.decoration-bottom-right-background {
  position: fixed;
  bottom: 40px;
  right: 32px;
  z-index: -1;
  pointer-events: none;
}

.decoration-bottom-left {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
  transform: scaleX(-1);
  pointer-events: none;
}

.content {
  font-size: 24px;
  margin-top: 16px;
}

.relatoria-gallery img {
  border-radius: 10px;
}

.paseos-carousel-wrapper {
  width: calc(45% - 16px);
  display: flex;
  justify-content: center;
}

.page-description {
  font-size: 24px;
  margin-bottom: 48px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  padding: 0 20px;
}

.page-description p {
  width: calc(100% - calc(33% - 356px));
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#newsletterModal > div > iframe.modal-iframe {
  max-width: 100%;
  margin-top: 24px;
}

.title-newsletter-image {
  width: 100%;
}

.modal-content {
  background-image: url("./assets/images/bgnewsletter.png");
  background-size: auto;
  background-repeat: no-repeat;
  background-position: center;
  font-family: "", sans-serif;
  background-color: white;
  border: 1px solid #ff6719;
  padding: 20px;
  position: relative;
  max-width: 400px;
  width: 100%;
  border-radius: 8px;
}

.flower-image {
  position: absolute;
  right: -22px;
  top: -90px;
  width: 200px;
}

/*SCROLLBAR*/

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: white;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: white;
}

scrollbar {
  width: 8px;
  height: 8px;
  background-color: transparent;
  border-radius: 10px;
}

scrollbar-thumb {
  background-color: white;
  border-radius: 10px;
}

/*METASLIDER*/

.paseos-carousel-wrapper .metaslider-container-wrapper-relatoria,
.paseos-carousel-wrapper .metaslider-container-wrapper-paseos {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
}

.paseos-carousel-wrapper .metaslider-container {
  width: 100%;
  height: auto;
}

.paseos-carousel-wrapper .metaslider-container-wrapper-relatoria::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -4%;
  right: -4.3%;
  bottom: -6%;
  background-image: url("./assets/images/frames/marco-relatoria.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
}

.paseos-carousel-wrapper .metaslider-container-wrapper-paseos::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -5%;
  right: -5%;
  bottom: -5%;
  background-image: url("./assets/images/frames/marco-paseos.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
}

.paseos-carousel-wrapper .metaslider-container {
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  /* Tablets */
  body {
    font-size: var(--font-size-tablet);
  }

  .logo {
    width: 400px;
  }

  nav ul {
    gap: var(--spacing--40);
  }

  nav ul li a {
    font-size: var(--font-size-tablet);
    padding: var(--btn-padding-tablet);
  }

  header,
  footer {
    padding: var(--header-padding-tablet);
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-image {
    max-width: 300px;
    margin-bottom: var(--header-padding-tablet);
  }

  .hero-text {
    font-size: 18px;
    max-width: 100%;
  }

  iframe {
    width: 1537px;
  }

  .about-page-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .about-content {
    font-size: 24px;
    text-align: left;
  }

  .paseos-content {
    flex-direction: column;
  }

  .page-description p {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Móviles */
  body {
    min-height: 100vh;
  }

  .front-page-logo {
    display: none;
  }

  .mobile-logo {
    display: flex;
  }

  .menu {
    display: grid;
    grid-template-columns: 1fr min-content 1fr;
    align-items: center;
  }

  .menu-separator-desktop {
    display: none;
  }

  .menu-separator-mobile {
    display: flex;
  }

  nav ul li a {
    padding: 3px;
  }

  .menu-item {
    gap: 0;
  }

  .menu-item img.menu-icon-talleres,
  .menu-item img.menu-icon-paseos {
    width: 100px;
  }

  .menu-item img.menu-icon {
    width: 80px;
  }

  .logo {
    display: none;
  }

  .page-description {
    padding: 0;
  }

  nav ul {
    gap: var(--spacing--30);
    align-items: flex-end;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .hero-image {
    max-width: 100%;
  }

  .hero-content {
    height: calc(80vh - 80px);
  }

  .decoration-bottom-right {
    z-index: -1;
  }

  .decoration-bottom-left {
    display: none;
  }

  .paseos-content {
    flex-direction: column-reverse;
    gap: 16px;
  }

  .paseos-description,
  .paseos-carousel-wrapper {
    width: 100%;
    margin-bottom: 28px;
  }

  .page-template-front-page footer {
    flex-direction: column;
  }

  .page-template-front-page footer {
    align-items: center;
  }

  .contact-link-wrapper {
    padding-top: 8px;
  }

  .contact-link-text {
    display: none;
  }

  .team-image {
    max-width: 100%;
  }

  .about-content,
  .paseos-content,
  .paseos-description,
  .page-description,
  .grid-item {
    font-size: 18px;
  }

  .paseos-carousel-wrapper .metaslider-container-wrapper-relatoria,
  .paseos-carousel-wrapper .metaslider-container-wrapper-paseos {
    width: 95%;
    max-width: 95%;
  }

  .paseos-carousel-wrapper .metaslider-container-wrapper-paseos::before,
  .paseos-carousel-wrapper .metaslider-container-wrapper-relatoria::before {
    top: -10%;
    left: -8%;
    right: -8%;
    bottom: -5%;
  }

  .talleres-list,
  .otros-list {
    padding: 0;
  }

  .hero-text,
  a.footer-link,
  .contact-link {
    font-size: 14px;
  }

  .title-newsletter-image {
    max-width: 100%;
  }

  .page-title-logo-very-long {
    width: 300px;
  }
}
