/* Vega de Monasterio — estilos del plugin municipal */

:root {
	--vega-verde: #2E5940;
	--vega-verde-osc: #1F3A2A;
	--vega-ocre: #C79A3B;
	--vega-crema: #FAF7EF;
	--vega-crema-osc: #F0E6CF;
	--vega-tinta: #23281F;
	--vega-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
}

body {
	background: var(--vega-crema);
}

/* ---------- HERO ---------- */

.vega-hero {
	position: relative;
	width: 100%;
	height: clamp(480px, 78vh, 780px);
	overflow: hidden;
	background: var(--vega-verde-osc);
}

.vega-hero__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1.1s ease;
	z-index: 0;
}
.vega-hero__slide.is-active { opacity: 1; z-index: 1; }

.vega-hero__slide::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(12, 22, 14, 0.05) 30%, rgba(12, 22, 14, 0.74) 100%);
}

.vega-hero__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 clamp(1.2rem, 4vw, 2.5rem) clamp(2rem, 5vh, 3.4rem);
	color: var(--vega-crema);
}

.vega-hero__badge {
	display: inline-block;
	background: var(--vega-ocre);
	color: #241d0a;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.28rem 0.75rem;
	border-radius: 999px;
	margin-bottom: 0.8rem;
}

.vega-hero__title {
	font-family: var(--vega-serif);
	font-size: clamp(2rem, 5.2vw, 3.6rem);
	line-height: 1.05;
	margin: 0 0 0.35em;
	color: var(--vega-crema);
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
	max-width: 16em;
}

.vega-hero__sub {
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	margin: 0;
	opacity: 0.94;
	max-width: 40em;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.vega-hero__mas {
	display: inline-block;
	margin-top: 0.9rem;
	color: var(--vega-crema);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid var(--vega-ocre);
	padding-bottom: 2px;
}
.vega-hero__mas:hover { color: var(--vega-ocre); }

.vega-hero__flecha {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 0;
	background: rgba(10, 15, 10, 0.32);
	color: #fff;
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.2s, background 0.2s;
	display: grid;
	place-items: center;
	padding: 0 0 4px;
}
.vega-hero:hover .vega-hero__flecha { opacity: 1; }
.vega-hero__flecha:hover { background: rgba(10, 15, 10, 0.6); }
.vega-hero__flecha--prev { left: 1rem; }
.vega-hero__flecha--next { right: 1rem; }

.vega-hero__dots {
	position: absolute;
	bottom: 1.1rem;
	right: clamp(1.2rem, 4vw, 2.5rem);
	z-index: 3;
	display: flex;
	gap: 0.5rem;
}

.vega-hero__dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: width 0.25s, background 0.25s;
}
.vega-hero__dot.is-active {
	width: 24px;
	background: var(--vega-ocre);
}

.vega-hero--vacio {
	display: grid;
	place-items: center;
	background: linear-gradient(160deg, var(--vega-verde) 0%, var(--vega-verde-osc) 100%);
}
.vega-hero--vacio .vega-hero__caption {
	position: static;
	text-align: center;
	padding: 2rem;
}

/* ---------- BANDAS DE PORTADA ---------- */

.vega-band { padding: clamp(3rem, 7vh, 4.6rem) 0; }

.vega-titulo {
	font-family: var(--vega-serif);
	font-size: clamp(1.7rem, 3.2vw, 2.4rem);
	color: var(--vega-verde-osc);
	margin-bottom: 0.45em;
}

.vega-intro {
	font-size: 1.06rem;
	color: #4c5245;
	max-width: 46em;
}

.vega-band__accion { margin-top: 1.6rem; }
.vega-band__accion a {
	display: inline-block;
	background: var(--vega-verde);
	color: var(--vega-crema);
	padding: 0.72rem 1.5rem;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s, transform 0.2s;
}
.vega-band__accion a:hover {
	background: var(--vega-verde-osc);
	transform: translateY(-2px);
	color: #fff;
}

