@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
:root {
  --white: #ffffff;
  --black: #000000;
  --gray-300: #6c5d53;
  --gray-100: #a2a2a2;
  --gray-500: #4a403a;
  --gray--600: #c6c6c6;
  --black-light: rgba(23, 21, 22, 1);
  --red: #ad3129;
  --blue: #0088cc;
  --blue-dark: #2f3648;
  --red-dark: #9b2743;
  --yellow: #ba9302;
}

html {
  scroll-behavior: smooth;

  box-sizing: border-box;
}
.paragraph--type--block h2 {
  text-align: center;
}
html,
body {
  padding: 0;
  margin: 0;
}

body {
  font-size: 1.125rem;
  line-height: 1.4;
  font-family: "Montserrat", sans-serif;
  color: var(--gray-500);
  font-weight: normal;
  background-color: #f9f7f5;
}
#block-views-block-publicaciones-block-2 ul {
  /*margin: 30px 0px;*/
  padding: 0px 0px 0px 25px;
  list-style: disc;
}
ul.lista-publicaciones {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
#block-views-block-publicaciones-block-1 header {
  position: relative !important;
  background-color: transparent;
  display: block;
  margin: 20px 0px;
  font-size: 20px;
  text-align: center;
}
ul.lista-hemeroteca {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}
/*ul.lista-hemeroteca li a p {
  margin-bottom: 4px;
  margin-top: 4px;
}
ul.lista-hemeroteca li {
  border-bottom: solid 1px #e8e1dc;
  padding: 20px 0px;
}
ul.lista-hemeroteca li:last-child {
  border-bottom: none;
}
ul.lista-hemeroteca li a span,
ul.lista-publicaciones li a span {
  color: var(--gray-500);
  font-size: 0.9rem;
}
*/
figcaption {
  font-style: italic;
  font-size: 0.8rem;
  margin-top: 14px;
}
figure {
  margin: 0;
  padding: 0;
}
ul.contacto {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  flex-direction: column;
}
ul.contacto li div {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
label,
legend {
  font-weight: normal;
  margin-bottom: 6px;
  display: block;
  font-size: 14px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 14px 12px;
  box-sizing: border-box;
  border: solid 1px #e8e1dc;
  border-radius: 6px;
  width: max-content;
}
input[type="submit"] {
  display: block;
  padding: 16px 32px;
  color: #fff;
  border-radius: 24px;
  border: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  width: max-content;
  background-color: #6c5d53;
  color: var(--white);
  font-size: 1.3rem;
}
img,
picture {
  margin: 0;
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2 {
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
}
h1,
h2,
h3,
strong {
  color: var(--gray-300);
}

h1 {
  font-size: 3.5em;
}

h2 {
  font-size: 2.2em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  margin: 0;
}

.titulo-pagina {
  text-align: center;
  padding-top: 5rem;
}

strong {
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--yellow);
}

.button {
  display: inline-flex;
  background-color: var(--red-dark);
  color: var(--white);
  padding: 14px 60px 14px 30px;
  position: relative;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 30px;
}

.button::after {
  content: "\e606";
  font-family: "simple-line-icons";
  font-size: 16px;
  position: absolute;
  right: 24px;
}

.button:hover {
  background-color: var(--gray-500);
}

.container {
  max-width: 1200px;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.exposiciones-content {
  display: flex;
  align-items: top;
  justify-content: space-between;
  padding: 3.5rem 0px;
  grid-gap: 50px;
}

.exposiciones-right__inner {
  padding: 20px;
  border-radius: 6px;
  border: solid 1px #cdcdcd;
  background-color: #f5f5f5;
  font-size: 0.9rem;
}

.exposiciones-right__inner .field {
  margin: 10px 0px;
}

.img-left-exp {
  position: relative;
  margin-top: 2rem;
}

.buy-exposicion {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translate(-50%, -50%);
}

.buy-exposicion a {
  background-color: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  width: 100px;
  height: 100px;
  padding: 12px;
  justify-content: center;
  border-radius: 50%;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.buy-exposicion a:hover {
  background-color: var(--blue-dark);
}

.exposiciones-right__inner .field__label {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--black);
}

.exposiciones-left,
.exposiciones-right {
  width: 25%;
}

.exposiciones-center {
  width: 50%;
}

.exposiciones-center h1 {
  margin-top: 0;
}

.general-button {
  display: inline-flex;
  background-color: var(--red);
  color: var(--white);
  padding: 14px 60px 14px 30px;
  position: relative;
  cursor: pointer;
  transition: 0.3s;
  margin-bottom: 20px;

  border-radius: 30px;
}

.general-button::after {
  content: "\e606";
  font-family: "simple-line-icons";
  font-size: 16px;
  position: absolute;
  right: 24px;
}

.general-button:hover {
  background-color: var(--black);
}

.img-left-exp img {
  display: block;
  width: 300px;
  height: 300px;
  object-fit: cover;
}

.exposicion-gallery {
  padding: 2.5rem 0px;
  background-color: var(--gray-500);
}

.exposicion-gallery img {
  width: 100%;
  display: block;
  height: 400px;
  object-fit: cover;
}

.exposicion-gallery h2 {
  color: var(--white);
}

.exposicion-gallery ul {
  list-style: none;
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

ul.lista-actividades {
  margin: 0;
  padding: 0;
}

ul.lista-actividades li:hover a img,
ul.lista-actividades-page li:hover a img {
  transform: scale(1.1);
}

ul.lista-actividades li img,
ul.lista-actividades-page li img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  width: 100%;
  transform: scale(1);
  height: 272px;
}

ul.lista-actividades li a,
ul.lista-actividades-page li a {
  background-color: #fff;
  display: block;
  color: #333;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0, 0, 0.5, 1);
  border-radius: 20px;
  overflow: hidden;
  height: 540px;
}

ul.lista-actividades li a:hover,
ul.lista-actividades-page li a:hover {
  background-color: #f5f5f5;
}

#block-views-block-actividades-block-1 h2 {
  text-align: center;
}

ul.lista-actividades h3,
ul.lista-actividades-page h3 {
  margin: 0px 0px 14px 0px;
  font-size: 1.66667rem;
  line-height: 1.26667;
  font-size: 24px;
  font-weight: 600;
  color: #006666;
}

ul.lista-actividades-page {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  list-style: none;
  flex-wrap: wrap;
}

ul.lista-actividades-page li {
  flex-basis: calc(32.33% - 10px);
  margin: 10px;
}

.view-actividades {
  background-color: #e5e5e5;
  padding: 4.5rem 0px;
}

.teaser__content {
  padding: 30px;
}

.teaser__content span {
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.teaser__content span::before {
  content: "\e075";
  font-family: "simple-line-icons";
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
}

.teaser__content p {
  margin-top: 0px;
}

.teaser__imagen {
  position: relative;
  height: 272px;
  overflow: hidden;
}

.content__inner {
  display: flex;
}

.col__left {
  flex: 0.5;
}

.col__right {
  flex: 1;
}

.col__right .lista-actividades-page {
  gap: 14px;
}

.col__right .lista-actividades-page li {
  flex-basis: calc(100%);
  margin: 0;
}

.col__right .lista-actividades-page li a {
  display: flex;
  height: auto;
  flex-direction: row;
  align-items: center;
}

.col__right .lista-actividades-page li a .teaser__imagen {
  height: auto;
  width: 160px;
}

.col__right .lista-actividades-page li a .teaser__content {
  width: 70%;
  padding: 0px 20px;
}

.col__right .lista-actividades-page li a .teaser__content h3 {
  font-size: 1rem;
}

.col__right .lista-actividades-page li a img {
  height: 100px;
  width: 100px;
  object-fit: cover;
}

.col__center {
  flex: 2;
}
.align-right {
  margin: 20px 0px 20px 20px;
}
/*HEADER*/
header {
  background-color: #fff;
  position: fixed;
  width: 100%;
  z-index: 1000;
}
.views-element-container header {
  width: 100%;
  position: relative;
  padding: 20px;
  display: none;
}
.region-header-right {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
}
.region-header-right img {
  width: 110px;
}
#block-general-menuheader ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  justify-content: end;
}

#block-general-menuheader ul li a {
  color: var(--gray-100);
}

