body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #94AF48; /* base lavanda suave */
background-image:
  repeating-radial-gradient(circle at 30% 30%, #94AF48, #b7c97a 20%, #94AF48 40%),
  repeating-radial-gradient(circle at 70% 70%, #7f973d, #c3d48a 20%, #7f973d 40%),
  linear-gradient(120deg, #94AF48 0%, #c2d48a 50%, #7f973d 100%);

  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: #2e1a47;
}



header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  font-size: 0.55rem;
  align-items: center;
  background-color: #3760A4; /* Azul Tarazona */
  color: white;
  padding: 1rem;
  height: 20px;
}

#menu-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  margin-right: 1rem;
  cursor: pointer;
}

/*  Sidebar con patrn tipo arlequin */
#sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #5F7A32;
  background-image: linear-gradient(
    135deg,
    rgba(210, 240, 180, 0.2) 25%,
    rgba(110, 150, 70, 0.2) 50%,
    rgba(40, 80, 30, 0.2) 75%
  );
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  transition: left 0.3s ease;
  z-index: 5500;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}








#sidebar.open {
  left: 0;
}


#day-menu {
  display: flex;
  flex-direction: column;
}

/* Botones con animaciOn cipotegato */
#penas-menu button,
#day-menu button {
  background-color: #fff;
  width: 90%;
  border-left: 6px solid #0061A9; /* AZUL Cipotegato */
  color: #3760A4;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 12px 18px;
  margin: 6px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#day-menu button:hover,
#penas-menu button:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-left-color: #00c853; /* Verde al pasar el cursor */
}


/*boton  dia 27*/
#day-menu button.arlequin {
  background-image: url('images/tomate-pattern.png'); /* Cambia esta ruta */
  background-size: cover;
  background-repeat: no-repeat;
  border-left: 6px solid #d50000; /* Rojo vibrante */
  color: #000000;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transform: rotate(-1deg);
}

#day-menu button.arlequin:active {
  transform: scale(0.98) rotate(0deg);
}

#day-menu button.arlequin:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}






/* Bot贸n "Inicio" con estilo especial 
#day-menu button[data-day="inicio"] {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background-color: #d50000;
  border: 2px solid #ffeb3b;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}*/

main {
  margin: 1rem;
  margin-left: 1rem;
}

#day-title {
  display: none;
  font-size: 1,6rem;                          /* Grande y llamativo */
  /*margin: 2rem auto;*/
  text-align: left;
  color: #fff;                                /* Texto blanco para contraste */
  background: linear-gradient(90deg, #ff5e57, #ffcc00, #3760A4); /* Degradado festivo */
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 900;
  font-family: 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);     /* Sombra para profundidad */
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* 馃帄 Decoraci贸n con tri谩ngulos tipo banderines */
#day-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,235,59,0.4) 0px,
    rgba(255,235,59,0.4) 10px,
    rgba(213,0,0,0.4) 10px,
    rgba(213,0,0,0.4) 20px,
    rgba(0,200,83,0.4) 20px,
    rgba(0,200,83,0.4) 30px
  );
}

/* 馃幆 Animaci贸n al pasar el rat贸n 
#day-title:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}*/






#event-list {
  list-style: none;
  padding: 0;
}

#event-list li {
  background-color: #fff;
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-left: 4px solid #3760A4; /* L铆nea decorativa azul */
}

#event-list li .hora {
  font-weight: bold;
  color: #3760A4; /* Azul Tarazona */
}

/*  Encabezado decorado */
#sidebar-header {
  padding: 1rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  background-color: transparent;
  border-bottom: none;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  isolation: isolate;
}

/*  Decoracion superior tipo banderines suaves */
#sidebar-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(186,104,200,0.4) 0px,     /* lila */
    rgba(186,104,200,0.4) 10px,
    rgba(123,31,162,0.4) 10px,     /* púrpura intenso */
    rgba(123,31,162,0.4) 20px,
    rgba(103,58,183,0.4) 20px,     /* violeta */
    rgba(103,58,183,0.4) 30px
  );
}




#sidebar-header {
  width: 100%;
  max-width: 230px; /* ajusta según tu diseño */
  height: auto;
  padding: 10px; /* añade espacio interno */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible; /* evita que se corte */
}


#sidebar-header img {
  max-width: 100%;
  height: auto;
  object-fit: contain; /* evita recortes */
  border-radius: 6px;
  /*box-shadow: 0 2px 6px rgba(0,0,0,0.1);*/
  display: block;
}


