/* Cutloose — estilos del tema que theme.json no cubre. */

/* Sin espacio entre header, contenido y footer. */
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Header ---------- */
.cl-header .cl-logo { margin: 0; flex-shrink: 0; }
.cl-header .cl-logo img { display: block; height: auto; }
/* El menú arranca a 134 px del logo, como en el sitio actual. */
.cl-header__fila { gap: clamp(24px, 9vw, 134px); }
.cl-header__menu { gap: 23px; }
@media (max-width: 781px) { .cl-header__fila { justify-content: space-between !important; } }
.cl-nav a { text-decoration: none; }
.cl-nav a:hover, .cl-nav a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.cl-nav .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--azul) !important;
	color: var(--wp--preset--color--blanco) !important;
	border: 0 !important;
	padding: 8px 0;
	min-width: 210px !important;
}
.cl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 18px; }
.cl-search .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--claro);
	border: 0;
	padding: 4px;
}
.cl-search .wp-block-search__button svg { width: 24px; height: 24px; fill: currentColor; }
.cl-search .wp-block-search__input { border-radius: 3px; border: 0; }

/* ---------- Home (bloque cutloose/home-coleccion) ---------- */
.cl-home__portada {
	display: grid;
	grid-template-columns: minmax(0, 792fr) minmax(0, 380fr); /* 792 + 20 + 380 = 1192 */
	gap: 20px;
	align-items: center;
}
.cl-home__portada--sin-foto { grid-template-columns: 1fr; }
.cl-home__portada-img, .cl-home__grilla a { display: block; }
.cl-home__portada-img img { display: block; width: 100%; height: auto; aspect-ratio: 792 / 528; object-fit: cover; }
.cl-home__titulo { margin: 0; line-height: 1.5; font-size: var(--wp--preset--font-size--titulo); }
.cl-home__titulo a { color: inherit; text-decoration: none; }
.cl-home__bajada {
	margin: 0;
	font-family: var(--wp--preset--font-family--lora);
	font-size: var(--wp--preset--font-size--mediano);
	font-style: italic;
	color: var(--wp--preset--color--azul-titulos);
}
.cl-home__grilla {
	display: grid;
	grid-template-columns: repeat(var(--cl-columnas, 4), minmax(0, 1fr));
	gap: 6px 8px;
	margin: 7px 0 0;
	padding: 0;
	list-style: none;
}
.cl-home__grilla li { margin: 0; }
.cl-home__grilla img { display: block; width: 100%; height: auto; aspect-ratio: 392 / 507; object-fit: cover; }
.cl-home__aviso { padding: 40px 0; text-align: center; }

/* ---------- Footer ---------- */
.cl-footer a { color: inherit; text-decoration: none; }
.cl-footer a:hover, .cl-footer a:focus-visible { text-decoration: underline; }
.cl-footer p { margin: 0 0 14px; }
.cl-footer__logo img { display: block; max-width: 100%; height: auto; }
.cl-footer__botones .wp-block-button__link { background-color: var(--wp--preset--color--azul-boton); }
.cl-footer__redes { margin-bottom: 20px; }
.cl-ico { position: relative; padding-left: 28px; }
.cl-ico::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 18px;
	height: 18px;
	background-repeat: no-repeat;
	background-size: contain;
}
.cl-ico--ubicacion::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.4'%3E%3Cpath d='M12 22s7-7.2 7-12.5A7 7 0 0 0 5 9.5C5 14.8 12 22 12 22z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.cl-ico--correo::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.4'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='1'/%3E%3Cpath d='M3.5 6.5l8.5 7 8.5-7'/%3E%3C/svg%3E"); }
.cl-ico--telefono::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.4'%3E%3Cpath d='M6.6 3.5l3 3.2-1.8 2.4a12 12 0 0 0 7.1 7.1l2.4-1.8 3.2 3-1.6 2.3c-.5.7-1.4 1-2.2.8C9.6 18.8 5.2 14.4 3.5 7.3c-.2-.8.1-1.7.8-2.2z'/%3E%3C/svg%3E"); }

/* ---------- Accesibilidad ---------- */
:where(a, button, input):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ---------- Pantallas chicas ---------- */
@media (max-width: 781px) {
	.cl-header .cl-logo img { width: 170px !important; }
	.cl-home__portada { grid-template-columns: 1fr; gap: 0; }
	.cl-home__portada-texto { text-align: center; padding: 16px 0 20px; }
	.cl-home__grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
	.cl-footer { padding-top: 40px !important; padding-bottom: 48px !important; }
	.cl-footer__logo img { width: 200px !important; }
}

/* Menú móvil: letra más grande y áreas de toque cómodas. */
.cl-nav .wp-block-navigation__responsive-container.is-menu-open { font-size: 16px; padding-top: 24px; }
.cl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding-block: 6px; }
