/* Resetear margenes y padding del body y html para asegurar que ocupen todo el viewport */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  padding-top: 100px; /* Ajustar para el header fijo */
}

/* Estilos del header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px; /* Ajustar según la altura de tu header */
  background-color: #333;
  text-align: center;
  z-index: 1000;
}
.titulo {
    margin-bottom: 20px;
    text-align:left;
}


/* Contenedor principal que ocupará el resto del espacio */
.main-content {
  flex: 1;
  padding: 20px;
}

/* Estilos del footer */
footer {
  background-color: #efefef;
  padding: 50px 0;
  text-align: center;
  margin-top: auto; /* Empuja el footer hacia abajo */
}

footer a {
  text-decoration: none !important;
  color: black;
}

footer strong {
  font-size: 25px;
}

/* Otros estilos */
.enlaces-interes {
  padding: 3rem 0;
}

.enlaces-interes h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.enlace {
  position: relative;
  color: white;
  text-align: center;
  background-size: cover;
  background-position: center;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: transform 0.3s ease-in-out;
}

.enlace:hover {
  transform: scale(1.05);
}

.enlace::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: background 0.3s ease-in-out;
}

.enlace:hover::before {
  background: rgba(0, 0, 0, 0.3);
}

.enlace a {
  position: relative;
  z-index: 2;
  color: white;
  text-decoration: none !important;
}

/* Estilo de botones */
.boton {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none !important;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.boton:hover {
  background-color: #0056b3;
}

/* Estilos de tarjetas y anuncios */

.card {
  border: 1px solid #d1e7dd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* Para asegurar que las imágenes no se desborden */
}

.card-img-top {
  width: 100%; /* Ocupa el 100% del ancho del contenedor */
  height: 200px; /* Ajusta la altura fija que prefieras */
  object-fit: cover; /* Asegura que la imagen se cubra sin deformarse */
}

.card-body {
  padding: 1rem;
  text-align: center; /* Centra el contenido dentro del cuerpo de la tarjeta */
}

.card a {
  color: #007bff; /* Cambia el color del enlace si es necesario */
  text-decoration: none !important; /* Remueve el subrayado del enlace */
}

.card a:hover {
  text-decoration: none !important; /* Subraya el enlace al pasar el cursor */
}

.card, .anuncio {
  transition: transform 0.3s ease-in-out;
}

.card:hover, .anuncio:hover {
  transform: scale(1.05);
}

.anuncio {
  border: 1px solid #d1e7dd;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.anuncio a {
  color: black;
  text-decoration: none !important;
  font-size: 1.2rem;
}

/* Estilos específicos para eventos */
#cmsdip-pro-fiestas-view1 p strong {
  font-size: 21px;
  line-height: 1.25;
  width: 100%;
  display: inline;
  padding-bottom: 20px;
}

#cmsdip-pro-fiestas-view1 p {
  font-size: 20px;
}

#cmsdip-pro-noticias-view1 .left, #cmsdip-pro-fiestas-view1 .left {
  width: 230px;
}

#cmsdip-pro-noticias-view1 .left img, #cmsdip-pro-fiestas-view1 .left img {
  width: 200px;
}

#cmsdip-pro-noticias-view1 .right a, #cmsdip-pro-fiestas-view1 .right a {
  color: #23a29a;
  font-size: 26px;
}

#cmsdip-pro-noticias-view1 .container, #cmsdip-pro-fiestas-view1 .container {
  margin-top: 50px;
  margin-bottom: 30px;
}

#cmsdip-pro-fiestas-view1 .right {
  line-height: 30px;
}

/* Estilos de galería */
.node_images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 20px;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 100vw;
  max-width: 100%;
  margin: 20px 0;
  box-sizing: border-box;
}