#block-general-menuheader li#buscar {
  position: relative;
  margin-left: 30px;
  width: 40px;
}

#block-general-menuheader li#buscar a {
  font-size: 0;
}

#block-general-menuheader li#buscar a::before {
  content: "\e090";
  font-family: "simple-line-icons";
  font-size: 20px;
  position: absolute;
  top: -4px;
}

header a.site-logo img {
  width: 260px;
}

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

#block-general-main-menu ul {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

ul.categorias-actividades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 3rem 0px;
  padding: 0;
  gap: 20px;
  list-style: none;
}

ul.categorias-actividades li img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  width: 100%;
  transform: scale(1);
  height: 390px;
}

ul.categorias-actividades li:hover a img {
  transform: scale(1.1);
}

.teaser__imagen__categorias {
  position: relative;
  height: 390px;
  overflow: hidden;
}

ul.categorias-actividades li a {
  background-color: #fff;
  display: block;
  color: #333;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0, 0, 0.5, 1);
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.08);
}

ul.categorias-actividades li h2 {
  margin: 10px 0px;
  color: var(--white);
  font-weight: normal;
  font-size: 1.2rem;
}

ul.categorias-actividades li .teaser__content {
  position: absolute;
  bottom: 0;
  background-color: var(--gray-300);
  width: 100%;
  display: block;
  color: var(--white);
  padding: 10px 30px;
}

.path-actividades {
  background-color: var(--gray--600);
}

/*HEADER*/
/*FOOTER*/
footer {
  background-color: #e8e1dc;

  padding: 3rem 0px;
}

