/* Variables y configuración */
:root {
  /* Colores - Paleta simplificada basada en el color primario */
  --primario: #306090;

  --primario:#172e45;

  --primario-oscuro: #1e3a5f;
  --primario-claro: #5b8bc3;
  --primario-muy-claro: #d0e0f0;
  --primario-casi-blanco: #f0f5fa;
  --acento: #306090;
  --acento-claro: #5b8bc3;

  /* Mantener colores del calendario */
  --verde: #2d7d32;
  --verde-claro: #66bb6a;

  --verde:#45ba4d;
  --verde-claro:#8bcb8e;


  --rojo:#a10302;

  /* Escala de grises */
  --gris-1: #2c2c2c;
  --gris-2: #616161;
  --gris-3: #9e9e9e;
  --gris-4: #bdbdbd;
  --gris-5: #e0e0e0;
  --gris-6: #f5f5f5;

  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
}

/* Importar fuente sans-serif para títulos */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

svg {
    display: inline-block;
    font-size: inherit;
    height: 1em;
    overflow: visible;
    vertical-align: -0.125em;
}

/* Barra Superior */
.top-bar {
  background-color: var(--primario-oscuro);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
}

.top-bar-link {
  color: #eee;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-link:hover {
  color: #fff;
}

.top-bar-link img,
.top-bar-social-icon img,
.top-bar-phone img {
  filter: brightness(0) invert(1) opacity(0.9);
  transition: filter 0.3s ease;
}

.top-bar-link:hover img,
.top-bar-social-icon:hover img,
.top-bar-phone a:hover img {
  filter: brightness(0) invert(1);
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.top-bar-social-icon:hover {
  transform: translateY(-1px);
}

.top-bar-phone {
  display: flex;
  align-items: center;
}

.top-bar-phone a {
  color: #eee;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-phone a:hover {
  color: #fff;
}

.top-bar-separator {
  width: 1px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.3);
}

/* Responsive para barra superior */
@media (max-width: 768px) {
  .top-bar {
    padding: 0.375rem 0;
    font-size: 0.8rem;
  }

  .top-bar-content {
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .top-bar-separator {
    height: 16px;
  }

  .top-bar-social {
    gap: 0.375rem;
  }

  .top-bar-social-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .top-bar-content {
    gap: 0.75rem;
  }

  .top-bar-separator {
    display: none;
  }
}

/* Fuentes del sistema */

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 400;
  line-height: 1.6;
  color: #2c2c2c; /* Cambiar de var(--primario) a gris oscuro */
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--primario);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--verde);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Aplicar la nueva tipografía sans-serif a los títulos */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--primario-oscuro);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: var(--spacing-sm);
  color: #4a4a4a; /* Añadir color gris para párrafos */
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primario);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primario-oscuro);
  color: white;
}

.btn-secondary {
  background-color: var(--primario);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--primario-oscuro);
  color: white;
}

.btn-tertiary {
  background-color: var(--primario);
  color: white;
}

.btn-tertiary:hover {
  background-color: var(--primario-oscuro);
  color: white;
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--primario);
  color: var(--primario);
}

.btn-outline:hover {
  background-color: var(--primario);
  color: white;
}

/* Header y Menú Hamburguesa */
.header {
  padding: 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0.5rem 0;
}

.logo {
  display: block;
}

.logo img {
  min-width: 118px;
}

/* Menú hamburguesa - Solo visible en móvil */
.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 200;
}

.menu-button span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--primario);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.main-nav {
  display: flex;
}

.main-nav ul {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

/* Cambiar el color de los enlaces del menú principal */
.main-nav a {
  font-weight: 500;
  color: var(--primario-oscuro);
}

.main-nav a:hover {
  color: var(--primario);
}

/* Dropdown menu styles */
.haspopup {
  position: relative;
}

.midropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid var(--gris-5);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.midropdown ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column; /* Asegurar que estén en columna */
  gap: 0;
}

.midropdown li {
  margin: 0;
  width: 100%;
}

.midropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--primario-oscuro);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  width: 100%;
  text-align: left; /* Alinear texto a la izquierda */
}

.midropdown a:hover {
  background-color: var(--primario-casi-blanco);
  color: var(--primario);
}