/* Pantalla de bienvenida */
#welcome-screen {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  padding: 0; /* sin espacio extra */
  position: relative;
  text-align: center;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}



.imagen-titulo {
  /*padding-top: 10px;*/
  width: 150px;
  height: 150px;

  border-radius: 50%;        /* círculo perfecto */
  object-fit: cover;         /* recorte profesional */
  overflow: hidden;          /* evita fugas de bordes */

  background-color: #ffffff15; /* leve fondo neutro */
  border: 2px solid #ffffff30; /* aro suave alrededor */
  box-shadow: 0 2px 6px rgba(0,0,0,0.18); /* profundidad elegante */

  display: block;
  margin-left: auto;
  margin-right: auto;
}





.titulo-principal {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  padding: 10px;
  color: #4a5f22;
  position: relative;
}


.titulo-principal::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, #94AF48, #c2d48a, #7f973d);
  margin: 8px auto 0;
  border-radius: 4px;
}



@keyframes shineText {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}









/*
#welcome-screen p {
  width: 65%;
  max-width: 600px;
  margin: 40px auto;
  padding: 2rem 3rem; 
  
  position: relative;
  text-align: center;
  font-size: rem; 
  font-weight: 600;
  color: #4a4a4a;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;

  background: #fffecb; /* color tipo post-it 
  border: 1px solid #e0d97c;
  border-radius: 8px;
  box-shadow: 4px 6px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  transform: rotate(-3deg); /* ligero giro para efecto realista 
}

/* 📌 Chincheta más realista 
#welcome-screen p::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 30% 30%, #d50000, #900);
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* 🧵 Sombra tipo papel doblado 
#welcome-screen p::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(45deg);
  z-index: 1;
}
*/





/* Buscador */



#search-input {
  width: 70%;
  height:30px; /* altura aumentada */  
  font-size: 25px; /* tamaño de fuente aumentado */
  margin-bottom: 1.5rem;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-weight: 500;
  /*color: #2c3e50;*/
  color: #50372c;
  background-color: #ffffff;
  border: 1px solid #dcdfe6; /* borde intacto */
  border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05),
              0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
  outline: none;
}

#search-input:focus {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05),
              0 0 0 0 rgba(0, 0, 0, 0), /* neutral base */
              0 0 20px 10px rgba(55, 96, 164, 0.25); /* aura difuminada */
}

#search-input::placeholder {
  color: #b1b0b0; /* Cambia este valor al color que quieras */
  font-style: italic; /* Opcional: puedes estilizarlo más */
  font-size: 14px; 
}

.texto-bajo-input {
  margin-top: -20px;
  color: #888;
  font-size: 11px;
  /*text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.4); /* sombra más visible */
  
}





/* =========================================================== */


#search-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px; /* Espacio entre cards */
  padding: 1rem;
  box-sizing: border-box;
}

#search-results li {
  margin: 0;
  padding: 0.75rem;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 16px; /* Espacio entre cards */
}

/* css para dia buscador */
#search-results li strong {
  display: inline-block;
 /* background: linear-gradient(135deg, #e0ecff, #f9fbff);*/
  color: #1a2b4c;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);*/
  margin: 1.2rem 0 0.6rem 0;
  /*transition: all 0.3s ease;*/
  letter-spacing: 0.5px;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}
/*


/* cajon para mostrar el dia */
#search-results li.dia-li {
  height: 20px; /* o el valor que prefieras */
  display: flex;
  justify-content: center;
  align-items: center; /* centra el contenido verticalmente */
  border-left: none;
  background-color: #f5f9ff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px #d0e4ff;
}


#search-results li .hora .descripcion {
  font-weight: bold;
  color: #3760A4;
}

#search-results li .descripcion {
  margin-top: 0.25rem;
  color: #333;
  text-align: left;
}

/* Asegurar que el boton "Inicio" se vea igual que los demas */
#day-menu button[data-day="inicio"] {
  font-size: 0.9rem;
  font-weight: 600;
  color: #3760A4;
}


#share-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-image: url('images/iconos/share.svg');
  background-size: contain;
  background-position: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  border: 2px solid white;

  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* icono abajo */
  align-items: center;
  padding-bottom: 4px; /* espacio desde el borde */
}


@keyframes bounce {
  0%   { transform: scale(1) translateY(0); }
  30%  { transform: scale(1.1) translateY(-6px); }
  50%  { transform: scale(1.15) translateY(0); }
  70%  { transform: scale(1.1) translateY(-3px); }
  100% { transform: scale(1.15) translateY(0); }
  
}

