/*
Theme Name: Colectividades Hermanos González
Template: twentytwentyfive
Description: Tema hijo de Twenty Twenty-Five con la identidad de Catering Hermanos González (burdeos #82213e, dorado #c78f3d, verde #337321; Roboto Slab y Manrope).
Version: 1.0.2
Author: Colectividades Hermanos González
Requires at least: 6.7
Requires PHP: 7.2
License: GNU General Public License v2 or later
Text Domain: colectividades-hermanos-gonzalez
*/

/* Barra superior y cabecera fija. */
.chg-topbar a {
	color: inherit;
	text-decoration: none;
}
.chg-header {
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 1px 0 rgba(42, 42, 42, 0.08);
}
.admin-bar .chg-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/* Slider de portada (Smart Slider 3) pegado a la cabecera. */
.chg-slider > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Etiqueta pequeña sobre los títulos. */
.chg-eyebrow {
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 700;
}

/* Cifras destacadas. */
.chg-stat {
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-size: clamp(2.2rem, 4.5vw, 3.2rem);
	line-height: 1;
	color: var(--wp--preset--color--accent-1);
	margin-bottom: 0.4rem;
}

/* Tarjetas de servicios. */
.chg-card {
	background: var(--wp--preset--color--base);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 8px 26px rgba(42, 42, 42, 0.08);
	height: 100%;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	border-top: 4px solid var(--wp--preset--color--accent-2);
}
.chg-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 36px rgba(42, 42, 42, 0.14);
}
.chg-card .wp-block-image {
	margin: 0;
}
.chg-card .wp-block-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}
.chg-card-body {
	padding: 1.3rem 1.5rem 1.6rem;
}
.chg-card-body a {
	text-decoration: none;
	font-weight: 700;
}

/* Lista con marcas de verificación. */
ul.chg-check {
	list-style: none;
	padding-left: 0;
}
ul.chg-check li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: 0.7rem;
}
ul.chg-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.2 11.4 2.8 8l1.1-1.1 2.3 2.3 5.9-5.9L13.2 4.4z'/%3E%3C/svg%3E") center / 75% no-repeat;
}

/* Logos de clientes en escala de grises. */
.chg-logos img {
	filter: grayscale(1);
	opacity: 0.75;
	transition: filter 0.2s, opacity 0.2s;
	max-height: 90px;
	width: auto;
	object-fit: contain;
}
.chg-logos img:hover {
	filter: none;
	opacity: 1;
}

/* Esquinas suaves e incrustaciones. */
.chg-rounded img,
.chg-rounded iframe {
	border-radius: 10px;
}
.chg-embed iframe {
	width: 100%;
	border: 0;
	display: block;
}

/* Noticias recientes. */
.chg-news .wp-block-post-featured-image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 10px;
}

/* Botón contorneado claro sobre fondos oscuros. */
.wp-block-button.is-style-outline.chg-light > .wp-block-button__link {
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
	background: transparent;
}
.wp-block-button.is-style-outline.chg-light > .wp-block-button__link:hover {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--accent-1);
}

/* Pie. */
.chg-footer a {
	color: #f3dfe5;
	text-decoration: none;
}
.chg-footer a:hover {
	color: var(--wp--preset--color--accent-2);
	text-decoration: underline;
}
.chg-footer ul {
	list-style: none;
	padding-left: 0;
}
.chg-footer li {
	margin-bottom: 0.35rem;
}

/* Formularios (Contact Form 7). */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #d8d2cc;
	border-radius: 6px;
	font: inherit;
	background: var(--wp--preset--color--base);
}
.wpcf7 input[type="submit"] {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
	border: 0;
	border-radius: 6px;
	padding: 0.85rem 2rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover {
	background: var(--wp--preset--color--accent-6);
}

/* Galerías uniformes. */
.wp-block-gallery.has-nested-images figure.wp-block-image {
	flex-grow: 0;
}
.wp-block-gallery.has-nested-images figure.wp-block-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	height: 100%;
}

/* Contenido migrado de WPBakery: tarjetas con sombra y separaciones razonables con el tema nuevo. */
.wp-block-column.shadow > .wpb_wrapper {
	box-shadow: 0 8px 26px rgba(42, 42, 42, 0.08);
	background: var(--wp--preset--color--base);
	border-radius: 10px;
	overflow: hidden;
	height: 100%;
}
.wp-block-column.shadow .wpb_text_column {
	padding: 0 1.2rem;
}
.entry-content .vc_row .wp-block-separator,
.wp-block-post-content .vc_row .wp-block-separator {
	border: none;
	height: 3px;
	margin: 0;
	opacity: 1;
}

/* Móvil. */
@media (max-width: 781px) {
	.chg-header .wp-block-buttons.chg-header-cta,
	.chg-topbar {
		display: none;
	}
	.chg-header .wp-block-site-logo img {
		max-width: 200px;
		height: auto;
	}
}

/* Secciones migradas de WPBakery (filas "container"): a lo ancho, como antes; los textos sueltos se quedan a ancho de lectura. */
.wp-block-post-content > .wp-block-group.container,
.wp-block-post-content > .wp-block-group.vc_row {
	max-width: var(--wp--style--global--wide-size) !important;
}