/**
 * Home page — Estilos específicos de la página de inicio.
 *
 * Solo contiene overrides y layouts propios de la home.
 * Los componentes globales (buttons, cards, section-heading, stats, badges)
 * se cargan desde main.css.
 *
 * Solo se carga en front-page.
 */

/* =============================================
   FRONT PAGE — Override del main padding
   ============================================= */

.site-main--front-page {
	padding-top: 0;
	padding-bottom: 0;
}

/* =============================================
   HERO — Layout 2 columnas con grid de productos
   ============================================= */

.hero {
	overflow: hidden;
	min-height: calc(100vh - var(--header-height));
	min-height: calc(100dvh - var(--header-height));
	display: flex;
	align-items: center;
	padding: var(--space-xl) 0;
}

/* ---- Grid principal ---- */

.hero__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-xl);
	align-items: center;
}

@media (min-width: 960px) {
	.hero__inner {
		grid-template-columns: 1fr 1.1fr;
		gap: var(--space-2xl);
	}
}

/* ---- Contenido (columna izquierda) ---- */

.hero__content {
	order: 0;
}

@media (min-width: 960px) {
	.hero__content {
		order: 0;
	}
}

/* Stagger fade-in */
.hero-fade {
	opacity: 0;
	transform: translateY(20px);
	animation: heroFadeUp 0.7s ease forwards;
	animation-delay: calc(var(--fade-order, 0) * 0.12s + 0.1s);
}

@keyframes heroFadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Eyebrow */
.hero__eyebrow {
	display: inline-block;
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
	text-transform: uppercase;
	letter-spacing: var(--tracking-wider);
	color: var(--color-primary);
	margin-bottom: var(--space-sm);
}

/* Título */
.hero__title {
	font-size: var(--font-size-2xl);
	line-height: var(--line-height-heading);
	letter-spacing: var(--tracking-tight);
	margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
	.hero__title {
		font-size: var(--font-size-3xl);
	}
}

@media (min-width: 960px) {
	.hero__title {
		font-size: 3.5rem;
	}
}

.hero__title-accent {
	color: var(--color-primary);
}

/* Texto */
.hero__text {
	font-size: var(--font-size-lg);
	color: var(--color-text-muted);
	max-width: 44ch;
	margin-bottom: var(--space-lg);
	line-height: var(--line-height-base);
}

/* CTAs */
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	margin-bottom: var(--space-lg);
}

/* Indicador de prendas */
.hero__indicator {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: var(--space-lg);
}

.hero__indicator-value {
	font-family: var(--font-family-heading);
	font-size: var(--font-size-2xl);
	font-weight: var(--font-weight-bold);
	color: var(--color-primary);
	line-height: 1;
}

.hero__indicator-label {
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
}

/* Stats / prueba social */
.hero__proof {
	display: flex;
	gap: var(--space-lg);
	padding-top: var(--space-lg);
	border-top: 1px solid var(--border-color);
}

.hero__proof .stat {
	text-align: left;
	padding: 0;
}

.hero__proof .stat__value {
	font-size: var(--font-size-xl);
}

.hero__proof .stat__label {
	font-size: 0.75rem;
}

/* ---- Visual: grid de productos ---- */

.hero__visual {
	order: 1;
}

@media (min-width: 960px) {
	.hero__visual {
		order: 1;
	}
}

.hero-products {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

@media (min-width: 480px) {
	.hero-products {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}
}

/* Card producto */
.hero-product {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--color-gray-100);
	aspect-ratio: 4 / 5;
	text-decoration: none;
}

.hero-product img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
	will-change: transform;
}

.hero-product:hover img {
	transform: scale(1.05);
}

/* Overlay con precio */
.hero-product__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.45) 0%,
		rgba(0, 0, 0, 0) 50%
	);
	display: flex;
	align-items: flex-end;
	padding: 12px;
	opacity: 0;
	transition: opacity var(--transition-base);
}

.hero-product:hover .hero-product__overlay {
	opacity: 1;
}

.hero-product__price {
	color: #fff;
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
	line-height: 1;
}

.hero-product__price del {
	opacity: 0.6;
	margin-right: 4px;
}

.hero-product__price ins {
	text-decoration: none;
}

/* Variación de tamaño para sensación orgánica */
.hero-product:nth-child(2) {
	transform: translateY(16px);
}

.hero-product:nth-child(5) {
	transform: translateY(16px);
}

/* ---- Responsive ---- */