#share-button:hover {
  animation: bounce 0.6s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  border-color: #ff5722;
 /*animation-iteration-count: infinite;*/

}



#custom-share-menu {
  position: fixed;
  bottom: 70px;
  right: 20px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  
}

/* ✅ Cuando está visible */
#custom-share-menu.visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ✅ Estilo para los botones y enlaces */
#custom-share-menu a,
#custom-share-menu button {
  background: #94AF48; /* verde principal */
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background 0.2s ease;
}

#custom-share-menu a:hover,
#custom-share-menu button:hover {
  background: #7d943d; /* verde más oscuro para hover */
}





/* difuminar y bloquear a pagina cuando abre el menu */
body.blurred main,
body.blurred header {
  filter: blur(4px);
  transition: filter 0.3s ease;
  pointer-events: none; /* evita clics mientras est谩 difuminado */
}


.dia {
  margin-bottom: 2rem;
  padding: 1rem;
  background: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}


.evento-linea {

  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin-bottom: 8px;
}

.hora {
  color: #3760A4; /* Azul Tarazona */
  font-weight: bold;
  align-items: center;
  font-size: 1rem;
  padding: 4px 8px;
  background-color: #e3ecf9; /* Fondo azul claro */
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
  letter-spacing: 0.5px;
  margin-top: 5px;
  margin-left: 5px;

}


.descripcion {
  margin-top: 20px;         /* separa del bloque superior */
  margin-bottom: 12px; 
  padding-left: 10px;      /* lo empuja hacia la derecha */
  margin-right: 5px;
  font-size: 0.9rem;       /* opcional: tamaño de texto */
  line-height: 1.4;        /* mejora la legibilidad */
}


.organizador {
  display: flex;
  align-items: center;
  gap: 6px;

}


.logo-org {
  margin-right: 8px;;
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}





.evento-card {
  width: 100%;
  margin: 8px 0;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #e3f2fd);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04);
  font-family: 'Segoe UI', sans-serif;
  color: #2c2c2c;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
  border: 1px solid #d0e3f0;
  overflow: hidden;
}

/* Efecto táctil al tocar */
.evento-card:active {
  transform: scale(0.98);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.03);
}



.evento-card.visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.08);
}
.evento-card::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 10px;
  width: calc(100% - 20px);
  height: 6px;
  background: rgba(0,0,0,0.05);
  border-radius: 0 0 10px 10px;
  z-index: -1;
}




ul {
  list-style: none;
  padding-left: 0;
  padding-bottom: 40px;
  margin: 0;
}

#event-groups {

  width: 100%;
  padding: 2 2px;
  margin: 0;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: 1fr;
  gap: 8px; /* Espacio mínimo entre tarjetas */




  /*padding-left: 42px;
  margin-top: 1rem;
  margin: 2rem auto;
  padding: 2rem;
  background-color:transparent;/* #ffffff;
  border-radius: 12px;
  /*box-shadow: 0 4px 12px rgba(0,0,0,0.1);*/
}


.filtro-organizador {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
  justify-content: center;
}

.filtro-organizador button {
  padding: 8px 10px;
  font-size: 0.7rem;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: #333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  min-width: 65px;
  height: auto;
  line-height: 1.3;
}

#filtroOrganizadorBusqueda,
#filtroOrganizador {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.btn-organizador {
  display: none;
}

#filtroOrganizadorBusqueda .btn-organizador,
#filtroOrganizador .btn-organizador {
  width: 100%;
  min-height: 48px;
  font-size: 0.9rem;
  padding: 10px;
  box-sizing: border-box;
  background: transparent;
  border: none;
  margin: 2px;
  font-size: 0.65rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  min-width: 60px;
}

#filtroOrganizadorBusqueda .btn-organizador.activo,
#filtroOrganizador .btn-organizador.activo {
  background: linear-gradient(135deg, #007bff, #00c6ff) ;
  box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
  transform: scale(1.03);
}

#filtroOrganizadorBusqueda .btn-organizador img,
#filtroOrganizador .btn-organizador img { /* botones filtro dia - ajuste tamaño */
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid #ccc;
}

.btn-organizador.activo {
  background-color: #007bff; /* azul */
  color: white;
  border: 2px solid #0056b3;
}