/* Show dropdown on hover and focus */
.haspopup:hover .midropdown,
.haspopup:focus-within .midropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile styles for dropdown */
@media (max-width: 768px) {
  .midropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: var(--gris-6);
    margin-top: 0.5rem;
    border-radius: 4px;
  }

  .midropdown ul {
    display: flex;
    flex-direction: column; /* Mantener en columna en móvil */
  }

  .midropdown a {
    padding: 0.5rem 1rem !important;
    font-size: 1rem;
    text-align: left; /* Alinear a la izquierda en móvil */
  }
}

/* Botón de Reservas en el menú */
.nav-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primario);
  border-radius: 4px;
  transition: all 0.3s ease;
  color: #eee;
  font-weight: 600;
}

/* Cambiar el color del icono para que coincida con el texto */
.nav-button img {
  filter: none; /* Eliminar el filtro que lo hacía blanco */
  transition: filter 0.3s ease;
  width: 16px;
  height: 16px;
}

.nav-button:hover {
  background-color: #eee;
  color: var(--primario-oscuro);
}

.nav-button:hover img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(23%) saturate(1909%) hue-rotate(182deg) brightness(94%)
    contrast(88%);
}

/* Hero Section */

.hero {
  background-image: url("https://images.unsplash.com/photo-1601758228041-f3b2795255f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&h=845");
  background-size: cover;
  background-position: center;
  color: white;
  padding: var(--spacing-xl) 0;
  position: relative;
  min-height: 345px;
  max-height: calc(98vh - 160px);
  display: flex;
  align-items: center;
  aspect-ratio: 1600 / 845;
  width: 100%;
}

@media (max-width: 575px) {
  .hero {
    aspect-ratio: 896 / 1809;
    align-items: flex-start;
    padding-top: var(--spacing-lg);
    max-height: calc(98vh - 130px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

/* Título con background en cada línea */
.hero h1 {
  margin-bottom: var(--spacing-md);
  background-color: var(--primario);
  color: white;
  padding: 0.2rem 0.8rem;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  line-height: 1.6;
  box-shadow: 0.5rem 0 0 var(--primario), -0.5rem 0 0 var(--primario);
}

@media (max-width: 575px) {
  .hero-content {
    max-width: 30ch;
    max-width: 35ch;
  }
  .hero h1 {
    font-size: 1.75rem;
    max-width: 60%;
  }
}

/* Flecha de scroll */
.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.scroll-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%) translateY(-5px);
}

/* Icono de la flecha */
.scroll-arrow::after {
  content: "↓";
  font-size: 24px;
  color: white;
  font-weight: bold;
}

/* Animación de latido */
.scroll-arrow {
  animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
  0% {
    transform: translateX(-50%) scale(1);
  }
  14% {
    transform: translateX(-50%) scale(1.1);
  }
  28% {
    transform: translateX(-50%) scale(1);
  }
  42% {
    transform: translateX(-50%) scale(1.1);
  }
  70% {
    transform: translateX(-50%) scale(1);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

@media (max-width: 575px) {
  .scroll-arrow {
    bottom: 3rem;
  }
}

/* Smooth scroll para toda la página */
html {
  scroll-behavior: smooth;
}

/* Añadir scroll-margin a las secciones principales para compensar header sticky */
main,
.free-courses,
section:not(.hero) {
  scroll-margin-top: 160px; /* Aumentar de 120px a 160px para compensar la barra superior */
}

/* Servicios del Hotel - Con cards clickeables */
.channels {
  padding: var(--spacing-xl) 0;
}

.channel-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.channel-card {
  border-radius: 8px;
  border: 2px solid var(--primario); /* Añadir borde del color primario */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.channel-card:hover .card-image img {
  transform: scale(1.05);
}

.channel-card .btn {
  margin: var(--spacing-md);
  align-self: center;
  position: relative;
  z-index: 2;
}

/* Pseudoelemento para hacer toda la card clickeable */
.channel-btn {
  position: relative;
}

.channel-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
  /* Expandir para cubrir toda la card */
  top: calc(-100% - 250px); /* Subir para cubrir la imagen y el espacio superior */
  height: calc(200% + 250px); /* Altura para cubrir toda la card */
  width: 100%;
}

/* Feature Sections */
.feature-section {
  padding: var(--spacing-xl) 0;
  background-color: white;
}

.feature-section-alt {
  background-color: var(--primario-casi-blanco);
}

.feature-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.feature-text {
  padding: var(--spacing-md) 0;
}

.feature-text h2 {
  margin-bottom: var(--spacing-md);
  color: var(--primario);
}


.feature-section .parrafada a {
    text-decoration:underline;
    text-underline-offset: 0.25em;
}

/* Nuevo div para agrupar párrafos */
.parrafada {
  margin-bottom: var(--spacing-md);
}

.parrafada p {
  margin-bottom: var(--spacing-xs);
}

.parrafada p:last-child {
  margin-bottom: 0;
}


    .parrafada :is(ul, ol) {
        margin-bottom: var(--spacing-xs);
        padding-left:1.5rem;
    list-style: disc;
}

    .parrafada :is(ul, ol) li + li{
        margin-top: var(--spacing-xs);
    }



.feature-text .btn {
  background-color: var(--primario);
  color: white;
  margin-top: var(--spacing-sm);
}

.feature-text .btn:hover {
  background-color: var(--primario-oscuro);
}


.feature-image {
/*height: 480px;*/
border-radius: 8px;
overflow: hidden;
/*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);*/
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
aspect-ratio: 4/3;
}

/* Añadir sombra a las imágenes de feature-section */
.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    border-radius: 8px;
    
}

.feature-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  /*box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);*/
}
.feature-image img:hover {
  /*transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);*/
}

/* Servicios Especializados - Rediseño de cards con fondo oscuro */
.free-courses {
  padding: var(--spacing-xl) 0;
  background-color: var(--primario);
  color: white;
  position: relative;
}

/* SVG curvo en la parte superior */
.curve-top {
  position: absolute;
  top: -49px;
  left: 0;
  width: 100%;
  height: 50px;
  fill: var(--primario);
  color: var(--primario);
  display: block;
  background: transparent; /* Fondo transparente */
  margin-top: -1px; /* Ajuste para evitar líneas de separación */
}

.free-courses h2,
.free-courses p {
  color: white;
}

/* Estilo para el texto introductorio con ancho limitado */
.free-courses > .container > p {
  max-width: 600px;
  margin: 0 auto var(--spacing-lg) 0;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.6;
}

.course-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

/* Mover el borde de category-card a category y añadir padding */
.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  transition: transform 0.3s ease;
  border: 2px solid white; /* Borde blanco movido aquí */
  border-radius: 12px;
  padding: var(--spacing-sm); /* Padding para que el botón no toque el borde */
}

