/**
 * Timeline "Historia" — frontend.
 *
 * Layout: el punto verde se ancla a la línea horizontal (a la izquierda
 * del año), no encima del título. Cuando no hay imagen, un círculo
 * decorativo con icono ocupa el espacio.
 */

.gramoflor-timeline {
	--gramoflor-green:      #76b82a;
	--gramoflor-green-soft: #f0f6e6;
	--gramoflor-line:       rgba(0, 0, 0, 0.18);

	position: relative;
	padding: 24px 60px 32px;
	box-sizing: border-box;
}

.gramoflor-timeline__line {
	position: absolute;
	top: 54px;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--gramoflor-line);
	z-index: 1;
}

.gramoflor-timeline__swiper {
	position: relative;
	z-index: 2;
	overflow: hidden;
}

/* ---------- Tarjeta del hito ---------- */

.gramoflor-hito-card {
	position: relative;
	padding: 0 8px 0 32px;
	box-sizing: border-box;
	height: 100%;
}

.gramoflor-hito-card__year {
	font-size: 16px;
	font-weight: 700;
	color: #1d2327;
	margin: 0 0 24px;
	line-height: 1.2;
}

.gramoflor-hito-card__dot {
	position: absolute;
	top: 0px;
	left: 0;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--gramoflor-green);
	border: 3px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
	box-sizing: content-box;
	z-index: 3;
}

.gramoflor-hito-card__connector {
	position: absolute;
	top: 20px;
	left: 9px;
	width: 1px;
	height: 32px;
	background: var(--gramoflor-line);
	z-index: 2;
}

/* Imagen (cuando hay) */
.gramoflor-hito-card__image {
	margin: 0 0 18px;
	border-radius: 10px;
	overflow: hidden;
	background: #f0f0f1;
}
.gramoflor-hito-card__image img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

/* Icono decorativo (cuando NO hay imagen) */
.gramoflor-hito-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--gramoflor-green-soft);
	color: var(--gramoflor-green);
	margin: 0 0 18px;
}
.gramoflor-hito-card__icon svg {
	width: 28px;
	height: 28px;
}

/* En la variante sin imagen el contenido sube y el card queda más compacto */
.gramoflor-hito-card--no-image .gramoflor-hito-card__title {
	margin-top: 0;
}

.gramoflor-hito-card__title {
	font-size: 18px;
	font-weight: 700;
	color: #1d2327;
	margin: 0 0 10px;
	line-height: 1.3;
}

.gramoflor-hito-card__description {
	font-size: 14px;
	line-height: 1.6;
	color: #50575e;
}
.gramoflor-hito-card__description p {
	margin: 0 0 8px;
}
.gramoflor-hito-card__description p:last-child {
	margin: 0;
}

/* ---------- Navegación ---------- */

.gramoflor-timeline__nav {
	display: flex;
	gap: 10px;
	margin-top: 28px;
	padding-left: 8px;
}
.gramoflor-timeline__prev,
.gramoflor-timeline__next {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #d4d4d4;
	border: none;
	cursor: pointer;
	font-size: 32px;
	line-height: 1;
	color: #1d2327;
	transition: background 0.2s ease, color 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 16px;
}
.gramoflor-timeline__prev:hover:not(.swiper-button-disabled),
.gramoflor-timeline__next:hover:not(.swiper-button-disabled) {
	background: var(--gramoflor-green);
	color: #fff;
}
.gramoflor-timeline__prev.swiper-button-disabled,
.gramoflor-timeline__next.swiper-button-disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
	.gramoflor-timeline {
		padding: 24px 32px 32px;
	}
}

@media (max-width: 767px) {
	.gramoflor-timeline {
		padding: 16px 16px 24px;
	}
	.gramoflor-hito-card__image img {
		height: 200px;
	}
	.gramoflor-timeline__nav {
		justify-content: center;
		padding-left: 0;
	}
}