/* BOTON INFORMACION ARRIBA DERECHA */
.floating-menu {
  position: fixed;
  top: 70px;
  right: 20px;
  background: rgb(203, 248, 224);
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-menu.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-menu button {
  background: linear-gradient(135deg, #94AF48, #7f973d);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 3px 6px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}



.floating-menu button:hover {
  background: #004a80;
}
#info-button {
  position: fixed;
  top: 20px;
  right: 20px;    
  background: #FF9800;
  border: none;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background 0.2s ease;
}

#info-button:hover {
  background: #F57C00;
}

#info-button svg {
  display: block;
}




/*============================================*/

/* cartel de fiestas */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(2px);
}

.modal-content {
  margin: 60px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  max-width: 90%;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  text-align: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 70vh; /* ✅ no ocupa más del 80% de la altura de la pantalla */
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.close-modal {
  background-color: #94AF48;   /* verde principal */
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
}


.close-modal:hover {
  color: #000;
}

/* ========================================== */

/* modal punto violeta */
/* 🔒 Ocultar el modal por defecto */
/* Fondo del modal */
#modal-puntovioleta {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(128, 0, 128, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1200;
}

#modal-puntovioleta.activo {
  display: flex; /* 👈 Solo se aplica cuando se activa */
}




/* Contenido del modal */
#modal-puntovioleta .contenido-modal {
  background-color: #fff;
  /*border-left: 10px solid #800080; /* 💜 Borde violeta */
  /*order-right: 10px solid #800080; /* 💜 Borde violeta */
  /*border-top: 10px solid #800080; /* 💜 Borde violeta */
  border: 10px solid #800080; /* 💜 Borde violeta */
  border-radius: 12px;
  padding: 25px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  animation: entradaModal 0.4s ease;
  font-family: 'Segoe UI', sans-serif;
  color: #4B0082; /* Texto violeta oscuro */
}

/* Título */
#modal-puntovioleta h3 {
  margin-top: 0;
  font-size: 1.6em;
  color: #800080;
  text-align: center;
}

/* Lista de horarios */
#modal-puntovioleta ul {
  padding-left: 20px;
  margin-top: 15px;
}

#modal-puntovioleta li {
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Botón de cierre */
.close-modal-puntovioleta {
  margin-top: 20px;
  padding: 10px 16px;
  background-color: #800080;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.close-modal-puntovioleta:hover {
  background-color: #a64ca6;
}

/* Animación de entrada */
@keyframes entradaModal {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}





/*=========================================*/

/* modal ferias */
#modal-ferial {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(70, 130, 180, 0.3); /* 🌊 Azul acero translúcido */
  justify-content: center;
  align-items: center;
  z-index: 1100;
}

#modal-ferial .contenido-modal {
  background-color: #ffffff;
  border: 10px solid #4682B4; /* 🌊 Borde azul acero */
  border-radius: 12px;
  padding: 25px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
  animation: entradaModal 0.4s ease;
  font-family: 'Segoe UI', sans-serif;
  color: #2F4F4F; /* Texto gris azulado */
  text-align: center;
}

#modal-ferial h3 {
  margin-top: 0;
  font-size: 1,2em;
  color: #1E90FF; /* Azul vibrante pero suave */
}

#modal-ferial ul {
  padding-left: 20px;
  margin-top: 15px;
  text-align: left;
}

#modal-ferial li {
  margin-bottom: 10px;
  line-height: 1.4;
}

/* imagen  ferial  */
.imagen-ferial {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 15px #ffef61;
  animation: neon 1.5s ease-in-out infinite alternate;
}


.imagen-ferial img {
  display: block;
  width: 100%;
  height: auto;
  
}

/* Destello animado */
.imagen-ferial::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: destello 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes destello {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}
.imagen-ferial::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px dotted #ff0;
  border-radius: 8px;
  animation: parpadeo 0.6s infinite alternate;
  pointer-events: none;
}

@keyframes parpadeo {
  from {
    border-color: #ff0;
  }
  to {
    border-color: #f00;
  }
}
@keyframes neon {
  from {
    box-shadow: 0 0 5px #2382ff;
  }
  to {
    box-shadow: 0 0 25px #ff3c00;
  }
}




/*===========================================*/
.close-modal-ferial {
  margin-top: 20px;
  padding: 10px 16px;
  background-color: #1E90FF; /* Botón azul vibrante */
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.close-modal-ferial:hover {
  background-color: #4682B4; /* Azul acero al pasar el ratón */
}


/*=========================================*/
#modal-farmacias .modal-content {
  border: 10px solid #0061A9; /* Azul Tarazona, cámbialo si quieres otro color */
  border-radius: 12px;
  background-color: rgb(221, 236, 250);
  animation: entradaModal 0.4s ease;
}