.category:hover {
  transform: translateY(-5px);
}

/* Estilos para el icono de huella */
.paw-icon {
  filter: brightness(0) invert(1);
  width: 64px; /* Aumentar de auto a 64px */
  height: 64px; /* Aumentar de auto a 64px */
  transition: transform 0.3s ease;
}

.category:hover .paw-icon {
  transform: scale(1.1);
}

/* Card principal con icono y texto - ahora con borde y sin fondo */
/* Eliminar el borde de category-card */
.category-card {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  gap: var(--spacing-sm);
  position: relative;
  overflow: hidden;
  box-shadow: none; /* Eliminar la sombra */
  transition: all 0.3s ease;
  border: none;
  background-color: transparent; /* Sin color de fondo */
}

.category:hover .category-card {
  box-shadow: none; /* Eliminar la sombra en hover */
}

/* Eliminar colores de fondo específicos para cada categoría */
.category-card.alojamiento,
.category-card.cuidados,
.category-card.actividades,
.category-card.especiales {
  background-color: transparent;
}

/* Ajustar el tamaño del contenedor del icono */
.category-icon {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-xs);
}

/* Icono */
.category-icon img {
  height: 64px; /* Tamaño específico */
  width: 64px; /* Tamaño específico */
  object-fit: contain;
}

.category-icon svg {
  font-size:3rem;
}

