

header{
	position: sticky;
	top: 0;
}




.topheader{
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
	margin: 0 auto;
	max-width: 1600px;
	position: sticky;
	top: 0;
	transition: all linear 0.2s;
}


.menu-logo{
    height: 35px;
	margin: 4px;
	margin-left: 15PX;
	transition: all linear 0.2s;
}

header.shrink .topheader{
	padding: 3px;
	color: #fff;
}

header.shrink{
	background-color: #2c1779;
	color: #fff;
	z-index: 99;
}


header.shrink .menu-logo{
	height: 25px;
	margin: 2px;
	margin-left: 15PX;
	filter: grayscale() invert();
}


.page-footer{
    text-align: center;
}






/*
------------------ posts de wp
*/

.wp-posts {
	margin: 1em 0;
}

.wp-post {
	border-bottom: 1px solid #ddd;
	padding: 0.5em 0;
}

.wp-post-title {
	margin: 0;
	font-size: 1.1rem;
	color: var(--primary-color-theme, #005cbf);
	cursor: pointer;
}

.wp-post-title:hover {
	text-decoration: underline;
}

.wp-post-date {
	font-size: 0.8rem;
	color: #666;
	display: block;
	margin-bottom: 0.5em;
}

.wp-post-excerpt {
	color: #444;
	font-size: 0.95rem;
}




/*
------------------- big-banner
*/


.big-banner{
	width: 100%;
	height: 88vh;
	background-repeat: no-repeat;
	background-position-x:  center;
	background-position-y: bottom;
	background-size: cover;
	background-image: url('../img/bg/banner-bg.jpg');
	background-attachment:fixed;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
}

.big-banner .big-banner-image-center{
	max-width: 100%;
	margin-top: 3vh;
	margin-bottom: 55px;
	max-height: 90%;
}

.big-banner .big-banner-image-claim{
	width: 80vh;
	max-width: 80%;
}

.big-banner .big-banner-title{
	position: absolute;
	top: 35px;
	font-size: 18px;
	width: 100%;
	text-align: center;
	color: #fff;
	z-index: 99;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.6);
}


.big-banner .big-banner-subtitle{
	position: absolute;
	top: 57px;
	font-size: 14px;
	width: 100%;
	text-align: center;
	color: #fff;
	z-index: 99;
	font-weight: normal;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.6);
}


@media (max-height: 400px) {
	
	.big-banner{
		background-position-y: bottom;
	}
}

/*
end big-banner---------------------------------
*/





/*
------------------- botonera
*/


.menu-buttons{
	
}

.grid-row{
	display: grid;
	grid-template-columns: repeat(8, 1fr); 
	gap: 1rem; 
	align-items: center;
  }
  
.col-button{
	padding: 0;
	box-sizing: border-box;
	text-align:center;
	background:#f3f3f3;
	border-radius:8px;
	background-position: center 2px;
	background-repeat: no-repeat;
	background-size: auto 42px;
	height: 78px;
	display: flex;
	justify-content: center;
	align-items: end;
	color: #FFF;
	font-size: 0.65em;
	font-weight: bold;
	cursor: pointer;
	transform: translateY(8px);
	border: 4px solid transparent;
	transition: all linear 0.3s;
	position: relative;
	line-height: 1;
	padding-bottom: 2px;
}

.col-button:hover{
	border-color: #000000;
}

.col-button.active{
	border-color: #000000;
}


.col-button a{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	color: inherit;
	text-decoration: none;
	display: flex;
	justify-content: center;
	align-items: end;
	padding-bottom: 2px;
	
}

