/*
 * Block-built landing (page/landing-bloques.html). Marta edits the texts and images in the block
 * editor; the look lives here, scoped to .atl-landing, so nothing she can delete holds the design.
 * Loaded on the front and inside the editor canvas (enqueue_block_assets in attytude-reservas.php).
 */
.atl-landing {
	--atl-amarillo: #f8bc16;
	--atl-tinta: #000;
	--atl-pizarra: #1e293b;
	--atl-texto: #67768e;
	--atl-linea: #e3e3e3;
	--atl-ancho: 1200px;
	--atl-titulos: 'Work Sans', 'Helvetica Neue', sans-serif;
	font-family: Questrial, 'Century Gothic', 'Helvetica Neue', sans-serif;
	font-size: 18px;
	line-height: 1.65;
	color: var(--atl-texto);
}
.atl-landing * { box-sizing: border-box; }
/* Astra pads top-level groups (.entry-content > .wp-block-group): the landing runs edge to edge. */
.entry-content > .atl-landing.wp-block-group { padding: 0; }

/* Core and Astra add block gaps and paragraph margins: spacing is set per section instead. */
.atl-landing :is(p, h1, h2, h3, figure, ul, ol, details),
.atl-landing .is-layout-flow > *,
.entry-content .atl-landing :is(p, h1, h2, h3, figure, ul, ol),
.editor-styles-wrapper .atl-landing :is(p, h1, h2, h3, figure, ul, ol) { margin: 0; }
/* Astra's editor styles give paragraphs a 1.6em bottom margin with a (0,3,1) selector. */
.editor-styles-wrapper .block-editor-block-list__layout.is-root-container .atl-landing p { margin: 0; }
.atl-landing img { max-width: 100%; height: auto; }
/* Astra's global link color is a theme accent: links in the landing are black (white in the footer). */
.atl-landing a { color: var(--atl-tinta); }

.atl-landing .atl-sec {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 0 max(24px, calc((100% - var(--atl-ancho)) / 2)) 96px;
}
.atl-landing .atl-h1,
.atl-landing .atl-h2,
.atl-landing .atl-h3,
.atl-landing .atl-card__titulo {
	font-family: var(--atl-titulos);
	font-weight: 800;
	color: var(--atl-tinta);
	text-wrap: balance;
}
.atl-landing .atl-h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.15; text-align: center; }
.atl-landing .atl-h3 { font-size: 30px; line-height: 1.1; }
.atl-landing .atl-subtitulo { font-size: 20px; color: var(--atl-pizarra); text-align: center; }
.atl-landing mark { background: var(--atl-amarillo); color: inherit; padding: 0 6px; }

/* Buttons */
.atl-landing .atl-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	padding: 20px 40px;
	border: 0;
	border-radius: 50px;
	background: var(--atl-tinta);
	color: #fff;
	font-weight: 600;
	font-size: 17px;
	line-height: 1;
	text-decoration: none;
}
.atl-landing .atl-btn--amarillo .wp-block-button__link { background: var(--atl-amarillo); color: var(--atl-tinta); }
.atl-landing .atl-btn .wp-block-button__link:hover { filter: brightness(.95); }
.atl-landing :is(.wp-block-button__link, summary, a):focus-visible { outline: 3px solid var(--atl-tinta); outline-offset: 3px; }

