/* ============================================================
   HERRERA DEL PISUERGA — HOME
   Sistema de diseño: agua del Canal, piedra, chopos, cielo abierto.
   Bootstrap 5 aporta el grid y las utilidades; estas reglas
   aportan la identidad visual propia del tema.
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@400;500;600&display=swap');

:root{
	/* Color */
	--hp-paper:        #F6F7F2;
	--hp-paper-alt:     #EEF0E7;
	--hp-ink:           #1B2620;
	--hp-water:         #1F4E4A;
	--hp-water-dark:    #163A37;
	--hp-water-wash:    #DCEAE7;
	--hp-moss:          #5C7A52;
	--hp-stone:         #C9C2AE;
	--hp-gold:          #B98B3E;
	--hp-white:         #FFFFFF;

	/* Type */
	--hp-font-display: 'Fraunces', Georgia, serif;
	--hp-font-body:    'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

	/* Layout */
	--hp-radius:       2px;
	--hp-section-pad:  clamp(4rem, 8vw, 7rem);
	--hp-container-max: 1240px;
}

/* ============================================================
   BASE
============================================================ */
.hp-home{
	background: var(--hp-paper);
	color: var(--hp-ink);
	font-family: var(--hp-font-body);
	overflow-x: hidden;
}

.hp-home .container{
	max-width: var(--hp-container-max);
}

.hp-home img{
	display: block;
	width: 100%;
	height: auto;
}

.hp-radius{
	border-radius: var(--hp-radius);
}