/* Texto */
.category h3 {
  color: white;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

/* Botón debajo de la card */
.category .btn-outline {
  border: 2px solid white;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  color: white;
  background-color: transparent;
}

/* Colores específicos para cada categoría - ahora todos blancos */
.category.alojamiento .btn-outline,
.category.cuidados .btn-outline,
.category.actividades .btn-outline,
.category.especiales .btn-outline {
  border-color: white;
  color: white;
}

/* Hover para todos los botones */
.category .btn-outline:hover {
  background-color: white !important;
  color: var(--primario);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: white;
}

/* Noticias y Novedades - Con cards clickeables */
.news {
  padding: var(--spacing-xl) 0;
}

.news h2 {
  color: var(--primario);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.news-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Cambiar el color del título al hacer hover en la card */
.news-card:hover .news-title-link {
  color: var(--primario-oscuro);
}

.news-image {
  height: 180px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: var(--spacing-md);
  position: relative;
  z-index: 2;
}

.news-date {
  color: var(--primario-claro);
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

/* Estilos para el enlace del título */
.news-title-link {
  color: var(--primario);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-title-link:hover {
  color: var(--primario-oscuro);
}

/* Pseudoelemento que hace toda la card clickeable */
.news-title-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

.news-content p {
  color: #666666; /* Color gris para texto de noticias */
}

/* Eventos y Actividades - Fondo oscuro */
.events-social {
  padding: var(--spacing-xl) 0;
  background-color: var(--primario);
  color: white;
}

.events-social h2 {
  color: white;
  margin-bottom: var(--spacing-lg);
}

/* NUEVO: Contenedor para calendario y eventos */
.calendar-events-container {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.calendar-section {
  display: flex;
  justify-content: flex-start;
}

.events-section {
  display: flex;
  flex-direction: column;
}

/* Ajustar el calendario */
.calendar-container {
  margin-top: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ESTILOS DEL CALENDARIO PERSONALIZADO - ACTUALIZADOS */
.calendar-widget {
  background-color: white;
  border-radius: 8px;
  padding: var(--spacing-xs);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 350px;
  margin-bottom: 0;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xs);
}

.calendar-header h3 {
  color: var(--primario);
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.calendar-nav {
  background: var(--verde);
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  font-size: 0.9rem;
}

.calendar-nav:hover {
  background: var(--verde-claro);
}

.calendar-controls {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
}

.btn-today {
  background: var(--primario-claro);
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8rem;
  transition: background-color 0.3s ease;
}

.btn-today:hover {
  background: var(--primario);
}

.calendar-grid {
  color: var(--primario);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 8px;
}

.calendar-weekdays div {
  text-align: center;
  font-weight: 600;
  padding: 6px;
  background-color: var(--gris-4);
  border-radius: 4px;
  font-size: 0.8rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.8rem;
  background-color: white;
  min-height: 32px;
}

.calendar-day:hover {
  background-color: var(--gris-5);
}

.calendar-day.other-month {
  color: var(--gris-3);
  background-color: var(--gris-6);
}

.calendar-day.today {
  background-color: var(--primario);
  color: white;
  font-weight: 600;
}

.calendar-day.has-event {
  background-color: var(--verde);
  color: white;
  font-weight: 600;
}

.calendar-day.has-event:hover {
  background-color: var(--verde-claro);
}

.calendar-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: white;
  border-radius: 50%;
}

/* Lista de eventos ajustada */
.events-list {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: var(--spacing-md);
  height: fit-content;
  max-height: 400px;
  overflow-y: auto;
}

.events-list h4 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.2rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: var(--spacing-xs);
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: var(--spacing-xs);
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.event-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--verde);
  color: white;
  padding: 6px;
  border-radius: 6px;
  min-width: 50px;
  font-weight: 700;
  flex-shrink: 0;
}

.event-date-badge .day {
  font-size: 1.2rem;
  line-height: 1;
}

.event-date-badge .month {
  font-size: 0.7rem;
  text-transform: uppercase;
}

.event-info h5 {
  color: white;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.event-info p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.8rem;
}

/* Clase para truncar texto con elipsis */
.event-description-truncated {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: 2.8em;
}

/* Fallback para navegadores que no soportan -webkit-line-clamp */
@supports not (-webkit-line-clamp: 2) {
  .event-description-truncated {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
}

/* NUEVO: Sección de redes sociales */
.social-section {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-section h3 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
}

/* Cambiar el color del texto de redes sociales */
.social-section h3,
.social-section p {
  color: #eee;
}

.social-icons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-top: var(--spacing-md);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon img {
  width: 24px;
  height: 24px;
}

.social-icon:hover {
  background-color: var(--verde);
  transform: translateY(-3px);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: var(--spacing-md);
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--gris-3);
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--primario);
}

.modal-event-title {
  color: var(--primario);
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
  padding-right: 30px;
}

.modal-event-date {
  color: var(--primario-claro);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
}

.modal-event-description {
  background-color: var(--gris-6);
  padding: var(--spacing-sm);
  border-radius: 8px;
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.modal-event-actions {
  display: flex;
  gap: var(--spacing-xs);
  justify-content: flex-end;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#agenda {
  scroll-margin-top: 150px; /* Aumentar de 110px a 150px */
}

/* Nueva sección de descripción del hotel */
.program-description {
  background-color: var(--gris-6);
  padding: var(--spacing-xl) 0;
  color: #333333; /* Cambiar de var(--primario) a gris oscuro */
}

.program-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  text-align: left;
  color: #4a4a4a; /* Añadir color gris */
}

/* Media query para móviles */
@media (max-width: 768px) {
  .program-description {
    padding: var(--spacing-lg) 0;
  }

  .program-description p {
    font-size: 1rem;
  }
}




/* Honeypot field - hidden from users */
.offscreen {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* Project and Sponsors - Full width white background */
.project-sponsors-wrapper {
  background-color: white;
  padding: var(--spacing-xl) 0;
  color: var(--primario);
}

.project-info {
  margin-bottom: var(--spacing-lg);
}

.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
}

.sponsor-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.sponsor-logo:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

/* Footer Principal */
.main-footer {
  background-color: var(--primario-oscuro);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

/* Solo mostrar 4 columnas cuando hay espacio suficiente */
@media (min-width: 1100px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section .titulo {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.2rem;
  border-bottom: 2px solid var(--primario-claro);
  padding-bottom: var(--spacing-xs);
}

.footer-logo {
  margin-bottom: var(--spacing-md);
}
@media (max-width: 1099px) {
  .footer-logo img {
    margin-inline: auto;
  }
  .footer-logo + p {
    max-width: 40ch;
    margin-inline: auto;
  }
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-item {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.contact-item strong {
  color: white;
}

.contact-item a {
  color: var(--primario-muy-claro);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: white;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-social-link:hover {
  color: white;
}

.footer-social-link img {
  filter: brightness(0) invert(1) opacity(0.8);
  transition: filter 0.3s ease;
}

.footer-social-link:hover img {
  filter: brightness(0) invert(1);
}

/* Responsive para footer principal */
@media (max-width: 1099px) {
  .footer-content {
    gap: var(--spacing-md);
  }

  .footer-section {
    text-align: center;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
  }

  .contact-info {
    align-items: center;
  }

  .footer-social {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* Actualizar el estilo del SVG inline en nav-button */
.nav-button svg {
  width: 16px;
  height: 16px;
  transition: all 0.3s ease;
}

.nav-button:hover svg {
  color: var(--primario-oscuro);
}

/* En móvil */
@media (max-width: 768px) {
  .nav-button svg {
    color: var(--primario);
  }

  .nav-button:hover svg {
    color: white;
  }
}

/* Footer */
.footer {
  padding: var(--spacing-md) 0;
  background-color: var(--primario);
  color: white;
}

.legal-links {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

.legal-links a {
  color: #ddd;
}

.legal-links a:hover {
  color: #fff;
}

/* Media Queries */
@media (max-width: 992px) {
  .feature-content {
    grid-template-columns: 1fr;
  }

  .feature-image {
    height: 300px;
    order: 1;
    aspect-ratio: auto;


    aspect-ratio:4/3;
    height:auto;
    width:100%;
  }

  .feature-text {
    order: 2;
  }

  .calendar-events-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .calendar-section {
    justify-content: center;
  }

  .calendar-widget {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  /* Menú hamburguesa para móvil */
  .menu-button {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 100;
    padding: 80px 20px 20px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .main-nav a {
    display: block;
    padding: 10px 0;
    font-size: 1.2rem;
    color: var(--primario);
  }

  .main-nav a:hover {
    color: var(--primario-oscuro);
  }

  /* Botón de reservas en móvil */
  .nav-button {
    margin-top: 10px;
    justify-content: center;
    border-color: var(--primario);
    color: var(--primario);
    display: flex !important; /* Forzar flex */
    flex-direction: row !important; /* Asegurar que esté en fila */
    align-items: center; /* Centrar verticalmente */
    gap: 0.5rem; /* Mantener el espacio entre icono y texto */
    padding: 0.5rem 1rem !important;
  }

  .nav-button img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(23%) saturate(1909%) hue-rotate(182deg) brightness(94%)
      contrast(88%);
  }

  .nav-button:hover {
    background-color: var(--primario);
    color: white;
  }

  .nav-button:hover img {
    filter: brightness(0) invert(1);
  }

  /* Cuando el checkbox está marcado, muestra el menú */
  .menu-toggle:checked ~ .main-nav {
    right: 0;
  }

  /* Animación del botón hamburguesa */
  .menu-toggle:checked ~ .menu-button span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle:checked ~ .menu-button span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-button span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .legal-links {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }

  .sponsor-logos {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .sponsor-logo {
    height: 80px;
  }

  /* RESPONSIVE CALENDARIO */
  .calendar-events-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
  }

  .calendar-widget {
    max-width: 100%;
  }

  .calendar-header {
    margin-bottom: var(--spacing-sm);
  }

  .calendar-weekdays div {
    padding: 4px;
    font-size: 0.7rem;
  }

  .calendar-day {
    font-size: 0.7rem;
    min-height: 28px;
  }

  .event-item {
    flex-direction: row;
    text-align: left;
  }

  .event-info {
    text-align: left;
  }

  .events-list {
    margin-top: var(--spacing-sm);
    max-height: none;
    overflow-y: visible;
  }

  .social-section {
    padding-top: var(--spacing-md);
  }

  .social-icons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
    padding: var(--spacing-sm);
  }

  .modal-event-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .sponsor-logo {
    height: 40px;
  }

  /* Calendario aún más pequeño en móviles muy pequeños */
  .calendar-weekdays div {
    padding: 2px;
    font-size: 0.6rem;
  }

  .calendar-day {
    font-size: 0.6rem;
    min-height: 24px;
  }

  .event-date-badge {
    min-width: 40px;
    padding: 4px;
  }

  .event-date-badge .day {
    font-size: 1rem;
  }

  .event-date-badge .month {
    font-size: 0.6rem;
  }
}

/* Limitar ancho de párrafos descriptivos */
.section-intro {
  max-width: 600px;
  margin: 0 auto var(--spacing-lg) 0; /* Cambiar de 'auto' a '0' para alinear a la izquierda */
  text-align: left;
}

.section-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.feature-section + .free-courses {
  margin-top: -50px;
}

.free-courses::before {
  content: "";
  display: block;
  height: 50px;
  margin-top: -50px;
}






/* Estilos del modal */
        .modal-promo {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            z-index: 9999;
            overflow-y: auto; /* CAMBIADO: permite scroll vertical */
            overflow-x: hidden; /* AÑADIDO: evita scroll horizontal */
            animation: fadeIn 0.3s ease;
            padding: 20px 0; /* AÑADIDO: espacio arriba y abajo */
        }

        .modal-promo.show {
            display: block; /* CAMBIADO: era 'flex', ahora 'block' para mejor scroll */
        }

        .modal-dialog {
            position: relative;
            width: 90%;
            max-width: 800px;
            margin: 0 auto; /* CAMBIADO: era '20px auto', ahora centrado horizontalmente */
            min-height: calc(100% - 40px); /* AÑADIDO: altura mínima para centrado vertical */
            display: flex; /* AÑADIDO: para centrar contenido */
            align-items: center; /* AÑADIDO: centra verticalmente cuando cabe en pantalla */
            animation: slideDown 0.3s ease;
        }

        .modal-content {
            background: white;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            padding: 0.5rem;
            max-width:992px;
        }

        .modal-header {
            padding: 8px 20px;
            border-bottom: 1px solid #e5e5e5;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            margin: 0;
            font-size: 1.25rem;
            font-weight: 500;
        }

        /*.offscreen {
            position: absolute;
            left: -10000px;
            width: 1px;
            height: 1px;
            overflow: hidden;
        }*/

        .close {
            background: transparent;
            border: none;
            font-size: 2rem;
            line-height: 1;
            cursor: pointer;
            color: #000;
            opacity: 0.5;
            transition: opacity 0.2s;
            padding: 0;
            width: 30px;
            height: 30px;
            margin-left:auto;
        }

        .close:hover {
            opacity: 0.8;
        }

        .modal-body {
            padding: 20px;
        }

        .imagen {
            margin-bottom: 20px;
            text-align: center;
        }

        .imagen img {
            max-width: 100%;
            height: auto;
            border-radius: 4px;
        }

        .enlaces {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            justify-content: center;
        }
.modal-promo .modal-body .btn {
    padding:.75rem;
}
        .modal-promo .modal-body .btn:first-child:not(:hover):not(:focus) {
            background: hsl(119deg 62% 44%);
            border-color: hsl(119deg 62% 44%);
            min-width: 14ch;
        }

        /*.btn {
            padding: 12px 24px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1rem;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            transition: transform 0.2s;
        }

        .btn-primary {
            background-color: #007bff;
            color: white;
        }

        .btn-primary:hover {
            background-color: #0056b3;
            transform: scale(1.05);
        }*/

        .scale-in-center {
            animation: scaleIn 0.5s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideDown {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        @keyframes scaleIn {
            from {
                transform: scale(0.8);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        