/* 1. Hero */
.atl-landing .atl-hero {
	min-height: 640px;
	align-items: stretch;
	padding: 32px max(24px, calc((100% - var(--atl-ancho)) / 2)) 64px;
	color: #fff;
}
.atl-landing .atl-hero .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	width: 100%;
	max-width: 760px;
	margin: 0;
}
/* The logo grows to push the rest of the hero to the bottom (margins are reset above). */
.atl-landing .atl-hero .atl-logo { flex-grow: 1; padding-bottom: 48px; }
/* max-height, not height: the editor puts an inline height:auto on images. */
.atl-landing .atl-logo img { width: auto; max-height: 36px; }
.atl-landing .atl-etiqueta {
	padding: 8px 18px;
	border-radius: 50px;
	background: var(--atl-amarillo);
	color: var(--atl-tinta);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
}
.atl-landing .atl-h1 {
	font-size: clamp(38px, 5vw, 64px);
	line-height: 1.1;
	text-transform: uppercase;
	color: #f9f6fe;
}
.atl-landing .atl-entradilla { font-size: 22px; line-height: 1.5; color: #fff; max-width: 36ch; }
/* Astra greys every paragraph inside a cover with a (0,3,2) selector. */
.atl-landing .atl-hero.wp-block-cover p.atl-entradilla { color: #fff; }
.atl-landing .atl-hero.wp-block-cover p.atl-etiqueta { color: var(--atl-tinta); }
.atl-landing .atl-frase { padding-top: 88px; }
.atl-landing .atl-frase .atl-h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.3; max-width: 900px; align-self: center; }

/* 2. The four skills */
.atl-landing .atl-habilidades { text-align: center; gap: 8px; }
.atl-landing .atl-antetitulo {
	font-family: var(--atl-titulos);
	font-weight: 800;
	font-size: 28px;
	color: var(--atl-amarillo);
	text-transform: uppercase;
}
.atl-landing .atl-semanas { margin-top: 32px; padding-top: 0; border-top: 4px solid var(--atl-tinta); gap: 0; text-align: left; }
.atl-landing .atl-semanas > .wp-block-column { display: flex; flex-direction: column; gap: 14px; padding: 24px 20px 8px 0; font-size: 17px; line-height: 1.5; }
.atl-landing .atl-semana {
	font-family: var(--atl-titulos);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--atl-tinta);
}
.atl-landing .atl-nota-centro { padding-top: 32px; font-size: 19px; line-height: 1.5; color: var(--atl-pizarra); max-width: 46ch; align-self: center; }
.atl-landing .atl-nota-centro strong { color: var(--atl-tinta); }

/* 3. How it works */
.atl-landing .atl-funciona {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
	gap: 48px;
	align-items: start;
	padding-top: 96px;
	margin-bottom: 96px;
	background: #f2f5f7;
}
.atl-landing .atl-funciona__intro { display: flex; flex-direction: column; gap: 16px; }
.atl-landing .atl-funciona__intro :is(.atl-h2, .atl-subtitulo) { text-align: left; }
.atl-landing .atl-funciona__intro .atl-subtitulo { max-width: 32ch; }
.atl-landing .atl-pieza {
	display: grid;
	grid-template-columns: clamp(96px, 22vw, 140px) minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	padding: 18px 0;
	border-bottom: 1px solid var(--atl-linea);
	color: var(--atl-pizarra);
}
.atl-landing .atl-pieza:last-child { border-bottom: 0; }
.atl-landing .atl-pieza img { width: 100%; max-height: 110px; object-fit: contain; }
.atl-landing .atl-pieza strong { font-family: var(--atl-titulos); font-weight: 700; font-size: clamp(17px, 5.2vw, 20px); color: var(--atl-tinta); }

/* 4 and 6. Training cards, with the age layers (details blocks) inside */
.atl-landing .atl-entreno { align-items: center; }
.atl-landing .atl-card {
	width: 100%;
	max-width: 640px;
	border: 4px solid var(--atl-tinta);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	scroll-margin-top: 24px;
}
.atl-landing .atl-card__head {
	padding: 18px 24px;
	background: var(--atl-amarillo);
	color: var(--atl-tinta);
	font-family: Actor, sans-serif;
	font-size: 16px;
	line-height: 1.3;
	text-align: center;
}
.atl-landing .atl-card__head .atl-card__titulo { font-family: Actor, sans-serif; font-weight: 600; font-size: 20px; color: inherit; }
.atl-landing .atl-card--negra .atl-card__head { background: var(--atl-tinta); color: #fff; }
.atl-landing .atl-card--negra .atl-card__titulo { color: var(--atl-amarillo); }
.atl-landing .atl-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 32px clamp(16px, 5vw, 40px);
	text-align: center;
}
.atl-landing .atl-card__habilidades { font-weight: 700; text-transform: uppercase; color: var(--atl-tinta); }
.atl-landing .atl-precio {
	font-family: var(--atl-titulos);
	font-weight: 800;
	font-size: clamp(64px, 8vw, 96px);
	line-height: 1;
	color: var(--atl-tinta);
}
.atl-landing .atl-card__datos { color: var(--atl-pizarra); }
.atl-landing .atl-card__datos strong { color: var(--atl-tinta); }
.atl-landing .atl-card__incluye {
	width: 100%;
	max-width: 34ch;
	padding-top: 16px;
	border-top: 1px solid var(--atl-linea);
	font-weight: 700;
	color: var(--atl-tinta);
	text-align: left;
}
.atl-landing ul.atl-incl {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	max-width: 34ch;
	text-align: left;
}
.atl-landing ul.atl-incl li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.45; color: var(--atl-pizarra); }
.atl-landing ul.atl-incl li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 3px; background: var(--atl-amarillo); }
.atl-landing .atl-card__elige { padding-top: 20px; font-weight: 700; color: var(--atl-tinta); }

