/**
 * Página de servicio (single-servicio.php). Prefijo .ce-ser-; no toca estilos globales.
 * Primero celular (375 px); cortes de Bootstrap 4: 576, 768, 992 y 1200 px.
 * Marca: azul #173888, rojo #E81721, amarillo #eadf24. Dueño: Felipe Ascencio.
 */

.ce-ser {
	background: #f4f6fb;
	font-family: "Montserrat", sans-serif;
	font-size: 1rem;
	color: #333;
}

/* Franja azul: deja espacio para el menú fijo del sitio, que es blanco. */
.ce-ser-hero {
	background: linear-gradient(135deg, #0a276f 0%, #173888 100%);
	color: #fff;
	padding: 110px 0 36px;
}

.ce-ser-migas {
	font-size: 0.9rem;
	margin-bottom: 16px;
	opacity: 0.95;
}

.ce-ser-migas a {
	color: #eadf24;
}

.ce-ser-migas span {
	margin: 0 6px;
}

.ce-ser-migas span[aria-current] {
	margin: 0;
}

.ce-ser-etiqueta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-family: "Geomanist", sans-serif;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #eadf24;
}

.ce-ser-bandera {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #fff;
	object-fit: cover;
}

.ce-ser-titulo {
	font-family: "Geomanist", sans-serif;
	font-weight: 700;
	font-size: 2rem;
	line-height: 1.15;
	margin: 0 0 12px;
	color: #fff;
}

.ce-ser-resumen {
	max-width: 40rem;
	margin: 0 0 22px;
	font-size: 1.1rem;
	line-height: 1.55;
}

.ce-ser-acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ce-ser-boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 26px;
	border: 2px solid transparent;
	border-radius: 28px;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ce-ser-boton:hover,
.ce-ser-boton:focus {
	text-decoration: none;
}

.ce-ser-boton:focus-visible {
	outline: 3px solid #eadf24;
	outline-offset: 2px;
}

.ce-ser-boton--amarillo {
	background: #eadf24;
	border-color: #eadf24;
	color: #173888;
}

.ce-ser-boton--amarillo:hover,
.ce-ser-boton--amarillo:focus {
	background: #fff;
	border-color: #fff;
	color: #173888;
}

.ce-ser-boton--borde {
	border-color: #fff;
	color: #fff;
}

.ce-ser-boton--borde:hover,
.ce-ser-boton--borde:focus {
	background: #fff;
	color: #173888;
}

/* Imagen del servicio: se muestra con el tamaño de WordPress, sin ampliarla más de 480 px. */
.ce-ser-imagen {
	max-width: 480px;
	margin: 24px auto 0;
}

.ce-ser-imagen img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border-radius: 16px;
	box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.55);
}

.ce-ser-cuerpo {
	padding-top: 24px;
	padding-bottom: 48px;
}

.ce-ser-seccion {
	margin-top: 32px;
}

.ce-ser-seccion:first-child {
	margin-top: 0;
}

.ce-ser-seccion__titulo {
	font-family: "Geomanist", sans-serif;
	font-weight: 700;
	font-size: 1.4rem;
	color: #173888;
	margin-bottom: 14px;
}

/* Texto completo del servicio (editor de WordPress): tarifas, reglas y avisos. */
.ce-ser-texto {
	background: #fff;
	border-radius: 16px;
	padding: 20px;
	line-height: 1.65;
	box-shadow: 0 10px 24px -16px rgba(10, 39, 111, 0.35);
}

.ce-ser-texto > :first-child {
	margin-top: 0;
}

.ce-ser-texto > :last-child {
	margin-bottom: 0;
}

.ce-ser-texto h2,
.ce-ser-texto h3,
.ce-ser-texto h4 {
	font-family: "Geomanist", sans-serif;
	font-weight: 700;
	line-height: 1.25;
	color: #173888;
	margin: 1.4em 0 0.5em;
}

.ce-ser-texto ul,
.ce-ser-texto ol {
	margin: 0 0 1em;
	padding-left: 1.25rem;
}

