/* =========================================================================
   Estilos base de la web: tipografía, color y botones.
   Los componentes de cada sección se añaden con las plantillas.
   ========================================================================= */

body {
	background: var(--ct-cream);
	color: var(--ct-ink);
	font-family: var(--ct-sans);
	font-size: var(--ct-fs-body);
	line-height: var(--ct-lh-body);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	font-family: var(--ct-serif);
	font-weight: 500;
	color: var(--ct-forest);
	line-height: var(--ct-lh-heading);
	letter-spacing: -.01em;
	margin: 0 0 .5em;
}

h1 { font-size: var(--ct-fs-h1); }
h2 { font-size: var(--ct-fs-h2); }
h3 { font-size: var(--ct-fs-h3); }

a { color: var(--ct-terra); }
a:hover { color: var(--ct-terra-dark); }

::selection { background: var(--ct-fucsia); color: var(--ct-white); }

:focus-visible { outline: 2px solid var(--ct-terra); outline-offset: 3px; }

.eyebrow {
	display: block;
	margin-bottom: 14px;
	font-size: var(--ct-fs-eyebrow);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ct-terra);
}

.lead { font-size: var(--ct-fs-lead); color: var(--ct-muted); max-width: 640px; }

/* Botones */
.btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	border: 2px solid transparent;
	border-radius: var(--ct-radius-pill);
	font-family: var(--ct-sans);
	font-size: .94rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ct-terra); color: var(--ct-white); box-shadow: var(--ct-shadow-button); }
.btn-primary:hover { background: var(--ct-terra-dark); color: var(--ct-white); }
.btn-ghost { background: transparent; border-color: var(--ct-forest); color: var(--ct-forest); }
.btn-ghost:hover { background: var(--ct-forest); color: var(--ct-white); }

@media (max-width: 560px) {
	body { font-size: 16px; }
}

/* Texto solo para lectores de pantalla */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ct-nowrap {
	white-space: nowrap;
}

/* Sin palabras huérfanas: títulos equilibrados y párrafos sin una palabra sola en la última
   línea. Además, inc/tipografia.php une las dos últimas palabras con un espacio irrompible. */
h1, h2, h3, h4, h5, h6,
.eyebrow,
.lead,
summary,
blockquote {
	text-wrap: balance;
}

p,
li,
dd,
dt,
figcaption,
label {
	text-wrap: pretty;
}

/* Si en un móvil muy estrecho dos palabras unidas no caben, se cortan (con guion) en lugar
   de salirse de la pantalla. */
h1, h2, h3, h4, p, li, dd, summary {
	overflow-wrap: break-word;
}

@media (max-width: 359px) {
	h1, h2, h3, h4, p, li, dd, summary {
		-webkit-hyphens: auto;
		hyphens: auto;
	}
}
