/* Ishiku Lemu · landing.css — páginas interiores llevadas al sistema del Inicio
   (scripts/paginas-landing.php): Cafetería, Ética, Qué hacemos, Educación, Quiénes somos
   y Sendero. body.cc-landing (functions.php).
   Sus textos vienen del builder con h2/h3/p sueltos: aquí reciben la tipografía del
   brandbook (Raleway 800 en títulos, Quicksand en el cuerpo), las fotos el radio, los
   blurbs la tarjeta y los botones la píldora. Los tonos de sección y las ondas están en
   layout.css. El selector con #page-container le gana a los Presets de Divi
   («body #page-container .et_pb_section .preset--…») sin !important. */

/* ---------- Tipografía de los textos -------------------------------------------------- */

body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto h1,
body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto h2 {
	margin: 0 0 1.25rem;
	padding: 0;
	font-family: 'Raleway', Helvetica, Arial, sans-serif;
	font-size: var(--gvid-cc-texto-h2);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: normal;
	text-transform: none;
	text-wrap: balance;
	color: var(--cc-noche);
}

body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto h3 {
	margin: 0 0 0.75rem;
	padding: 0;
	font-family: 'Raleway', Helvetica, Arial, sans-serif;
	font-size: var(--gvid-cc-texto-h3);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	color: var(--cc-bosque);
}

body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto h4,
body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto h5,
body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto h6 {
	margin: 0 0 0.5rem;
	padding: 0;
	font-family: 'Raleway', Helvetica, Arial, sans-serif;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: normal;
	text-transform: none;
	color: var(--cc-bosque);
}

body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto p,
body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto li {
	font-family: 'Quicksand', Helvetica, Arial, sans-serif;
	font-size: var(--gvid-cc-texto-base);
	font-weight: 500;
	line-height: 1.7;
	color: var(--cc-tinta);
}

body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto p.cc-etiqueta {
	font-family: 'Raleway', Helvetica, Arial, sans-serif;
	font-size: var(--gvid-cc-texto-etiqueta);
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--cc-acento-texto);
}

body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto blockquote {
	margin: 1.5rem 0;
	padding: 0 0 0 1.5rem;
	border-left: 3px solid var(--cc-acento);
}

body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto blockquote p {
	font-size: var(--gvid-cc-texto-bajada);
	font-style: italic;
}

/* Sobre oscuro. */
body.cc-landing #page-container .et_pb_section.cc-sobre-oscuro .et_pb_text.cc-texto h1,
body.cc-landing #page-container .et_pb_section.cc-sobre-oscuro .et_pb_text.cc-texto h2 {
	color: var(--cc-blanco);
}

body.cc-landing #page-container .et_pb_section.cc-sobre-oscuro .et_pb_text.cc-texto h3,
body.cc-landing #page-container .et_pb_section.cc-sobre-oscuro .et_pb_text.cc-texto h4,
body.cc-landing #page-container .et_pb_section.cc-sobre-oscuro .et_pb_text.cc-texto h5,
body.cc-landing #page-container .et_pb_section.cc-sobre-oscuro .et_pb_text.cc-texto h6 {
	color: var(--cc-crema);
}

body.cc-landing #page-container .et_pb_section.cc-sobre-oscuro .et_pb_text.cc-texto p,
body.cc-landing #page-container .et_pb_section.cc-sobre-oscuro .et_pb_text.cc-texto li {
	color: rgba(245, 243, 234, 0.85);
}

body.cc-landing #page-container .et_pb_section.cc-sobre-oscuro .et_pb_text.cc-texto p.cc-etiqueta {
	color: var(--cc-salvia);
}

body.cc-landing #page-container .et_pb_section.cc-sobre-oscuro .et_pb_text.cc-texto .cc-resalte {
	color: var(--cc-acento);
}

/* Enlaces dentro del texto: subrayados, en verde de texto. */
body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto p a {
	color: var(--cc-acento-texto);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.cc-landing #page-container .et_pb_section.cc-sobre-oscuro .et_pb_text.cc-texto p a {
	color: var(--cc-salvia);
}

/* ---------- Fotos, tarjetas y botones ------------------------------------------------- */

body.cc-landing .et_pb_image.cc-foto img {
	border-radius: var(--gvid-cc-radio);
}

/* Tarjeta: crema sobre papel, superficie sobre crema, bosque sobre oscuro. */
body.cc-landing #page-container .et_pb_blurb.cc-tarjeta-landing {
	background-color: var(--cc-crema);
	border: 0;
	box-shadow: none;
}

body.cc-landing #page-container .cc-seccion--crema .et_pb_blurb.cc-tarjeta-landing {
	background-color: var(--cc-superficie);
}

body.cc-landing #page-container .cc-sobre-oscuro .et_pb_blurb.cc-tarjeta-landing {
	background-color: var(--cc-bosque);
}

body.cc-landing #page-container .et_pb_blurb.cc-tarjeta-landing .et_pb_blurb_content {
	padding: clamp(1.5rem, 1rem + 1.5vw, 2rem);
}

body.cc-landing #page-container .cc-sobre-oscuro .et_pb_blurb.cc-tarjeta-landing h3.et_pb_module_header,
body.cc-landing #page-container .cc-sobre-oscuro .et_pb_blurb.cc-tarjeta-landing h4.et_pb_module_header {
	color: var(--cc-blanco);
}

