:root {
	--fondo: #fff;
	--suave: #edfbf1;
	--linea: #cfe3d6;
	--texto: #1d1d1b;
	--principal: #007a3d;
	--acento: #0bda51;
	--ancho: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font: 1.125rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--texto);
	background: var(--fondo);
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--principal); }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 1rem; }
h1 { font-size: clamp(2.2rem, 5vw + 1rem, 3.8rem); }
h2 { font-size: clamp(1.7rem, 2.5vw + 1rem, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }

.ancho { width: min(100% - 2rem, var(--ancho)); margin-inline: auto; }

.salto {
	position: absolute; left: 1rem; top: -4rem;
	padding: .5rem 1rem; background: var(--texto); color: #fff; z-index: 10;
}
.salto:focus { top: 1rem; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 5; background: var(--fondo); border-bottom: 1px solid var(--linea); }
.cabecera__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .6rem; }
.marca { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.3rem; text-decoration: none; color: var(--texto); }
.cabecera nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.cabecera nav a { color: var(--texto); font-weight: 600; text-decoration: none; padding: .25rem 0; }
.cabecera nav a:hover { color: var(--principal); text-decoration: underline; }

/* Hero */
.hero { position: relative; display: grid; min-height: 32rem; color: #fff; isolation: isolate; }
.hero__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgb(29 29 27 / .65); z-index: -1; }
.hero__texto { align-self: center; padding-block: 4rem; }
.hero h1 { max-width: 20ch; }
.entradilla { font-size: 1.35rem; max-width: 40rem; }
.etiqueta { text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; font-weight: 700; color: var(--acento); }
.botones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Botones */
.boton {
	display: inline-block; padding: .8rem 1.6rem; border: 2px solid var(--principal);
	border-radius: 8px; background: var(--principal); color: #fff;
	font-weight: 600; text-decoration: none;
}
.boton:hover { background: #00612f; border-color: #00612f; }
.boton--claro { background: #fff; border-color: #fff; color: var(--texto); }
.boton--claro:hover { background: var(--suave); border-color: var(--suave); }
.boton--borde { background: transparent; border-color: #fff; color: #fff; }
.boton--borde:hover { background: #fff; color: var(--texto); }

/* Secciones */
.seccion { padding-block: clamp(3rem, 8vw, 6rem); }
.seccion--suave { background: var(--suave); }
.seccion--oscura { background: var(--principal); color: #fff; }
.centro { text-align: center; }
.centro p { max-width: 40rem; margin-inline: auto; }

.dos-col { display: grid; gap: 2rem; align-items: center; }
.foto { width: 100%; border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 48rem) {
	.dos-col { grid-template-columns: 1fr 1fr; gap: 4rem; }
	.dos-col--inversa > :first-child { order: 0; }
}

.tarjetas { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.tarjetas li { background: #fff; border: 1px solid var(--linea); border-top: 6px solid var(--principal); border-radius: 12px; padding: 1.5rem; }
.tarjetas p { margin: 0; }
@media (min-width: 48rem) { .tarjetas { grid-template-columns: repeat(3, 1fr); } }

/* Pie */
.pie { padding-block: 2rem; background: var(--texto); color: #fff; }
.pie .ancho { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.pie img { height: 64px; width: auto; background: #fff; border-radius: 8px; padding: 4px; }
.pie p { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