#modal-conciertos .modal-content {
  border: 10px solid #0061A9; 
  border-radius: 12px;
  background-color: rgb(221, 236, 250);
  animation: entradaModal 0.4s ease;
}
#modal-telefonos .modal-content {
  border: 10px solid #94AF48; /* verde principal */
  border-radius: 12px;
  background-color: rgb(225, 240, 210); /* verde pastel muy suave */
  animation: entradaModal 0.4s ease;
}


/* modal iphone */
.modal-iphone {
  background: linear-gradient(135deg, #1e90ff, #87cefa);
  color: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.boton-cerrar-container {
  text-align: center;
  margin-top: 20px;
}

.boton-cerrar-modal-iphone {
  background-color: #94AF48; /* verde principal */
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}


.boton-cerrar-modal-iphone:hover {
  background-color: #005bb5;
}



/*modal toros*/

#modal-toros .modal-content {
  border: 10px solid #94AF48; /* verde principal */
  border-radius: 12px;
  background-color: rgb(225, 240, 210); /* verde muy suave */
  animation: entradaModal 0.4s ease;
}


.close-modal-toros {
  color: #6f8f3a;        /* verde suave en lugar del gris */
  float: right;
  font-size: 56px;
  font-weight: bold;
  cursor: pointer;

  text-shadow: 0 1px 2px rgba(0,0,0,0.25); /* mejora la legibilidad */
  line-height: 1;        /* evita saltos raros */
}


.close-modal-toros:hover {
  color: #000;
}

/*modal notas*/

#modal-notas .modal-content {
  border: 10px solid #94AF48; /* verde principal */
  border-radius: 12px;
  background-color: rgb(225, 240, 210); /* verde pastel muy suave */
  animation: entradaModal 0.4s ease;
}



.close-modal-notas {
  color: #aaa;
  float: right;
  font-size: 56px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal-notas:hover {
  color: #000;
}





.telefonos-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
  
}

.telefonos-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
}

.telefonos-list li:hover {
  background: #f9f9f9;
}

.telefonos-list span {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.telefonos-list a {
  color: #0061A9;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.telefonos-list a:hover {
  text-decoration: underline;
}

.telefonos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}