@media (prefers-reduced-motion: reduce){
	.hp-home *{
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

/* ============================================================
   TIPOGRAFÍA
============================================================ */
.hp-heading{
	font-family: var(--hp-font-display);
	font-weight: 500;
	font-size: clamp(1.9rem, 2.6vw, 2.75rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--hp-ink);
	margin-bottom: 1rem;
}

.hp-heading--on-panel{
	color: var(--hp-white);
}

.hp-text{
	font-size: 1.0625rem;
	line-height: 1.7;
	color: rgba(27, 38, 32, 0.78);
	margin-bottom: 1rem;
}

.hp-text--lead{
	font-size: 1.15rem;
	color: rgba(27, 38, 32, 0.9);
}

.hp-text--on-panel{
	color: rgba(255, 255, 255, 0.88);
}

.hp-max-text{
	max-width: 42em;
}

.hp-link{
	display: inline-flex;
	align-items: center;
	font-family: var(--hp-font-body);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--hp-water);
	text-decoration: none;
	border-bottom: 1px solid var(--hp-stone);
	padding-bottom: 2px;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.hp-link:hover{
	color: var(--hp-water-dark);
	border-color: var(--hp-water);
}

/* ============================================================
   BOTONES
============================================================ */
.hp-btn{
	display: inline-block;
	font-family: var(--hp-font-body);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.85rem 1.75rem;
	border-radius: var(--hp-radius);
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hp-btn--light{
	background: var(--hp-white);
	color: var(--hp-water-dark);
}

.hp-btn--light:hover{
	background: var(--hp-water-wash);
	color: var(--hp-water-dark);
}

.hp-btn--outline-light{
	background: transparent;
	color: var(--hp-white);
	border-color: rgba(255, 255, 255, 0.6);
}

.hp-btn--outline-light:hover{
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--hp-white);
	color: var(--hp-white);
}

/* ============================================================
   SECCIONES GENÉRICAS
============================================================ */
.hp-section{
	padding-block: var(--hp-section-pad);
}

.hp-section--tint{
	background: var(--hp-paper-alt);
}

/* ============================================================
   HERO
============================================================ */
.hp-hero{
	position: relative;
	min-height: 92vh;
	display: flex;
	align-items: flex-end;
	color: var(--hp-white);
}

.hp-hero__media{
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hp-hero__img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hp-hero__scrim{
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(15, 26, 22, 0.72) 0%,
		rgba(15, 26, 22, 0.18) 48%,
		rgba(15, 26, 22, 0.05) 100%
	);
}

.hp-hero__content{
	position: relative;
	z-index: 1;
	width: 100%;
	padding-block: clamp(3rem, 8vw, 6rem);
}

.hp-hero__title{
	font-family: var(--hp-font-display);
	font-weight: 500;
	font-size: clamp(2.75rem, 6vw, 4.5rem);
	line-height: 1.05;
	letter-spacing: -0.015em;
	margin-bottom: 1.25rem;
	animation: hp-rise 0.9s ease 0.1s both;
}

.hp-hero__lead{
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	max-width: 32em;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 2rem;
	animation: hp-rise 0.9s ease 0.25s both;
}

.hp-hero__actions{
	animation: hp-rise 0.9s ease 0.4s both;
}

@keyframes hp-rise{
	from{ opacity: 0; transform: translateY(14px); }
	to{ opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
	.hp-hero__title, .hp-hero__lead, .hp-hero__actions{
		animation: none;
	}
}

.hp-hero__scroll{
	position: absolute;
	right: clamp(1.5rem, 4vw, 3rem);
	bottom: 2rem;
	z-index: 1;
	width: 1px;
	height: 3.5rem;
}

.hp-hero__scroll-line{
	display: block;
	width: 1px;
	height: 100%;
	background: rgba(255, 255, 255, 0.5);
	position: relative;
}

.hp-hero__scroll-line::after{
	content: "";
	position: absolute;
	top: 0;
	left: -2px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--hp-white);
	animation: hp-drip 2.4s ease-in-out infinite;
}

@keyframes hp-drip{
	0%{ top: 0; opacity: 0; }
	20%{ opacity: 1; }
	80%{ opacity: 1; }
	100%{ top: 90%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
	.hp-hero__scroll-line::after{ animation: none; opacity: 1; top: 40%; }
}

/* ============================================================
   INTRO
============================================================ */
.hp-intro__frame{
	overflow: hidden;
	border-radius: var(--hp-radius);
}

/* ============================================================
   QUÉ VER — BENTO ASIMÉTRICO
============================================================ */
.hp-bento{
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-template-rows: auto auto;
	gap: 1.25rem;
}

.hp-bento__item{
	position: relative;
	margin: 0;
	grid-column: span 12;
	overflow: hidden;
	border-radius: var(--hp-radius);
	aspect-ratio: 4 / 3;
}

.hp-bento__item--large{
	aspect-ratio: 16 / 11;
}

.hp-bento__item img{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.hp-bento__item:hover img{
	transform: scale(1.035);
}

.hp-bento__item figcaption{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.25rem 1.4rem;
	background: linear-gradient(to top, rgba(15, 26, 22, 0.75), transparent);
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.hp-bento__title{
	font-family: var(--hp-font-display);
	font-size: 1.15rem;
	color: var(--hp-white);
}

.hp-bento__text{
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.85);
	max-width: 30em;
}

@media (min-width: 768px){
	.hp-bento__item--large{
		grid-column: span 7;
		grid-row: span 2;
	}
	.hp-bento__item:not(.hp-bento__item--large){
		grid-column: span 5;
	}
}

/* ============================================================
   QUÉ HACER — ACTIVIDADES
============================================================ */
.hp-activity{
	height: 100%;
	padding: 1.75rem 0 0;
	border-top: 1px solid var(--hp-stone);
}

.hp-activity__icon{
	display: inline-flex;
	width: 2.75rem;
	height: 2.75rem;
	color: var(--hp-water);
	margin-bottom: 1.1rem;
}

.hp-activity__icon svg{
	width: 100%;
	height: 100%;
}

.hp-activity__title{
	font-family: var(--hp-font-display);
	font-size: 1.2rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: var(--hp-ink);
}

.hp-activity__text{
	font-size: 0.98rem;
	line-height: 1.6;
	color: rgba(27, 38, 32, 0.75);
	max-width: 30em;
}

/* ============================================================
   CANAL DE CASTILLA — BANDA A SANGRE
============================================================ */
.hp-canal{
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	min-height: 34rem;
	color: var(--hp-white);
}

.hp-canal__media{
	position: relative;
}

.hp-canal__media img{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hp-canal__panel{
	position: relative;
	z-index: 1;
	background: rgba(22, 58, 55, 0.86);
	padding: clamp(2.5rem, 6vw, 4.5rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.25rem;
}

.hp-canal__panel .hp-btn{
	align-self: flex-start;
	margin-top: 0.75rem;
}

@media (min-width: 992px){
	.hp-canal{
		grid-template-columns: 1.3fr 1fr;
		min-height: 30rem;
	}
	.hp-canal__panel{
		max-width: 34rem;
	}
}

/* ============================================================
   LUGARES DESTACADOS — SCROLLER HORIZONTAL
============================================================ */
.hp-scroller-nav{
	display: flex;
	gap: 0.5rem;
}

.hp-scroller-nav__btn{
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 1px solid var(--hp-stone);
	background: var(--hp-paper);
	color: var(--hp-ink);
	font-size: 1.25rem;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hp-scroller-nav__btn:hover{
	background: var(--hp-water-wash);
	border-color: var(--hp-water);
}

.hp-scroller{
	display: flex;
	gap: 1.25rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 0.75rem;
	scrollbar-width: thin;
	scrollbar-color: var(--hp-stone) transparent;
}

.hp-scroller__card{
	flex: 0 0 auto;
	width: min(78vw, 340px);
	scroll-snap-align: start;
}

.hp-scroller__card img{
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: var(--hp-radius);
	margin-bottom: 0.9rem;
}

.hp-scroller__caption h3{
	font-family: var(--hp-font-display);
	font-size: 1.1rem;
	font-weight: 500;
	margin-bottom: 0.3rem;
	color: var(--hp-ink);
}

.hp-scroller__caption p{
	font-size: 0.92rem;
	color: rgba(27, 38, 32, 0.7);
	line-height: 1.55;
}

/* ============================================================
   PRÓXIMOS EVENTOS
============================================================ */
.hp-events{
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 42rem;
}

.hp-events__item{
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	padding: 1.4rem 0;
	border-bottom: 1px solid var(--hp-stone);
}

.hp-events__item:first-child{
	border-top: 1px solid var(--hp-stone);
}

.hp-events__date{
	flex: 0 0 auto;
	width: 4rem;
	text-align: center;
	color: var(--hp-water);
}

.hp-events__day{
	display: block;
	font-family: var(--hp-font-display);
	font-size: 1.9rem;
	line-height: 1;
	font-weight: 500;
}

.hp-events__month{
	display: block;
	font-size: 0.85rem;
	color: rgba(27, 38, 32, 0.6);
	margin-top: 0.2rem;
}

.hp-events__title{
	font-family: var(--hp-font-display);
	font-size: 1.15rem;
	font-weight: 500;
	margin-bottom: 0.2rem;
	color: var(--hp-ink);
}

.hp-events__place{
	font-size: 0.92rem;
	color: rgba(27, 38, 32, 0.65);
	margin: 0;
}

/* ============================================================
   ALOJAMIENTO Y GASTRONOMÍA
============================================================ */
.hp-split img{
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* ============================================================
   NOTICIAS
============================================================ */
.hp-news-card__link{
	display: block;
	text-decoration: none;
	color: inherit;
}

.hp-news-card__media{
	overflow: hidden;
	border-radius: var(--hp-radius);
	margin-bottom: 1rem;
}

.hp-news-card__media img{
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hp-news-card__link:hover .hp-news-card__media img{
	transform: scale(1.03);
}

.hp-news-card__date{
	display: block;
	font-size: 0.82rem;
	color: var(--hp-water);
	margin-bottom: 0.4rem;
}

.hp-news-card__title{
	font-family: var(--hp-font-display);
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--hp-ink);
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

.hp-news-card__excerpt{
	font-size: 0.95rem;
	line-height: 1.6;
	color: rgba(27, 38, 32, 0.72);
}

/* ============================================================
   CTA FINAL
============================================================ */
.hp-cta{
	position: relative;
	display: flex;
	align-items: center;
	min-height: 30rem;
	padding-block: var(--hp-section-pad);
	overflow: hidden;
}

.hp-cta__media{
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hp-cta__media img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hp-cta__scrim{
	position: absolute;
	inset: 0;
	background: rgba(15, 26, 22, 0.62);
}

.hp-cta__content{
	position: relative;
	z-index: 1;
	max-width: 34rem;
}

.hp-cta__actions{
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.75rem;
}
@media (min-width: 992px) {
  .hp-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
  }

  .hp-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hp-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .hp-hero__content {
    position: relative;
    z-index: 2;
  }
}