/* El tema quita las viñetas en cada <li>: aquí se devuelven. */
.ce-ser-texto ul > li {
	list-style: disc outside;
}

.ce-ser-texto ol > li {
	list-style: decimal outside;
}

.ce-ser-texto li {
	margin-bottom: 0.45em;
}

.ce-ser-texto li::marker {
	color: #E81721;
}

.ce-ser-texto strong {
	color: #173888;
}

.ce-ser-texto a {
	color: #173888;
	font-weight: 600;
	text-decoration: underline;
}

.ce-ser-texto img {
	max-width: 100%;
	height: auto;
}

.ce-ser-texto table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	margin: 0 0 1em;
	border-collapse: collapse;
}

.ce-ser-texto th,
.ce-ser-texto td {
	padding: 10px 14px;
	border: 1px solid #e6e9f2;
}

.ce-ser-texto th {
	background: #f4f6fb;
}

/* Tarjetas: servicios hijos, entradas del blog. */
.ce-ser-grilla {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.ce-ser-tarjeta {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	color: #333;
	box-shadow: 0 2px 10px rgba(23, 56, 136, 0.08);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.ce-ser-tarjeta:hover,
.ce-ser-tarjeta:focus {
	color: #333;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(23, 56, 136, 0.18);
	transform: translateY(-2px);
}

.ce-ser-tarjeta__foto {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.ce-ser-tarjeta__texto {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px 18px;
}

.ce-ser-tarjeta__encabezado {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.ce-ser-tarjeta__bandera {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.ce-ser-tarjeta__titulo {
	font-family: "Geomanist", sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.25;
	color: #173888;
}

.ce-ser-tarjeta__resumen {
	display: -webkit-box;
	margin: 0 0 8px;
	overflow: hidden;
	line-height: 1.5;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}

.ce-ser-tarjeta__ver {
	margin-top: auto;
	padding-top: 8px;
	font-weight: 600;
	color: #E81721;
}

/* Medidas y precios (Moving Supplies). */
.ce-ser-tabla-envoltura {
	overflow-x: auto;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 24px -16px rgba(10, 39, 111, 0.35);
}

.ce-ser-tabla {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}

.ce-ser-tabla th,
.ce-ser-tabla td {
	padding: 12px 18px;
	border-bottom: 1px solid #e6e9f2;
	text-align: left;
}

.ce-ser-tabla thead th {
	background: #173888;
	color: #fff;
	font-family: "Geomanist", sans-serif;
}

.ce-ser-tabla tbody th {
	font-weight: 600;
}

.ce-ser-tabla td {
	color: #173888;
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}

.ce-ser-tabla tbody tr:last-child th,
.ce-ser-tabla tbody tr:last-child td {
	border-bottom: 0;
}

/* Aliados: logos. */
.ce-ser-aliados {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	margin: 0;
	padding: 20px;
	list-style: none;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 24px -16px rgba(10, 39, 111, 0.35);
}

.ce-ser-aliados li {
	display: flex;
	align-items: center;
}

.ce-ser-aliados img {
	width: auto;
	max-width: 120px;
	max-height: 48px;
	object-fit: contain;
}

/* Oficinas donde está disponible. */
.ce-ser-oficina {
	display: flex;
	flex-direction: column;
	padding: 18px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(23, 56, 136, 0.08);
}

.ce-ser-oficina__nombre {
	margin: 0 0 6px;
	font-family: "Geomanist", sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
}

.ce-ser-oficina__nombre a {
	color: #173888;
}

.ce-ser-oficina__dato {
	margin: 0 0 14px;
	line-height: 1.45;
}

.ce-ser-oficina__acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
}

/* Dos botones por fila; si no caben en pantallas muy angostas, pasan uno debajo del otro. */
.ce-ser-enlace-boton {
	display: flex;
	flex: 1 1 130px;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 10px 8px;
	white-space: nowrap;
	border: 2px solid #173888;
	border-radius: 14px;
	color: #173888;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ce-ser-enlace-boton:hover,
.ce-ser-enlace-boton:focus {
	background: #173888;
	color: #fff;
	text-decoration: none;
}

.ce-ser-enlace-boton:focus-visible {
	outline: 3px solid #eadf24;
	outline-offset: 2px;
}

.ce-ser-enlace-boton svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.ce-ser-aviso {
	margin: 0;
}

.ce-ser-aviso a {
	color: #E81721;
	font-weight: 600;
}

/* Preguntas frecuentes (respaldo mientras no exista ce_geo_faq()). */
.ce-ser-faq details {
	margin-bottom: 10px;
	padding: 14px 18px;
	border-radius: 12px;
	background: #fff;
}

.ce-ser-faq summary {
	cursor: pointer;
	font-weight: 600;
	color: #173888;
}

.ce-ser-faq details p {
	margin: 10px 0 0;
	line-height: 1.55;
}

/* Otros servicios del mismo padre. */
.ce-ser-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ce-ser-chips a {
	display: inline-block;
	padding: 10px 16px;
	border: 1px solid #d7ddef;
	border-radius: 32px;
	background: #fff;
	color: #173888;
}

.ce-ser-chips a:hover,
.ce-ser-chips a:focus {
	border-color: #173888;
	background: #173888;
	color: #fff;
	text-decoration: none;
}

@media (min-width: 576px) {
	.ce-ser-titulo {
		font-size: 2.3rem;
	}

	.ce-ser-grilla {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 768px) {
	.ce-ser-titulo {
		font-size: 2.6rem;
	}

	.ce-ser-texto {
		padding: 28px;
	}
}

@media (min-width: 992px) {
	.ce-ser-hero {
		padding: 150px 0 48px;
	}

	.ce-ser-titulo {
		font-size: 3rem;
	}

	.ce-ser-imagen {
		margin-top: 0;
	}

	.ce-ser-cuerpo {
		padding-top: 44px;
	}

	.ce-ser-grilla {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ce-ser-boton,
	.ce-ser-tarjeta,
	.ce-ser-enlace-boton {
		transition: none;
	}

	.ce-ser-tarjeta:hover,
	.ce-ser-tarjeta:focus {
		transform: none;
	}
}

/* Formulario de contacto (global-templates/ce-contacto.php) en pantallas muy angostas: el reCAPTCHA de Google
   mide 304 px fijos y desbordaba la página a 320 px. Mismo ajuste que css/oficinas.css, solo en estas páginas. */
@media (max-width: 359px) {
	#contact .g-recaptcha {
		transform: scale(0.85);
		transform-origin: 0 0;
		height: 66px;
	}
}

/* /nosotros/: texto de los destinos cuando sale del tipo Servicios (clase ce-ser-nos, solo con CE_SERVICIOS_DESDE_TIPO o
   ?fuente=tipo). Reproduce el aspecto que tenía en el repeater: texto del mismo tamaño, subtítulos en negrita (los
   «Servicio …», <h2>, también subrayados), etiquetas de lista subrayadas y una línea en blanco alrededor de cada subtítulo. */
.ce-ser-nos h2,
.ce-ser-nos h3 {
	font-family: inherit;
	font-size: inherit;
	font-weight: 700;
	line-height: inherit;
	margin: 1.5em 0;
}

.ce-ser-nos h2 {
	text-decoration: underline;
}

.ce-ser-nos li > strong:first-child {
	font-weight: inherit;
	text-decoration: underline;
}

.ce-ser-nos p,
.ce-ser-nos ul {
	margin: 0;
}

.ce-ser-nos > :first-child {
	margin-top: 0;
}

.ce-ser-nos > :last-child {
	margin-bottom: 0;
}

/* Un ítem que empieza con etiqueta («Impuestos:», «Seguro:»…) llevaba una línea en blanco antes. */
.ce-ser-nos li + li:has(> strong:first-child) {
	margin-top: 1.5em;
}

/* Los destinos de carga (con subtítulos «Servicio …») llevaban además una línea en blanco entre bloques. */
.ce-ser-nos:has(h2) > p + ul,
.ce-ser-nos:has(h2) > ul + p,
.ce-ser-nos:has(h2) > ul + ul,
.ce-ser-nos:has(h2) > p + p {
	margin-top: 1.5em;
}