.node_images_page {
  grid-column: span 4;
  font-size: 26px;
  color: #000;
  font-weight: bold;
  text-align: center;
  margin: 0;
  padding: 20px 0;
  background-color: #f8f8f8;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.node_images a {
  display: block;
  text-decoration: none !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.node_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.node_images a:hover .node_image {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilos de recetas */
.container-recetas {
  width: 80%;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ccc;
  background-color: #fff;
}

.container-recetas h1 {
  text-align: center;
  color: #005580;
}

.image-section {
  text-align: center;
}

.image-section img {
  max-width: 100%;
  height: auto;
}

.recetas {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.recetas div {
  width: 45%;
}

.recetas button {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  text-align: center;
  background-color: #005580;
  color: #fff;
  border: none;
  cursor: pointer;
}

.recetas button:hover {
  background-color: #004466;
}

.receta-detalle {
  display: none;
  margin-top: 20px;
}

.receta-detalle img {
  max-width: 100%;
  height: auto;
}

.ingredientes, .elaboracion {
  margin-top: 10px;
}

.ingredientes ul, .elaboracion ol {
  margin-left: 20px;
}
/*
form {
  height: 500%;
}
*/
/* Media Queries */
@media (max-width: 1200px) {
  .node_images {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .node_images {
    grid-template-columns: repeat(4, 1fr);
  }

  .recetas {
    flex-direction: column;
    align-items: center;
  }

  .recetas div {
    width: 90%;
  }
}

@media (max-width: 600px) {
  .node_images {
    grid-template-columns: repeat(4, 1fr);
  }

  .recetas button {
    padding: 8px;
    font-size: 14px;
  }

  header {
    height: 110px;
  }

  body {
    padding-top: 80px;
  }
}


/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(0, 0%, 100%);
  --black-color-light: hsl(0, 0%, 99%);
  --black-color-lighten: hsl(0, 0%, 100%);
  --white-color: #000000;
  --body-color: hsl(0, 0%, 0%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
}

ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

a {
  text-decoration: none !important;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--black-color);
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
  z-index: var(--z-fixed);
}

.nav {
  height: var(--header-height);
}

.nav__logo {
  font-weight: var(--font-semi-bold);
}

.nav__toggle {
  position: absolute;
  right: 1rem; /* Asegura que esté a la derecha */
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
}

.nav__burger,
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
  .nav__list {
    background-color: var(--black-color);
    padding-top: 1rem;
  }
}

.nav__link {
  color: var(--white-color);
  background-color: var(--black-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
}

.nav__link:hover {
  background-color: var(--black-color-light);
}

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
}

.dropdown__link, 
.dropdown__sublink {
  padding: 1.25rem 1.25rem 1.25rem 2.5rem;
  color: var(--white-color);
  background-color: var(--black-color-light);
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
}
a.dropdown__link {
    text-decoration: none !important;
}

.dropdown__link i, 
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover, 
.dropdown__sublink:hover {
  background-color: var(--black-color);
}

.dropdown__menu, 
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
}

/* Show dropdown menu & submenu */
.dropdown__item:hover .dropdown__menu, 
.dropdown__subitem:hover > .dropdown__submenu {
  max-height: 1000px;
  transition: max-height .4s ease-in;
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: var(--black-color-lighten);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1118px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }
  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item, 
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu, 
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }

  .dropdown__link, 
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: .5rem;
  }

  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top .3s;
  }

  /* Show dropdown submenu */
  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top .3s;
  }
}
  /* Show dropdown submenu */
  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top .3s;
  }
}

.text-light {
     text-decoration: none !important;
}

ul {
  padding-left: 0rem !important;
}


.container-instalaciones {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.reserva {
    text-align: center;
    margin-bottom: 20px;
}

.reserva a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.instalaciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.instalaciones button {
    margin: 5px;
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.instalaciones button:hover {
    background-color: #0056b3;
}

.detalle-instalacion {
    display: none;
    margin: 20px 0;
    text-align: center;
}

.detalle-instalacion img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.mayor-message {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.image-container {
    flex: 1;
    max-width: 300px;
    margin-right: 20px;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.text-container {
    flex: 2;
}

.text-container p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