.vega-band--pueblo {
	background: linear-gradient(rgba(20, 36, 26, 0.84), rgba(20, 36, 26, 0.84)),
		url('/wp-content/uploads/2026/07/campanas-espadana-web.jpg') center / cover no-repeat var(--vega-verde-osc);
	text-align: center;
}
.vega-band--pueblo .vega-titulo { color: var(--vega-crema); }
.vega-band--pueblo .vega-intro { color: rgba(250, 247, 239, 0.85); margin-inline: auto; }
.vega-band--pueblo .vega-band__accion a { background: var(--vega-ocre); color: #241d0a; }
.vega-band--pueblo .vega-band__accion a:hover { background: #d8ab48; color: #241d0a; }

.vega-band--vecinos {
	background: linear-gradient(rgba(22, 34, 32, 0.62), rgba(22, 34, 32, 0.62)),
		url('/wp-content/uploads/2026/07/veleta-gallo-web.jpg') center / cover no-repeat var(--vega-crema-osc);
	text-align: center;
}
.vega-band--vecinos .vega-titulo { color: var(--vega-crema); }
.vega-band--vecinos .vega-intro { margin-inline: auto; color: rgba(250, 247, 239, 0.9); }
.vega-band--vecinos .vega-band__accion a { background: var(--vega-ocre); color: #241d0a; }
.vega-band--vecinos .vega-band__accion a:hover { background: #d8ab48; color: #241d0a; }

/* ---------- AGENDA ---------- */

.vega-agenda {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
	gap: 1.4rem;
	margin-top: 1.6rem;
}

.vega-agenda--vacia p {
	background: #fff;
	border: 1px dashed #cfc9b4;
	border-radius: 14px;
	padding: 2rem;
	text-align: center;
	color: #6b7061;
}

.vega-card {
	display: block;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 3px rgba(35, 40, 31, 0.08);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.vega-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 28px rgba(35, 40, 31, 0.16);
}

.vega-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background-size: cover;
	background-position: center;
}
.vega-card__media--sin {
	background: linear-gradient(135deg, var(--vega-verde) 0%, var(--vega-ocre) 130%);
}

.vega-card__fecha {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--vega-crema);
	border-radius: 12px;
	padding: 0.4rem 0.65rem 0.35rem;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	line-height: 1;
}
.vega-card__fecha b {
	display: block;
	font-family: var(--vega-serif);
	font-size: 1.4rem;
	color: var(--vega-verde-osc);
}
.vega-card__fecha i {
	display: block;
	font-style: normal;
	font-size: 0.66rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--vega-ocre);
	margin-top: 2px;
}

.vega-card__cuerpo { padding: 1rem 1.15rem 1.2rem; }
.vega-card__titulo {
	font-size: 1.1rem;
	font-weight: 650;
	margin: 0 0 0.35em;
	color: var(--vega-tinta);
	line-height: 1.25;
}
.vega-card__meta {
	font-size: 0.86rem;
	color: #6b7061;
	margin: 0;
}

/* ---------- FICHA DE EVENTO ---------- */

.vega-evento-meta {
	background: var(--vega-crema-osc);
	border-left: 4px solid var(--vega-ocre);
	border-radius: 10px;
	padding: 0.85rem 1.1rem;
	font-weight: 550;
	color: var(--vega-verde-osc);
}

/* ---------- ZONA DE VECINOS ---------- */

.vega-vecinos-aviso p,
.vega-vecinos-login {
	background: #fff;
	border-radius: 16px;
	padding: 2rem;
	box-shadow: 0 1px 3px rgba(35, 40, 31, 0.08);
}

.vega-vecinos-login { max-width: 460px; }
.vega-vecinos-login h3 {
	font-family: var(--vega-serif);
	color: var(--vega-verde-osc);
	margin-top: 0;
}
.vega-vecinos-login form {
	display: flex;
	gap: 0.6rem;
	margin-top: 1.1rem;
	flex-wrap: wrap;
}
.vega-vecinos-login input[type='password'] {
	flex: 1 1 200px;
	padding: 0.65rem 0.9rem;
	border: 1.5px solid #d5cfba;
	border-radius: 10px;
	font-size: 1rem;
}
.vega-vecinos-login button {
	background: var(--vega-verde);
	color: var(--vega-crema);
	border: 0;
	border-radius: 10px;
	padding: 0.65rem 1.4rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}
.vega-vecinos-login button:hover { background: var(--vega-verde-osc); }

.vega-vecinos-error {
	color: #a13324;
	font-weight: 600;
}

.vega-vecinos__barra {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--vega-crema-osc);
	border-radius: 12px;
	padding: 0.7rem 1.1rem;
	margin-bottom: 1.6rem;
}
.vega-vecinos__salir {
	background: none;
	border: 1.5px solid var(--vega-verde);
	color: var(--vega-verde);
	border-radius: 999px;
	padding: 0.3rem 1rem;
	cursor: pointer;
	font-weight: 600;
}
.vega-vecinos__salir:hover { background: var(--vega-verde); color: #fff; }

.vega-vecinos__tipo {
	font-family: var(--vega-serif);
	color: var(--vega-verde-osc);
	border-bottom: 2px solid var(--vega-ocre);
	display: inline-block;
	padding-bottom: 0.2em;
	margin: 1.6em 0 0.6em;
}

.vega-vecinos__docs {
	list-style: none;
	margin: 0;
	padding: 0;
}
.vega-vecinos__docs li {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: #fff;
	border-radius: 12px;
	padding: 0.8rem 1.1rem;
	margin-bottom: 0.6rem;
	box-shadow: 0 1px 2px rgba(35, 40, 31, 0.06);
}
.vega-vecinos__doc-titulo { flex: 1; font-weight: 600; }
.vega-vecinos__doc-fecha { color: #6b7061; font-size: 0.86rem; }
.vega-vecinos__doc-ver {
	background: var(--vega-ocre);
	color: #241d0a;
	border-radius: 999px;
	padding: 0.35rem 1rem;
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: none;
}
.vega-vecinos__doc-ver:hover { background: #d8ab48; }

/* ---------- GALERÍA ---------- */

.vega-galeria { gap: 14px !important; }
.vega-galeria .wp-block-image {
	border-radius: 14px;
	overflow: hidden;
}
.vega-galeria .wp-block-image img {
	cursor: zoom-in;
	transition: transform 0.28s ease;
	display: block;
}
.vega-galeria .wp-block-image:hover img { transform: scale(1.04); }
.vega-galeria .wp-block-image figcaption {
	font-size: 0.82rem;
	color: #6b7061;
}

.vega-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	background: rgba(14, 19, 14, 0.94);
}
.vega-lightbox figure {
	margin: 0;
	max-width: 92vw;
	text-align: center;
}
.vega-lightbox img {
	max-width: 92vw;
	max-height: 84vh;
	border-radius: 10px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}
.vega-lightbox figcaption {
	color: var(--vega-crema);
	margin-top: 0.8rem;
	font-size: 0.95rem;
	opacity: 0.85;
}
.vega-lightbox__btn {
	position: absolute;
	z-index: 2;
	background: rgba(250, 247, 239, 0.12);
	border: 0;
	color: var(--vega-crema);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0 0 4px;
}
.vega-lightbox__btn:hover { background: rgba(250, 247, 239, 0.25); }
.vega-lightbox__cerrar { top: 1.2rem; right: 1.2rem; padding: 0; }
.vega-lightbox__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.vega-lightbox__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- FOOTER ---------- */

.vega-footer__in { max-width: 860px; margin: 0 auto; }

.vega-footer {
	background: var(--vega-verde-osc);
	color: var(--vega-crema);
	padding: 3rem 1.25rem 2.2rem;
	margin-top: 0;
	text-align: center;
}
.vega-footer__marca {
	font-family: var(--vega-serif);
	font-size: 1.5rem;
	margin: 0 0 0.2em;
	color: var(--vega-crema);
}
.vega-footer__lema {
	color: rgba(250, 247, 239, 0.75);
	margin: 0 0 1.4em;
	font-size: 0.98rem;
}
.vega-footer__nota {
	font-size: 0.85rem;
	color: rgba(250, 247, 239, 0.6);
	margin: 0;
}
.vega-footer__nota a {
	color: var(--vega-ocre);
	text-decoration: none;
}
.vega-footer__nota a:hover { text-decoration: underline; }

/* ---------- AJUSTES RESPONSIVE ---------- */

@media (max-width: 600px) {
	.vega-hero { height: min(72vh, 560px); }
	.vega-hero__flecha { display: none; }
}