@media (min-width: 600px) {
  .telefonos-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.telefono-card {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.telefono-card:hover {
  transform: scale(1.02);
}

.icono {
  font-size: 32px;
  margin-right: 16px;
}

.info h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

.info a {
  display: inline-block;
  margin-top: 6px;
  font-size: 16px;
  color: #0061A9;
  text-decoration: none;
  font-weight: 500;
}

.info a:hover {
  text-decoration: underline;
}

.close-modal-telefonos {

  font-size: 56px;
  font-weight: bold;
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  color: #aaa;

}


.modal-content {
  position: relative; /* ✅ Esto permite que la ❌ se posicione dentro */
}


.farmacia-guardia {
  background-color: #e3f2fd;
  border-left: 6px solid #2196F3;
  padding: 16px;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', sans-serif;
}

.farmacia-guardia h3 {
  margin: 0;
  font-size: 18px;
  color: #0d47a1;
}

.farmacia-guardia p:first-of-type { /*Primera linea P */
  margin: 6px 0;
  font-size: 15px;
  color: #333;
}

.farmacia-guardia p:nth-of-type(2){ /*segunda linea P*/
  margin: 6px 0;
  font-size: 15px;
  color: #333;
}
/*linea 3 P =================================*/
.farmacia-guardia p:nth-of-type(3) {
  margin: 6px 0;
  font-size: 12px;
  color: #f10f0f;
  font-style: italic;
}

/* Estilo para el enlace dentro del tercer párrafo */
.farmacia-guardia p:nth-of-type(3) a {
  color: #f10f0f;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.farmacia-guardia p:nth-of-type(3) a:hover {
  color: #b30000;
}
/* ========================================= */
.farmacias-lista {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.farmacia-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.farmacia-info h3 {
  margin: 0;
  font-size: 17px;
  color: #3760A4;
}

.farmacia-info p {
  margin: 4px 0;
  font-size: 15px;
  color: #444;
}

.boton-mapa {
  margin-top: 10px;
  align-self: flex-start;
  background-color: #4CAF50;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background 0.2s ease;
}

.boton-mapa:hover {
  background-color: #388E3C;
}



.farmacia-guardia {
  background-color: #a5d1f1;
  border-left: 6px solid #a5d1f1;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.15),   /* sombra principal */
    0 1px 3px rgba(0, 0, 0, 0.08);   /* sombra secundaria */
  font-family: 'Segoe UI', sans-serif;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.farmacia-guardia h3 {
  margin: 0;
  font-size: 18px;
  color: #0d47a1;
}

.farmacia-guardia p {
  margin: 6px 0;
  font-size: 15px;
  color: #333;
}

.farmacias-lista {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.farmacia-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.farmacia-info h3 {
  margin: 0;
  font-size: 17px;
  color: #3760A4;
}

.farmacia-info p {
  margin: 4px 0;
  font-size: 15px;
  color: #444;
}

.boton-mapa {
  margin-top: 10px;
  align-self: flex-start;
  background-color: #4CAF50;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background 0.2s ease;
}

.boton-mapa:hover {
  background-color: #388E3C;
}

.close-modal-farmacias {
  font-size: 56px;
  font-weight: bold;
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  color: #aaa;
}


/* css para mostrar la ayudade la busqueda */



.boton-ayuda-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: transparent;
  /*color: #B686FE;/* rgb(5, 88, 255);*/
  
  border: none;
  padding: 0.6rem 1rem;         /* Menos padding = botón más pequeño */
  border-radius: 8px;           /* Bordes un poco más compactos */
  font-size: 0.95rem;           /* Ligero ajuste de tamaño de texto */
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  width: fit-content;           /* Para que se ajuste al contenido */
  margin: 0 auto 1rem auto;     /* Centrado + espacio debajo */

  color: #888; /* Cambia este valor al color que quieras */
  font-style: italic; /* Opcional: puedes estilizarlo más */
  font-size: 12px; 
  
}

.boton-ayuda-modal img {
  width: 20px;
  height: 20px;
}


.nota-final {
  font-size: 0.9em;
  font-style: italic;
  color: #666;
  margin-top: 10px;
  text-align: center;
}









/*=============================================================*/

/* Estilos para el modal de ayuda */

.modal-ayuda {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* Oculto por defecto */
  justify-content: center;
  align-items: center;
  z-index: 1500;
}

.modal-ayuda-contenido {
  background-color: rgb(242, 226, 255);;
  padding: 1rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  animation: aparecer 0.4s ease-out;
}

@keyframes aparecer {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-ayuda-contenido h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #3760A4;
}

.lista-ayuda {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-ayuda li {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: #f9f9f9;
  border-left: 4px solid #3760A4;
  border-radius: 8px;
}

.nota-lateral {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  background-color: #fffecb;
  padding: 1rem;
  border-left: 4px solid #ff9800;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.cerrar-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}






/*=============================================================*/



/* css boton comaprtir evento */



/*=============================================================*/

/* estilo para favoritos y comaprtir repartir un boton a cada lado*/
.botones-evento {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.boton-izquierdo,
.boton-derecho {
  display: flex;
  align-items: center;
}

.btn-favorito {
  background: none;
  border: none;
  font-size: 1.4em;
  cursor: pointer;
  /*margin-right: 10px;*/
}

.btn-compartir { 
  margin-top: 8px; 
  padding: 6px 12px; 
  border-radius: 6px; 
  background-color: #e3ecf9; 
  color: #555; 
  border: 1px solid #e0e0e0; 
  border-radius: 4px; 
  font-size: 14px; 
  font-weight: normal; 
  cursor: pointer; 
  transition: 
  background-color 0.2s ease, color 0.2s ease; 
}

/* 👇 Efecto al presionar (tap) */
.btn-compartir:active {
  transform: scale(0.97);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


/*
.btn-compartir:hover {
  background-color: #ececec;
  color: #333;
}*/






/* efecto desvanecimmiento de una card a al quitarla de favoritos */


.evento-card {
  transition: 
    opacity 0.6s ease-in-out, 
    transform 0.6s ease-in-out, 
    height 0.6s ease-in-out, 
    margin 0.6s ease-in-out,
    padding 0.6s ease-in-out;
  overflow: hidden; 
}

.evento-card.salida {
  /* Propiedades de transición */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;

  /* Estado final de la animación */
  opacity: 0;
  transform: translateX(-100%) scale(0.8);
}



/*==============================================================*/

/*css para pantalla de favoritos */
.mensaje-vacio {
  text-align: center;
  padding: 30px 20px;
  font-size: 1.2em;
  color: #444;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mensaje-vacio .corazon {
  font-size: 1.4em;
  color: crimson;
  animation: latido 1.2s infinite;
}

@keyframes latido {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}
/*=============================================================*/
/* botonvolver dentro de favoritos */

.btn-volver-inicio {
  display: inline-block;
  background: linear-gradient(45deg,#c8e6c9,#dcedc8,#a5d6a7,#c5e1a5,#d0e8b5);
  background-size: 300% 300%;
  animation: arlequinPulse 5s ease infinite;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
  margin: 20px auto;
  text-align: center;
  width: fit-content;
}

@keyframes arlequinPulse {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-volver-inicio:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.btn-volver-inicio:active {
  transform: scale(0.95);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}








/*=============================================================*/

/* Mail menu lateral */
#sidebar-footer {
  margin-top: auto;
  padding: 1.2rem;
  text-align: center;
  font-size: 0.85rem;
  background-color: transparent;
  border-top: 1px solid #ddd;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

#sidebar-footer img {
  max-width: 120px;
  width: 100%;
  height: auto;

  border-radius: 8px;              /* bordes suaves */
  object-fit: contain;             /* evita deformaciones */
  padding: 6px 8px;                /* respiración visual */
  background: rgba(255,255,255,0.08); /* leve realce sin cambiar color */
  box-shadow: 0 2px 6px rgba(0,0,0,0.12); /* profundidad elegante */

  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0.95;
}

#sidebar-footer img:hover {
  transform: scale(1.04);
  opacity: 1;
}


.enlace-mail {
  color: #3760A4;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: color 0.2s ease;
}

.enlace-mail:hover {
  color: #ff0000;
}

/* footer web */
#site-footer {
  background-color:transparent;/* #f8f8f8;*/
  padding: 0.5rem;
  font-size: 0.8rem;
  text-align: center;
  color: #333;
  border-top: 1px solid #ccc;
}

#site-footer a {
  color: #3760A4;
  text-decoration: none;
  font-weight: 500;
}

#site-footer a:hover {
  color: #00c853;
}



/* estilo para abrir el menu lateral */
#sidebar {
  transition: transform 0.3s ease;
  transform: translateX(-100%);
}

#sidebar.open {
  transform: translateX(0);
}
/*==============================================================*/

/* agrupar eventos por dias en favoritos y busqueda*/
.grupo-fecha {
  margin-bottom: 2rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1rem;
}

.grupo-fecha h3 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  color: #2d3436;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5px;
}

/*==============================================================*/

/* Modal base */
#modal-acercade.modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1200;
  animation: fadeIn 0.4s ease-in-out;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1em;
  box-sizing: border-box;
}

/* Contenido del modal */
.modal-content.modal-acercade {
  background: linear-gradient(
    135deg,
    #c8e6c9,   /* verde suave */
    #a5d6a7,   /* verde medio elegante */
    #c5e1a5    /* verde lima suave */
  );
  color: #2c003e;
  padding: 1.2em;
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.5s ease-out;
  text-align: center;
  box-sizing: border-box;
}


/* Título */
.modal-content.modal-acercade h2 {
  font-size: 1em;
  margin-bottom: 0.6em;
  color: #fff;
  text-shadow: 1px 1px 2px #4a148c;
  line-height: 1.3;
}

/* Subtítulo */
.modal-content.modal-acercade h3 {
  font-size: 0.9em;
  font-weight: 700;
  color: #ffffff; /* se mantiene porque contrasta bien con el verde */
  background: linear-gradient(
    to right,
    #a5d6a7,  /* verde medio suave */
    #81c784,  /* verde vibrante */
    #66bb6a   /* verde más profundo */
  );
  padding: 0.4em 0.6em;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-shadow: 1px 1px 2px #2e7d32; /* equivalente verde oscuro al morado original */
  margin-bottom: 0.8em;
  letter-spacing: 0.4px;
}


/* Texto general */
.modal-content.modal-acercade p {
  margin: 0.5em 0;
  font-size: 0.85em;
  line-height: 1.4;
}

/* Enlaces */
.modal-content.modal-acercade a {
  color: #7e57c2;
  text-decoration: underline;
  word-break: break-word;
  font-size: 0.85em;
}

/* Mensaje final */
.modal-content.modal-acercade .mensaje-final {
  font-weight: 800;
  font-size: 0.9em;
  color: #fff; /* se mantiene: contrasta muy bien con el verde */
  margin-top: 1.2em;
  padding: 0.6em 0.8em;

  background: linear-gradient(
    to right,
    #a5d6a7,  /* verde suave */
    #81c784,  /* verde medio vibrante */
    #66bb6a   /* verde profundo */
  );

  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);

  text-shadow: 1px 1px 3px #2e7d32; /* equivalente verde oscuro al morado original */
  letter-spacing: 0.8px;
  position: relative;
  overflow: hidden;
}