.col-button:nth-child(1){ background-color: #7d9aa3; background-image: url('../img/icon/todo.png'); }
.col-button:nth-child(2){ background-color: #7dccfa; background-image: url('../img/icon/actividades-todos-los-dias.png'); text-shadow: 1px 1px 1px rgba(0,18,58,0.2); }
.col-button:nth-child(3){ background-color: #0a80af; background-image: url('../img/icon/miscelanea.png'); }
.col-button:nth-child(4){ background-color: #f56e50; background-image: url('../img/icon/moros-y-cristianos.png'); }
.col-button:nth-child(5){ background-color: #de463c; background-image: url('../img/icon/huertos-del-malecon.png'); }
.col-button:nth-child(6){ background-color: #38ad79; background-image: url('../img/icon/romeria.png');}
.col-button:nth-child(7){ background-color: #de3769; background-image: url('../img/icon/conciertos-y-espectaculos.png'); text-shadow: 1px 1px 1px rgba(45,28,0,0.2); }
.col-button:nth-child(8){ background-color: #dec537; background-image: url('../img/icon/cine-y-teatro.png'); text-shadow: 1px 1px 1px rgba(45,28,0,0.2); }



/* responsive: menos columnas en pantallas pequeñas */
@media (max-width: 767px){
	.grid-row{ grid-template-columns: repeat(2, 1fr); }
	.col-button{ font-size: 0.75em; }
	
}

@media (min-width: 768px) and (max-width:960px) {
	.col-button{height: 90px; }
}


/*
end botonera ---------------------------------
*/



.finder{
	display: flex;
	flex: 1;
	gap: 15px;
	max-width: 600px;
	margin: 0 auto;
}


.auxiliar-buttons{
	text-align: center;
}

.auxiliar-buttons a{
	padding: 5px;
	cursor: pointer;
	margin-right: 10px;
	font-size: 0.86em;
	color: #005cbf;
	text-align: center;
}

.noresult{
	padding: 7px;
	max-width: 650px;
	margin: 0 auto;
	margin-top: 50px;
	text-align: center;
}

/*
--------------------------------- EVENTOS 
*/

.year-wrap .year-header{
	padding: 7px;
	background-color: #ddd;
	color: #666;
	border-radius: 15px;
	margin-top: 15px;
}

.month-wrap .month-header{
	padding: 7px;
	background-color: #ddd;
	color: #666;
	border-radius: 15px;
	margin-top: 15px;
}


.date-header{
	background-color: #e9eef4;
	margin-top: 40px;
	color: #397391;
	font-weight: 600;
	display: flex;
	align-items: center;
	height: 45px;
	position: sticky;
	top: 0;
	cursor: pointer;
}

.date-header:hover{
	background-color: #f1f5fa;
}






.date-header .smallday{
	height: 45px;
	width: 65px;
	min-width: 65px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #7d9aa3;
	color: #fff;
	line-height: 1.1;
	font-size: 16px;
	font-weight: 600;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
}



#listEvents .date-header .smallday{
	transition: all linear 0.4s;
}

.date-header .longdate{
	padding-left: 20px;
	width: 100%;
	text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
}


.date-content{
	visibility: hidden;
	opacity: 0;
	height: 0;
	overflow: hidden;
	transition: all linear 0.2s;
}

.date-content.active{
	visibility: visible;
	height: fit-content;
	overflow: visible;
	opacity: 1;
}

.date-actions{
	width: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
	cursor: pointer;
}

.date-actions:hover{
	background-color: rgba(255, 255, 255, 0.3);
}

.event{
	margin-top: 20px;
	border-radius: 3px;
	background-color: #f1f8ff;
	min-height: 56px;
	line-height: 1.2;
}

.event-header{
	margin-top: 10px;
	border-radius: 3px;
	display: flex;
	gap: 15px;
	min-height: 56px;
}

.event-time{
	width: 65px;
	min-width: 65px;
	max-width: 65px;
	background-color:#fffced;
	color: #444;
	margin: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9em;
	font-weight: 500;
	text-align: center;
	text-transform: lowercase;
	flex-direction: column;
}

.event-text{
	display: flex;
	align-items: center;
	justify-content: left;
	width: 100%;
	padding-top: 5px;
	padding-bottom: 5px;
}

.event-title{
	color: #365c8a;
	font-weight: 500;
}



.event-content{
	margin-top: 5px;
	font-size: 0.8em;
}

.event-site{
	margin-top: 5px;
	font-size: 0.82em;
	color: #0a80af;
}

.event-actions{
	width: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
	flex-direction: column;
}

.event-actions .bi{
	cursor: pointer;
}

.event .bi{ font-size: 17px; color: #86aaba;}
.event .bi:nth-child(1){ margin-bottom: 7px;}
.event .bi:hover{ color: #38ad79; }


.event.actividades-todos-los-dias{
	background-color: #f9fdff;
}


#listEvents[data-category="ACTIVIDADES TODOS LOS DÍAS"] .date-header .smallday{ background-color: #7dccfa;}
#listEvents[data-category="MISCELÁNEA"] .date-header .smallday{ background-color: #0a80af;}
#listEvents[data-category="MOROS Y CRISTIANOS"] .date-header .smallday{ background-color: #f56e50;}
#listEvents[data-category="HUERTOS"] .date-header .smallday{ background-color: #de463c;}
#listEvents[data-category="ROMERÍA"] .date-header .smallday{ background-color: #38ad79;}
#listEvents[data-category="CONCIERTOS y ESPECTÁCULOS"] .date-header .smallday{ background-color: #de3769;}
#listEvents[data-category="TEATRO Y CINE"] .date-header .smallday{ background-color: #dec537;}
#listEvents[data-category=""] .date-header .smallday{ background-color: #7d9aa3;}


.event.event.actividades-todos-los-dias .event-time{ border-left: 4px solid #7dccfa;}
.event.miscelanea .event-time{ border-left: 4px solid #0a80af;}
.event.moros-y-cristianos .event-time{ border-left: 4px solid #ff8a3c;}
.event.huertos .event-time{ border-left: 4px solid #de463c;}
.event.romeria .event-time{ border-left: 4px solid #38ad79;}
.event.conciertos-y-espectaculos .event-time{ border-left: 4px solid #e73186;}
.event.teatro-y-cine .event-time{ border-left: 4px solid #dec537;}
/*.event.moros-y-cristianos .event-time{ background-color: #7d9aa3;}*/

.event.event.actividades-todos-los-dias .event-time::after{ display: block; content: "diários"; font-size: 0.7em; color: #6ba0be; }
.event.miscelanea .event-time::after{ display: block; content: "micelánea"; font-size: 0.7em; color: #0a80af; }
.event.moros-y-cristianos .event-time::after{ display: block; content: "mYc"; font-size: 0.7em; color: #ff8a3c; }
.event.huertos .event-time::after{ display: block; content: "huertos"; font-size: 0.7em; color: #de463c; }
.event.romeria .event-time::after{ display: block; content: "romería"; font-size: 0.7em; color: #38ad79; }
.event.conciertos-y-espectaculos .event-time::after{ display: block; content: "conciertos"; font-size: 0.7em; color: #e73186; }
.event.teatro-y-cine .event-time::after{ display: block; content: "TeatroCine"; font-size: 0.7em; color: #dec537; }


/* barra de favoritos */
#favoritos{
	display:flex; flex-wrap:wrap; gap:8px; margin:10px 0;
  }
  .favorito-chip{
	display:inline-flex; align-items:center; gap:8px;
	padding:6px 10px; border-radius:45px; background:#f3f5f7; color:#333;
	border:1px solid #e3e6ea; cursor:pointer; transition:transform .15s ease;
  }
  .favorito-chip:hover{ transform: translateY(-1px); }
  .favorito-chip .rm { background:transparent; border:0; font-weight:bold; cursor:pointer; }
  
  /* icono marcado */
  .event-actions .is-fav { color:#d43f5e; }
  
  /* resalte del evento al llegar */
  .event.fav-highlight {
	outline:3px solid #ffd166; box-shadow:0 0 0 3px rgba(255,209,102,.4); border-radius:12px;
	animation:favPulse .8s ease 2;
  }
  @keyframes favPulse {
	0% { transform:scale(1); }
	50% { transform:scale(1.01); }
	100%{ transform:scale(1); }
  }
  
  /* opcional: para scrollIntoView con cabecera fija */
  .date-wrap, #favoritos { scroll-margin-top: 220px; }

  






@media (max-width: 768px) {
	.event-actions{ min-width: 30px; max-width: 30px; }
}
@media (max-width: 768px) {
	.event-title{ font-size: 1em;}
	.event-content{ font-size: 0.9em;}
}



/*
end eventos ---------------------------------
*/






/*
--------------------------------- destacado
*/


.destacados{

}

.destacados .destacado{
	border-radius: 10px;
	background-color: #fff;
	min-height: 20px;
	display: flex;
	align-items: center;
	justify-content: left;
	padding: 5px;
	margin-bottom: 6px;
	cursor: pointer;
	color: #666;
}

.destacados .destacado:hover{
	background-color: #f8f9f9;
}

.destacados .destacado small{ color: #365c8a; border-radius: 15px; background-color: #d4ebf2; padding: 5px; margin-right: 7px;}

/*
end destacado ---------------------------------
*/




#noria {
	position: fixed;
	left: 0;
	top: -200px;             /* empieza fuera de pantalla */
	width: 450px;
	transform: translateX(-5px); 
	pointer-events: none;
	opacity: 0;
	z-index: 1;
  }
  
  @keyframes fly1 {
	0%   { top: -300px; opacity: 0; }
	7%   { top: 0px; opacity: 0.8; }
	80% { top: 55vh; opacity: 0.8; }
	90% { top: 35vh; opacity: 0.8; }
	100% { top: 130vh; opacity: 0;}
  }
  
  #noria.active {
	animation: fly1 3s cubic-bezier(.22,.61,.36,1) forwards;
	z-index: 9999;
  }

  
@media (max-width: 768px) {
	#noria{ width: 250px;}
}

/*
@-webkit-keyframes fly1{
	0%   { transform: translate(-115px, -50vh); opacity: 0; } 
	10%  { opacity: 1; }
	90%  { opacity: 1; }
	100% { transform: translate(-115px, 100vh); opacity: 0; } 
}
	

@media (prefers-reduced-motion: reduce){
	#noria{ display:none !important; }
}
*/


.msginfoapp{
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #38ad79;
	color: #f1f5fa;
	font-size: 1em;
	opacity: 0;
	z-index: -1;
	transition: opacity linear 0.2s;
}

.msginfoapp.active{
	opacity: 1;
	z-index: 9999;
}


.patrocinadores{
	width: 100%;
	margin: 0 auto;
	max-width: 800px;
}



#scrollToTopBtn{
	background-color: #005cbf;
	color: #fff;
	border-top-left-radius: 15px;
	border-bottom-left-radius: 15px;
	width: 35px;
	height: 35px;
	cursor: pointer;
	right: 0;
	top: 45vh;
	position: fixed;
}


.prefooter{
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
	background-color: #f8f9f9;
	border-radius: 15px;
	padding: 15px;
}

.sbs{color: #afbabe; font-size: 10px;}
.sbs .bi{ font-size: 9px;}


@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
	opacity: 0; 
	animation: fadeInUp 700ms ease-out forwards;
}


.fade-in-2 {
	opacity: 0; 
	animation: fadeInUp 400ms ease-out forwards;
	animation-delay: 400ms;
}



.terranaturabtn{    background: linear-gradient(191deg, #ffffff, #dae9de); box-shadow: none; margin-bottom: 10px; color: #333 !important;}

@media (prefers-reduced-motion: reduce) {
	.fade-in { animation: none; opacity: 1; transform: none; }
}


@media (max-width: 576px) {
	footer nav div {
	  width: 40%;
	}
}