@media (max-width: 599px) {
	.hero__proof {
		gap: var(--space-md);
	}

	.hero__proof .stat__value {
		font-size: var(--font-size-lg);
	}

	.hero__indicator-value {
		font-size: var(--font-size-xl);
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.hero-fade {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.hero-product img {
		transition: none;
	}

	.hero-product:nth-child(2),
	.hero-product:nth-child(5) {
		transform: none;
	}
}

/* =============================================
   VALUE PROPS — Section override
   ============================================= */

.value-props {
	background-color: var(--color-surface);
}

/* Feature card icon (home-specific) */
.value-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto var(--space-md);
	background-color: var(--color-primary-soft);
	color: var(--color-primary);
	border-radius: var(--radius-lg);
	font-size: var(--font-size-xl);
	line-height: 1;
}

.value-card__title {
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-semibold);
	letter-spacing: var(--tracking-normal);
	margin-bottom: var(--space-xs);
}

.value-card__text {
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
}

/* =============================================
   PROCESS — Sección "Cómo funciona"
   ============================================= */

/* Fondo sutil */
.section--process {
	background-color: var(--color-surface);
}

/* ---- Visual: intercambio ropa → saldo ---- */

.process-visual {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-lg);
	margin-bottom: var(--space-xl);
	padding: var(--space-lg) 0;
}

.process-visual__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-xs);
	animation: processFadeUp 0.6s ease both;
}

.process-visual__clothes {
	animation-delay: 0.1s;
}

.process-visual__value {
	animation-delay: 0.3s;
}

@keyframes processFadeUp {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.process-visual__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--color-primary-soft);
	color: var(--color-primary);
}

.process-visual__label {
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
	font-weight: var(--font-weight-medium);
}

.process-visual__arrow {
	color: var(--color-gray-300);
	animation: processFadeUp 0.6s ease 0.2s both;
	flex-shrink: 0;
}

.process-visual__highlight {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	background: var(--color-primary);
	color: var(--color-surface);
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-md);
}

.process-visual__amount {
	font-family: var(--font-family-heading);
	font-size: var(--font-size-2xl);
	font-weight: var(--font-weight-bold);
	line-height: 1;
}

.process-visual__equals {
	font-size: var(--font-size-xl);
	opacity: 0.6;
}

/* Responsive visual */
@media (max-width: 600px) {
	.process-visual {
		gap: var(--space-md);
	}

	.process-visual__icon {
		width: 56px;
		height: 56px;
	}

	.process-visual__icon svg {
		width: 24px;
		height: 24px;
	}

	.process-visual__amount {
		font-size: var(--font-size-xl);
	}

	.process-visual__highlight {
		padding: var(--space-xs) var(--space-sm);
	}

	.process-visual__arrow svg {
		width: 28px;
		height: 28px;
	}
}

/* ---- Steps grid ---- */

.process-steps {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-md);
	margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
	.process-steps {
		grid-template-columns: repeat(4, 1fr);
		gap: var(--space-lg);
	}
}

.process-step {
	text-align: center;
	padding: var(--space-md);
}

.process-step__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--color-primary-soft);
	color: var(--color-primary);
	font-family: var(--font-family-heading);
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-bold);
	line-height: 1;
	margin-bottom: var(--space-sm);
}

.process-step__title {
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-semibold);
	letter-spacing: var(--tracking-normal);
	margin-bottom: var(--space-xs);
}

.process-step__text {
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
	line-height: var(--line-height-base);
	max-width: 32ch;
	margin: 0 auto;
}

/* ---- Details cards ---- */

.process-details {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-md);
	margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
	.process-details {
		grid-template-columns: 1fr 1fr;
	}
}

.process-details__card {
	background: var(--color-bg);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	padding: var(--space-md);
}

.process-details__title {
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-semibold);
	margin-bottom: var(--space-sm);
}

.process-details__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.process-details__list li {
	position: relative;
	padding-left: var(--space-md);
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
	line-height: var(--line-height-base);
}

.process-details__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 8px;
	height: 8px;
	background-color: var(--color-primary);
	border-radius: 50%;
}

/* ---- CTA ---- */

.process-cta {
	text-align: center;
	padding-top: var(--space-lg);
	border-top: 1px solid var(--border-color);
}

.process-cta__title {
	font-family: var(--font-family-heading);
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-bold);
	margin-bottom: var(--space-md);
}

.process-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	justify-content: center;
}

/* =============================================
   STORES — Layout + cards + mapa
   ============================================= */

/* Layout 2 columnas: lista + mapa */
.stores-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-lg);
	align-items: start;
}

@media (min-width: 960px) {
	.stores-layout {
		grid-template-columns: 1fr 1fr;
		gap: var(--space-xl);
	}
}

/* Lista de tiendas */
.stores-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

/* ---- Store Card ---- */

.store-card {
	background: var(--color-surface);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	padding: var(--space-md);
	transition:
		box-shadow var(--transition-base),
		transform var(--transition-base);
}

.store-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.store-card--coming-soon {
	opacity: 0.7;
}

.store-card--coming-soon:hover {
	box-shadow: var(--shadow-sm);
	transform: none;
}

/* Header: nombre + badge */
.store-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-sm);
	margin-bottom: var(--space-xs);
}