body.cc-landing #page-container .cc-sobre-oscuro .et_pb_blurb.cc-tarjeta-landing .et_pb_blurb_description,
body.cc-landing #page-container .cc-sobre-oscuro .et_pb_blurb.cc-tarjeta-landing .et_pb_blurb_description p {
	color: rgba(245, 243, 234, 0.85);
}

/* Botón: píldora sólida (bosque) sobre claro y crema sobre oscuro, sin el ícono de Divi. */
body.cc-landing #page-container .et_pb_section .et_pb_button_module_wrapper .et_pb_button,
body.cc-landing #page-container .et_pb_section .cc-boton-landing.et_pb_button,
body.cc-landing #page-container .et_pb_section .cc-boton-landing .et_pb_button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 14px 30px;
	font-family: 'Raleway', Helvetica, Arial, sans-serif;
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--cc-blanco);
	background-color: var(--cc-bosque);
	border: 1px solid transparent;
	border-radius: 50px;
	transition: background-color 0.3s ease;
}

body.cc-landing #page-container .et_pb_section .et_pb_button_module_wrapper .et_pb_button:hover {
	padding: 14px 30px;
	background-color: var(--cc-acento-texto);
}

body.cc-landing #page-container .et_pb_section .et_pb_button_module_wrapper .et_pb_button::after {
	display: none;
}

body.cc-landing #page-container .et_pb_section.cc-sobre-oscuro .et_pb_button_module_wrapper .et_pb_button {
	color: #101a10;
	background-color: var(--cc-crema);
	border-color: var(--cc-salvia);
}

body.cc-landing #page-container .et_pb_section.cc-sobre-oscuro .et_pb_button_module_wrapper .et_pb_button:hover {
	background-color: var(--cc-superficie);
	border-color: var(--cc-acento);
}

@media (prefers-reduced-motion: reduce) {
	body.cc-landing #page-container .et_pb_section .et_pb_button_module_wrapper .et_pb_button {
		transition: none;
	}
}

/* ---------- Grillas en móvil ---------------------------------------------------------- */

/* Las filas en grilla de Divi mantienen sus columnas en móvil (tres fotos en 324 px
   empujaban la página hacia los lados): se reacomodan según el espacio. */
@media (max-width: 767px) {
	body.cc-landing #page-container .et_pb_row.et_grid_row.cc-fila {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
	}

	body.cc-landing #page-container .et_pb_row.et_grid_row.cc-fila > .et_pb_column {
		width: auto;
		min-width: 0;
	}
}

/* ---------- Texto sobre foto (Misión y Visión) ---------------------------------------- */

body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto.cc-sobre-oscuro h1,
body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto.cc-sobre-oscuro h2,
body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto.cc-sobre-oscuro h3,
body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto.cc-sobre-oscuro h4 {
	color: var(--cc-blanco);
}

body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto.cc-sobre-oscuro p,
body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto.cc-sobre-oscuro li {
	color: rgba(245, 243, 234, 0.9);
}

body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto.cc-sobre-oscuro p.cc-etiqueta {
	color: var(--cc-salvia);
}

/* Velo plano sobre la foto del texto (brandbook § 1), para que se lea. */
body.cc-landing .et_pb_text.cc-texto-foto {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: var(--gvid-cc-radio);
}

body.cc-landing .et_pb_text.cc-texto-foto::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: rgba(26, 46, 26, 0.55);
}

/* ---------- Ficha de especie, filete y fotos ----------------------------------------- */

body.cc-landing .et_pb_text.cc-texto .cc-ficha-especie {
	margin: 1.75rem 0 0;
	padding: 1.25rem 1.5rem;
	background-color: var(--cc-crema);
	border-left: 4px solid var(--cc-acento);
	border-radius: 16px;
}

body.cc-landing .cc-seccion--crema .et_pb_text.cc-texto .cc-ficha-especie {
	background-color: var(--cc-superficie);
}

body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto .cc-ficha-especie p.cc-ficha-especie__nombre {
	margin: 0 0 0.5rem;
	font-family: 'Raleway', Helvetica, Arial, sans-serif;
	font-size: 1.25rem;
	font-weight: 800;
	font-style: italic;
	line-height: 1.2;
	color: var(--cc-noche);
}

body.cc-landing .et_pb_text.cc-texto hr {
	width: 46px;
	height: 3px;
	margin: 0 0 1.25rem;
	background-color: var(--cc-acento);
	border: 0;
	border-radius: 3px;
}

/* El brandbook no usa sombras. */
body.cc-landing .et_pb_image.cc-foto .et_pb_image_wrap,
body.cc-landing .et_pb_image.cc-foto img {
	box-shadow: none;
}

/* Íconos de las tarjetas: del tamaño del texto y en verde, no un bloque café. */
body.cc-landing #page-container .et_pb_blurb.cc-tarjeta-landing .et-pb-icon {
	font-size: 36px;
	color: var(--cc-acento-texto);
}

body.cc-landing #page-container .cc-sobre-oscuro .et_pb_blurb.cc-tarjeta-landing .et-pb-icon {
	color: var(--cc-salvia);
}

/* ---------- Eje único a la izquierda ------------------------------------------------- */

/* notas-diseno.md: un solo eje, a la izquierda. Los Presets de Divi centraban varios
   títulos de sección (et_pb_text_align_center). */
body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto.et_pb_text_align_center,
body.cc-landing #page-container .et_pb_section .et_pb_text.cc-texto.et_pb_text_align_center .et_pb_text_inner {
	text-align: left;
}