.atl-landing details.atl-capa { width: 100%; border: 1px solid var(--atl-tinta); border-radius: 28px; overflow: hidden; text-align: left; }
.atl-landing details.atl-capa > summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 14px 24px;
	list-style: none;
	cursor: pointer;
	font-weight: 600;
	font-size: 17px;
	line-height: 1.2;
	color: var(--atl-tinta);
}
.atl-landing details.atl-capa > summary::-webkit-details-marker { display: none; }
.atl-landing details.atl-capa > summary::after { content: "Ver fechas"; font-weight: 400; font-size: 14px; text-decoration: underline; }
.atl-landing details.atl-capa[open] > summary { background: var(--atl-amarillo); }
.atl-landing details.atl-capa[open] > summary::after { content: "Cerrar"; }
.atl-landing details.atl-capa > :not(summary) { margin: 16px 24px 0; }
.atl-landing details.atl-capa > :last-child { margin-bottom: 18px; }
.atl-landing .atl-grupo { padding-left: 14px; border-left: 4px solid var(--atl-amarillo); font-size: 16px; line-height: 1.5; color: var(--atl-pizarra); }
.atl-landing .atl-grupo strong { color: var(--atl-tinta); }
.atl-landing :is(.atl-capa__nota, .atl-capa__pronto) { font-size: 15px; color: var(--atl-pizarra); }

/* 5. Certificate */
.atl-landing .atl-certificado__caja { gap: 24px; padding: 24px; background: var(--atl-tinta); border-radius: 16px; color: #f9f6fe; }
.atl-landing .atl-certificado__caja > .wp-block-column:first-child { display: flex; flex-direction: column; gap: 16px; padding: clamp(8px, 3vw, 40px); }
.atl-landing .atl-certificado .atl-h2 { color: #fff; text-align: left; font-size: clamp(30px, 3.6vw, 44px); }
.atl-landing .atl-certificado__lema { font-size: 22px; color: var(--atl-amarillo); }
.atl-landing .atl-certificado__imagen { padding: 24px; background: #fff; }

/* 7. Testimonials */
.atl-landing .atl-testimonios__caja { gap: 16px; padding: 24px; background: var(--atl-tinta); border-radius: 16px; align-items: flex-start; }
/* Core forces align-items on columns: each column hugs its own screenshot instead of stretching. */
.atl-landing .atl-testimonios__caja > .wp-block-column { display: flex; flex-direction: column; align-self: flex-start; background: #fff; }
.atl-landing .atl-testimonio__titulo {
	padding: 14px 16px;
	background: var(--atl-amarillo);
	font-family: Actor, sans-serif;
	font-weight: 600;
	font-size: 18px;
	color: var(--atl-tinta);
	text-align: center;
}
.atl-landing .atl-testimonios__caja img { display: block; width: 100%; }

/* Footer */
.atl-landing .atl-pie {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	padding: 40px max(24px, calc((100% - var(--atl-ancho)) / 2));
	background: var(--atl-tinta);
	font-size: 15px;
	color: #f9f6fe;
}
.atl-landing .atl-pie .atl-logo img { max-height: 28px; }
.atl-landing .atl-pie a { color: #f9f6fe; text-decoration: underline; }

/* Page with the site header and footer (body class from attytude-reservas.php): they already carry
   the logo and the legal links. The hero logo keeps its space so the title stays where it was. */
.atl-con-menu .atl-landing .atl-hero .atl-logo { visibility: hidden; }
.atl-con-menu .atl-landing .atl-pie { display: none; }

/* Long uppercase words ("AUTOLIDERAZGO") must fit on a 320px phone instead of breaking mid-word. */
@media (max-width: 600px) {
	.atl-landing .atl-btn .wp-block-button__link { padding: 15px 28px; }
	.atl-landing .atl-h1 { font-size: min(38px, 8.2vw); }
	.atl-landing details.atl-capa > summary { padding: 14px 18px; }
	.atl-landing details.atl-capa > :not(summary) { margin-inline: 18px; }
	/* Room for Complianz's round cookie button, fixed bottom left. */
	.atl-landing .atl-pie { padding-bottom: 96px; }
}