/* Destello decorativo */
.modal-content.modal-acercade .mensaje-final::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: deslizarDestello 2.5s infinite;
}

/* Botón de cierre */
.boton-cerrar-container {
  margin-bottom: 1em;
}

.close-modal-acercade {
  background: linear-gradient(to right, #ce93d8, #ba68c8, #ab47bc);
  border: none;
  color: #fff;
  font-weight: bold;
  padding: 0.4em 0.8em;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.close-modal-acercade:hover {
  transform: scale(1.05);
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes deslizarDestello {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}




/*==============================================================*/


/* ========================================================= */
/* 📱 DISEÑO RESPONSIVO COMPLETADO: TABLETS Y ORDENADORES     */
/* ========================================================= */

/* ----- TABLETS (Pantallas desde 768px) ----- */
@media (min-width: 768px) {
  /* 🔹 ESCALADO DE TÍTULOS EN TABLET */
  header {
    height: auto !important; /* Permite que la barra crezca con el texto */
    padding: 0.8rem 1.5rem !important;
  }
  #app-title {
    font-size: 1.4rem !important; /* Título del header más visible */
  }
  .titulo-principal {
    font-size: 38px !important; /* "La Almehora en Fiestas" */
  }
  #day-title {
    font-size: 2.1rem !important; /* Título del día seleccionado */
  }
  .grupo-fecha h3 {
    font-size: 1.8rem !important; /* Cabeceras de fechas en favoritos/búsqueda */
  }

  /* Buscador y Grid de tarjetas */
  #search-input {
    width: 100%;
    max-width: 500px;
  }
  .evento-detalle {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    padding: 0 !important;
    margin: 1rem 0 !important;
  }
  #filtroOrganizadorBusqueda, 
  #filtroOrganizador {
    max-width: 600px;
    grid-template-columns: repeat(4, 1fr) !important;
  }
  #day-title {
    margin: 1.5rem auto;
    text-align: center;
    max-width: 80%;
  }
}