.footer-bottom {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-mc {
  width: 280px;
}

ul.social-network {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  list-style-type: none;
  justify-content: right;
  gap: 20px;
}

ul.social-network li {
  display: flex;
  margin-right: 10px;
}

ul.social-network .icon-twitter::before {
  content: "";
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
  position: relative;
  background-image: url("../images/x_twitter.svg");
  background-repeat: no-repeat;
  display: block;
}

ul.social-network .icon-instagram::before {
  content: "";
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
  position: relative;
  background-image: url("../images/instagram.svg");
  background-repeat: no-repeat;
  display: block;
}

ul.social-network .icon-facebook::before {
  content: "";
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
  position: relative;
  background-image: url("../images/facebook.svg");
  background-repeat: no-repeat;
  display: block;
}

ul.social-network .icon-youtube::before {
  content: "";
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
  position: relative;
  background-image: url("../images/youtube.svg");
  background-repeat: no-repeat;
  display: block;
}

ul.social-network .icon-tiktok::before {
  content: "";
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
  position: relative;
  background-image: url("../images/tiktok.svg");
  background-repeat: no-repeat;
  display: block;
}

ul.social-network li a {
  font-size: 0;
}

footer ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  justify-content: center;
  display: flex;
  gap: 4rem;
}

footer ul li a {
  color: var(--black);
  padding: 4px 0px;
  display: block;
}

footer h2 {
  font-size: 0.8rem;
  font-weight: normal;
  text-transform: uppercase;
  color: var(--white);
}

/*ENDFOOTER*/

.social-media-sharing ul {
  padding: 0px 2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.path-servicios .region-content {
  background-color: #c6d3cc;
}
#paragraph-62 .paragraph--type--text {
  padding: 0;
}
ul.zonas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  transition: transform 0.4s ease;
}
.aglobal:hover img {
  transform: scale(1.05);
}
ul.zonas li:last-child {
  grid-column: 1 / span 4;
}
ul.zonas img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.aglobal {
  position: relative;
  overflow: hidden;
}
.aglobal a {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: 100%;

  display: flex;
  justify-content: center; /* centra horizontal */
  align-items: center; /* centra vertical */
  text-align: center; /* opcional, para texto multilinea */
}
.arelative {
  position: absolute;
  translate: -50% -50%;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background-color: rgba(0, 0, 0, 0.5); */
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Contenedor UL que alinea los elementos en línea */
.lista-actividades1 {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0;
  list-style: none;
  margin: 0;
}

/* Cada item LI debe mantener su tamaño */
.lista-actividades1 li {
  flex: 1 1 calc(33.333% - 22.66px); /* 3 columnas - compensación por gap */
  box-sizing: border-box;
  margin-right: 34px; /* el gap */
}

.lista-actividades1 li:last-child {
  margin-right: 0;
}

/* Caja de teaser con imagen de fondo */
.lista-actividades1 .teaser-box {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  color: white;
  text-decoration: none;
  overflow: hidden; /* importante para cortar el zoom */
}

.lista-actividades1 .teaser-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  z-index: 0;
  transform: scale(1);
}

.lista-actividades1 .teaser-box:hover::before {
  transform: scale(1.1); /* Zoom al pasar el mouse */
}

/* Título sobre fondo oscuro */
.lista-actividades1 .teaser-box h3 {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  margin: 0;
  padding: 10px;
  width: 100%;
  text-align: center;
  font-size: 1.2em;
  color: var(--white);
}

.page-header {
  margin-bottom: 0px;
}
.form-item-participar div {
  margin-bottom: 0px;
}
.more-link {
  width: 10%;
  padding: 10px;
  border: 1px solid var(--gray-300);
  text-align: center;
  border-radius: 15px;
}
.more-link a {
  color: var(--gray-300);
}
.more-link a:hover {
  text-decoration: underline;
}
.container-hemeroteca {
  margin: 20px;
}
.container-hemeroteca p {
  margin: 0px;
}
.video__wrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
}

#hero__video-0,
#hero__video-1 {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Solo visible en pantallas grandes (ej. desktop) */
.video-desktop {
  display: block;
}

.video-movil {
  display: none;
}
#block-general-navegacionprincipal {
  margin-right: 5rem;
}
@media screen and (max-width: 768px) {
  .lista-actividades1 {
    display: block;
  }
  .lista-actividades1 li {
    flex: 1 1 calc(33.333% - 22.66px);
    box-sizing: border-box;
    margin-right: 0px;
  }
  #block-general-navegacionprincipal {
    margin-right: 0rem !important;
  }
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  textarea,
  select {
    width: 100%;
  }
  .node--type-actividad .global__text .field--name-field-image {
    display: none;
  }
  #block-general-logodama {
    display: none;
  }
  .more-link {
    width: 30%;
  }
  #paragraph-72 .field--name-field-imagen {
    display: none;
  }
  #paragraph-72 ul.lista-actividades1 li {
    margin-bottom: 10%;
  }
  ul.zonas li {
    margin-bottom: 10%;
  }
  .paragraph--type--columna-imagen-texto h1,
  .paragraph--type--columna-imagen-texto h2 {
    margin-top: 16px !important;
  }

  .video-desktop {
    display: none;
  }

  .video-movil {
    display: block;
  }
}
