/*
 * La Canasta - pagina Artesanos.
 *
 * Orden de las secciones segun el diseno:
 *   1. Portada lila con flores moradas
 *   2. Greca + cuerpo sobre textura de papel (SIN flores)
 *   3. Banda lila inclinada
 *   4. Cierre sobre el fondo rosa de flores + greca final
 *
 * Valores de Figma: 159:19 titular de portada (Raleway Black/Bold 40px,
 * blanco), 159:332 "NUESTRA FAMILIA" (Raleway Black 90px, #CD3C87).
 *
 * REGLA: ninguna seccion lleva `height`. Todo crece con su contenido.
 */

:root {
	--lc-lila: var(--wp--preset--color--lila, #be78e8);
	--lc-lila-claro: var(--wp--preset--color--lila-claro, #dca1ff);
	--lc-rosa: var(--wp--preset--color--rosa, #fd9cd6);
}

/* ---------------------------------------------------------------
   1. Portada
   Fondo lila claro con las flores moradas. Las flores van en un
   pseudo-elemento porque son decoracion: ni estorban en el editor
   ni las anuncian los lectores de pantalla.
   --------------------------------------------------------------- */

.lc-art-hero {
	position: relative;
	isolation: isolate;
	overflow-x: clip;
	background-color: var(--lc-lila-claro);
	padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.lc-art-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		url("../img/art-flor.png"),
		url("../img/art-flor-b.png");
	background-repeat: no-repeat, no-repeat;
	background-position:
		right -3% top 8%,
		left -5% bottom 4%;
	background-size:
		clamp(150px, 24vw, 395px) auto,
		clamp(150px, 24vw, 395px) auto;
}

.lc-art-hero__rotulo {
	margin: 0 auto clamp(1rem, 2.5vw, 1.75rem);
	max-width: min(100%, 520px);
}

.lc-art-hero__rotulo img {
	display: block;
	width: 100%;
	height: auto;
}

.lc-art-hero__titulo {
	display: flex;
	flex-direction: column;
	gap: 0.1em;
	margin: 0;
	color: #fff;
	text-align: center;
	font-size: clamp(1.25rem, 3.2vw, 2.5rem); /* 40px al ancho ancla */
	line-height: 1.2;
}

.lc-art-hero__titulo strong {
	font-weight: 900;
}

.lc-art-hero__titulo span {
	font-weight: 700;
}

/* ---------------------------------------------------------------
   2. Cuerpo sobre la textura
   Sin flores: en el diseno solo aparecen en la portada y en el cierre.
   --------------------------------------------------------------- */

.lc-art-cuerpo {
	position: relative;
	overflow-x: clip;
	background-color: #f2f2f2;
	background-image: url("../img/textura.webp");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

/* Greca: banda decorativa. La imagen mide 1280x152 y se repite en
   horizontal, asi que en pantallas anchas se prolonga sin deformarse. */
.lc-greca {
	width: 100%;
	height: clamp(48px, 11.9vw, 152px);
	background: url("../img/art-greca.png") repeat-x center center;
	background-size: auto 100%;
}

.lc-art-bloque {
	padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.lc-art-titulo {
	margin: 0 0 clamp(1.5rem, 3.5vw, 2.5rem);
	font-weight: 900;
	font-size: clamp(2rem, 7vw, 5.625rem); /* 90px al ancho ancla */
	line-height: 1.02;
	color: var(--wp--preset--color--primary, #cd3c87);
}

.lc-art-titulo--sm {
	font-size: clamp(1.75rem, 5.5vw, 4.375rem);
}

.lc-art-texto {
	max-width: 52ch;
	margin: 0 auto;
	font-size: clamp(1rem, 1.4vw, 1.25rem);
	line-height: 1.45;
	color: var(--lc-azul-texto, #0075b9);
}

.lc-art-texto + .lc-art-texto {
	margin-top: 1em;
}

.lc-art-texto--fuerte {
	font-weight: 700;
}

.lc-art-foto {
	margin: 0 auto clamp(1.75rem, 4vw, 2.75rem);
	max-width: min(100%, 420px);
}

.lc-art-foto img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

/* ---------------------------------------------------------------
   3. Banda lila inclinada
   --------------------------------------------------------------- */

.lc-art-banda {
	position: relative;
	z-index: 3;
	overflow-x: clip;
	overflow-y: visible;
	line-height: 0;
}

.lc-art-banda__img {
	display: block;
	width: 108%;
	margin-inline: -4%;
	height: auto;
}

/* ---------------------------------------------------------------
   4. Cierre sobre el fondo rosa de flores
   El patron mide 1280x2015 y aqui SI se repite en vertical: es un
   motivo disperso sobre fondo transparente, asi que la costura no se
   nota como pasaba con el grano de la textura.
   --------------------------------------------------------------- */

.lc-art-cierre-seccion {
	position: relative;
	overflow-x: clip;
	background-color: #fde3f2;
	background-image: url("../img/art-flores-fondo.png");
	background-repeat: repeat-y;
	background-position: center top;
	background-size: 100% auto;
}

.lc-art-frase {
	max-width: 22ch;
	margin: 0 auto clamp(2rem, 5vw, 3.5rem);
	font-weight: 900;
	font-size: clamp(1.5rem, 3.6vw, 2.875rem);
	line-height: 1.2;
	color: var(--wp--preset--color--primary, #cd3c87);
}

/* El diseno alterna colores dentro de la misma frase. */
.lc-art-frase em {
	font-style: italic;
	color: var(--lc-lila);
}

.lc-art-frase span {
	color: var(--lc-azul-texto, #0075b9);
}

.lc-art-galeria {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: clamp(1rem, 2.5vw, 1.75rem);
	margin-block: clamp(1.5rem, 4vw, 3rem);
}

.lc-art-galeria__img {
	margin: 0;
}

.lc-art-galeria__img img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.lc-art-cierre {
	margin: clamp(2rem, 5vw, 3.5rem) auto 0;
	font-weight: 700;
	font-size: clamp(1.5rem, 3.6vw, 2.875rem);
	line-height: 1.25;
	color: var(--lc-azul-texto, #0075b9);
}

.lc-art-cierre em {
	font-style: italic;
	font-weight: 900;
}

.lc-art-remate {
	margin: clamp(2rem, 5vw, 3.5rem) auto clamp(2.5rem, 6vw, 4rem);
	max-width: min(100%, 620px);
}

.lc-art-remate img {
	display: block;
	width: 100%;
	height: auto;
}