/* ----- DESKTOP / ORDENADORES (Pantallas desde 1024px) ----- */
@media (min-width: 1024px) {
  /* 🔹 ESCALADO DE TÍTULOS EN ESCRITORIO (Grandes y proporcionados) */
  #app-title {
    font-size: 1.7rem !important; 
  }
  .titulo-principal {
    font-size: 48px !important; /* Destaca de forma elegante en monitores */
    margin-bottom: 24px;
  }
  #day-title {
    font-size: 2.5rem !important;
    max-width: 100% !important;
  }
  .grupo-fecha h3 {
    font-size: 2.2rem !important;
  }

  /* Estructura fija del Menú Lateral y Márgenes */
  #sidebar {
    transform: translateX(0) !important; 
    left: 0 !important;
    position: fixed !important;
    width: 260px !important;
  }
  #menu-toggle {
    display: none !important;
  }
  header {
    padding-left: 280px !important; /* Espacio para no tapar el título superior */
  }
  main {
    margin-left: 280px !important; /* Separa el contenido del menú lateral fijo */
    margin-right: auto !important;
    max-width: 1200px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }
  body.blurred main, 
  body.blurred header {
    filter: none !important;
    pointer-events: auto !important;
  }

  /* Tarjetas organizadas en 3 columnas */
  .evento-detalle {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  /* Ajuste de contenedores modales */
  .modal-content, 
  .modal-ayuda-contenido {
    max-width: 600px !important;
    margin: 50px auto !important;
  }
  #welcome-screen {
    padding: 40px !important;
    max-width: 950px !important;
    margin: 0 auto !important;
  }
}

/* ----- PANTALLAS ULTRA ANCHAS (Desde 1440px) ----- */
@media (min-width: 1440px) {
  .evento-detalle {
    grid-template-columns: repeat(4, 1fr) !important; /* 4 columnas en monitores gigantes */
  }
}