.store-card__name {
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-semibold);
	letter-spacing: var(--tracking-normal);
	margin: 0;
	line-height: var(--line-height-tight);
}

/* Badge de estado */
.store-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 100px;
	font-size: 0.75rem;
	font-weight: var(--font-weight-medium);
	white-space: nowrap;
	flex-shrink: 0;
	line-height: 1;
}

.store-badge--active {
	background: var(--color-primary-soft);
	color: var(--color-primary);
}

.store-badge__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--color-primary);
	animation: store-pulse 2s ease-in-out infinite;
}

@keyframes store-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.store-badge--coming-soon {
	background: var(--color-gray-100);
	color: var(--color-text-muted);
}

/* Dirección y ciudad */
.store-card__address {
	color: var(--color-text);
	font-size: var(--font-size-sm);
	margin: 0 0 2px;
	line-height: var(--line-height-base);
}

.store-card__city {
	color: var(--color-text-muted);
	font-size: var(--font-size-sm);
	margin: 0 0 var(--space-sm);
}

/* Meta: horario + teléfono */
.store-card__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: var(--space-sm);
	border-top: 1px solid var(--border-color);
	margin-bottom: var(--space-sm);
}

.store-card__meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
}

.store-card__meta-item svg {
	color: var(--color-gray-300);
	flex-shrink: 0;
}

.store-card__meta-item a {
	color: var(--color-primary);
	text-decoration: none;
}

.store-card__meta-item a:hover {
	text-decoration: underline;
}

/* Acciones */
.store-card__actions {
	padding-top: var(--space-sm);
}

.store-card__actions .btn {
	display: inline-flex;
	align-items: center;
}

.store-card__btn-disabled {
	opacity: 0.45;
	cursor: default;
	pointer-events: none;
}

/* ---- Mapa ---- */

.stores-map {
	border-radius: var(--radius-xl);
	overflow: hidden;
	min-height: 400px;
	height: 100%;
	box-shadow: var(--shadow-md);
	border: 1px solid var(--border-color);
	background: var(--color-gray-100);
}

.stores-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 400px;
}

@media (min-width: 960px) {
	.stores-map {
		position: sticky;
		top: calc(var(--header-height) + var(--space-md));
	}

	.stores-map iframe {
		min-height: 520px;
	}
}

/* (bring-clothes eliminado — unificado en PROCESS) */

/* (explore-fashion movido a components/explore-fashion.css) */

/* =============================================
   IMPACT — Section override
   ============================================= */

.section--impact {
	background: var(--color-primary);
	color: #fff;
}

.section--impact .section-heading__eyebrow {
	color: rgba(255, 255, 255, 0.7);
}

.section--impact .section-heading__title {
	color: #fff;
}

.section--impact .section-heading__description {
	color: rgba(255, 255, 255, 0.7);
}

/* ---- Impact grid ---- */

.impact-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-lg);
	margin-top: var(--space-lg);
	text-align: center;
}

.impact-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-xs);
}

.impact-number {
	font-family: var(--font-family-heading);
	font-size: var(--font-size-3xl);
	font-weight: var(--font-weight-bold);
	line-height: 1;
	color: #fff;
}

.impact-label {
	font-size: var(--font-size-sm);
	color: rgba(255, 255, 255, 0.75);
	max-width: 22ch;
}

/* ---- Footer message ---- */

.impact-footer {
	margin-top: var(--space-lg);
	text-align: center;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	font-size: 16px;
	opacity: 0.9;
}

.impact-footer p {
	margin: 0;
}

/* ---- Responsive ---- */

@media (max-width: 767px) {
	.impact-grid {
		grid-template-columns: 1fr;
		gap: var(--space-md);
	}

	.impact-number {
		font-size: var(--font-size-2xl);
	}
}

/* =============================================
   PRESS
   ============================================= */

.section--press {
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
}

.press-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-lg);
	margin-top: var(--space-lg);
}

.press-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 30px;
	background: var(--color-surface);
	border-radius: 12px;
	text-align: center;
	text-decoration: none;
	transition: all 0.3s ease;
}

.press-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.press-logo {
	font-family: var(--font-family-heading);
	font-size: 20px;
	font-weight: var(--font-weight-bold);
	color: #999;
	transition: color 0.3s;
}

.press-item:hover .press-logo {
	color: var(--color-primary);
}

.press-link {
	font-size: 12px;
	margin-top: 8px;
	color: var(--color-text-muted);
}

@media (max-width: 767px) {
	.press-grid {
		grid-template-columns: 1fr;
	}
}

/* =============================================
   CTA FINAL
   ============================================= */

.cta-final {
	text-align: center;
	background-color: var(--color-surface);
}

.cta-final__content {
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.cta-final__title {
	font-size: var(--font-size-2xl);
	margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
	.cta-final__title {
		font-size: var(--font-size-3xl);
	}
}

.cta-final__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	justify-content: center;
}
