/* ═══════════════════════════════════════════════════════════
   Sandra Hernández Ramos — Procuradora de los Tribunales
   frontend.css · v1.1.0
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   0. RESET Y BASE
───────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

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

/* ─────────────────────────────────────────────
   0b. NEUTRALIZAR GAPS DE WORDPRESS
   WP aplica blockGap y márgenes por defecto en
   layouts is-layout-flow que rompen el diseño.
───────────────────────────────────────────── */

/* Eliminar padding superior del contenedor raíz */
.wp-site-blocks {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Eliminar gap entre topbar y header__main */
.shr-header.wp-block-group {
	gap: 0 !important;
	row-gap: 0 !important;
}

/* WordPress is-layout-flow añade margin-block entre hijos */
.shr-header.is-layout-flow > *,
.shr-header > .is-layout-flow > * {
	margin-block-start: 0 !important;
	margin-block-end:   0 !important;
}

/* El hero cover no debe tener margen superior */
.shr-hero.wp-block-cover {
	margin-top: 0 !important;
}

/* Primer bloque tras el header: sin margen */
.shr-header + * {
	margin-top: 0 !important;
}

/* Reset general de márgenes en bloques dentro del header */
.shr-header .wp-block-group,
.shr-header .wp-block-paragraph,
.shr-header .wp-block-navigation,
.shr-header .wp-block-buttons,
.shr-header .wp-block-site-title,
.shr-header .wp-block-site-tagline {
	margin-block-start: 0 !important;
	margin-block-end:   0 !important;
}

/* ─────────────────────────────────────────────
   1. VARIABLES CUSTOM (complementan theme.json)
───────────────────────────────────────────── */
:root {
	--shr-transition:        all 0.25s ease;
	--shr-transition-slow:   all 0.4s ease;
	--shr-header-h:          104px; /* topbar (~36px) + header main (~68px) */
	--shr-radius:            4px;
	--shr-radius-lg:         8px;
	--shr-input-h:           48px;
	--shr-focus-ring:        0 0 0 3px rgba(196, 154, 74, 0.35);
}

/* ─────────────────────────────────────────────
   2. HEADER
───────────────────────────────────────────── */
.shr-header {
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
	/* Forzar columna sin gap para topbar + nav */
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
}

.shr-topbar {
	width: 100%;
	flex-shrink: 0;
}

.shr-topbar__inner {
	max-width: var(--wp--style--global--content-size);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--6);
}

.shr-topbar__college {
	margin: 0 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.shr-topbar__phone {
	flex-shrink: 0;
}

.shr-topbar__phone p {
	margin: 0 !important;
	line-height: 1 !important;
}

.shr-topbar__phone a {
	transition: var(--shr-transition);
}

.shr-topbar__phone a:hover {
	color: var(--wp--preset--color--dunas) !important;
}

/* Header main */
.shr-header__main {
	width: 100%;
}

.shr-header__inner {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--6);
}

.shr-header__brand {
	text-decoration: none;
}

.shr-header__titles .wp-block-site-title a {
	text-decoration: none !important;
	transition: var(--shr-transition);
}

.shr-header__titles .wp-block-site-title a:hover {
	opacity: 0.85;
}

.shr-header__titles .wp-block-site-title,
.shr-header__titles .wp-block-site-tagline {
	margin: 0 !important;
}

/* Navegación */
.shr-nav .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--6) !important;
}

.shr-nav .wp-block-navigation-item__content {
	padding: var(--wp--preset--spacing--2) 0 !important;
	position: relative;
	transition: var(--shr-transition);
}

.shr-nav .wp-block-navigation-item__content::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--wp--preset--color--dunas);
	transition: var(--shr-transition);
}

.shr-nav .wp-block-navigation-item__content:hover::after,
.shr-nav .current-menu-item .wp-block-navigation-item__content::after {
	width: 100%;
}

.shr-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--arena) !important;
}

/* Botón llamar header */
.shr-btn-phone .wp-block-button__link {
	transition: var(--shr-transition);
	white-space: nowrap;
}

.shr-btn-phone .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--dunas) !important;
	border-color: var(--wp--preset--color--dunas) !important;
	color: #fff !important;
}

/* Menú móvil */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	color: #fff !important;
}

/* ─────────────────────────────────────────────
   3. HERO PRINCIPAL
───────────────────────────────────────────── */
.shr-hero {
	position: relative;
}

.shr-hero .wp-block-cover__image-background {
	object-position: center 30%;
}

.shr-hero__content {
	animation: shr-fade-up 0.9s ease both;
}

.shr-hero__label {
	margin: 0 !important;
}

.shr-hero__title {
	margin: 0 !important;
}

.shr-hero__subtitle {
	margin: 0 !important;
	max-width: 620px;
}

/* Botones hero */
.shr-hero__ctas .wp-block-button__link {
	transition: var(--shr-transition);
}

.shr-btn-primary .wp-block-button__link:hover {
	background-color: #a8832f !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(196, 154, 74, 0.4);
}

.shr-btn-secondary .wp-block-button__link:hover {
	background-color: rgba(255,255,255,0.15) !important;
	transform: translateY(-1px);
}

/* ─────────────────────────────────────────────
   4. FRANJA DE CONFIANZA
───────────────────────────────────────────── */
.shr-trust__cols {
	align-items: center;
}

.shr-trust__item {
	padding-block: var(--wp--preset--spacing--3);
}

/* ─────────────────────────────────────────────
   5. SECCIÓN ABOUT
───────────────────────────────────────────── */
.shr-about__image-col {
	position: relative;
}

.shr-about__image-wrapper {
	position: relative;
	/* Necesario para que el badge absoluto no desborde */
	padding-bottom: 1.5rem;
	padding-right: 1.5rem;
}

.shr-about__image img {
	width: 100%;
	height: 520px;
	object-fit: cover;
	object-position: center top;
	border-radius: var(--shr-radius) !important;
	display: block;
}

.shr-about__badge {
	position: absolute !important;
	bottom: 0;
	right: 0;
	z-index: 2;
	/* Sombra para que destaque sobre la imagen */
	box-shadow: 0 4px 16px rgba(27, 79, 114, 0.25) !important;
}

.shr-about__badge p {
	margin: 0 !important;
	line-height: 1.4 !important;
}

/* ─────────────────────────────────────────────
   6. TARJETAS DE SERVICIOS (home)
───────────────────────────────────────────── */
.shr-service-card .shr-service-card__inner {
	height: 100%;
	transition: var(--shr-transition-slow);
}

.shr-service-card .shr-service-card__inner:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--media) !important;
}

.shr-service-card .wp-block-heading {
	margin: 0 !important;
}

.shr-service-card p:first-child {
	margin: 0 !important;
	line-height: 1 !important;
}

/* ─────────────────────────────────────────────
   7. TARJETAS DE SERVICIOS (página completa)
───────────────────────────────────────────── */
.shr-service-full-card > .wp-block-group {
	height: 100%;
	transition: var(--shr-transition-slow);
}

.shr-service-full-card > .wp-block-group:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--media) !important;
}

.shr-service-full-card .wp-block-heading {
	margin: 0 !important;
}

.shr-service-full-card .wp-block-list {
	padding-left: 1.25rem;
	margin: 0 !important;
}

.shr-service-full-card .wp-block-list li {
	margin-bottom: 0.35rem;
	line-height: 1.6;
}

.shr-service-full-card .wp-block-list li::marker {
	color: var(--wp--preset--color--dunas);
}

/* ─────────────────────────────────────────────
   8. HERO INTERIOR (páginas interiores)
───────────────────────────────────────────── */
.shr-hero-inner {
	position: relative;
}

.shr-hero-inner .wp-block-cover__image-background {
	object-position: center 60%;
}

/* ─────────────────────────────────────────────
   9. FORMULARIO DE CONTACTO
───────────────────────────────────────────── */
.shr-contact-form-wrapper {
	width: 100%;
}

.shr-contact-form {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--5);
}

/* Fila de dos columnas */
.shr-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--5);
}

/* Grupo de campo */
.shr-form-group {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.shr-form-group--full {
	grid-column: 1 / -1;
}

/* Label */
.shr-form-label {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	color: var(--wp--preset--color--texto);
	letter-spacing: 0.01em;
}

.shr-required {
	color: var(--wp--preset--color--dunas);
	margin-left: 2px;
}

/* Input base */
.shr-form-input {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--texto);
	background: #fff;
	border: 1.5px solid #D8D2C8;
	border-radius: var(--shr-radius);
	height: var(--shr-input-h);
	padding: 0 var(--wp--preset--spacing--4);
	width: 100%;
	transition: var(--shr-transition);
	outline: none;
	appearance: none;
	-webkit-appearance: none;
}

.shr-form-input::placeholder {
	color: #A8A09A;
	font-weight: 300;
}

.shr-form-input:focus {
	border-color: var(--wp--preset--color--atlantico);
	box-shadow: var(--shr-focus-ring);
}

.shr-form-input.shr-input-error {
	border-color: #C0392B;
	box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2);
}

/* Select */
.shr-form-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231B4F72' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right var(--wp--preset--spacing--4) center;
	padding-right: calc(var(--wp--preset--spacing--4) + 24px);
	cursor: pointer;
}

/* Textarea */
.shr-form-textarea {
	height: auto !important;
	padding: var(--wp--preset--spacing--4) !important;
	resize: vertical;
	min-height: 160px;
	line-height: 1.7;
}

/* Checkbox LOPD */
.shr-form-group--checkbox {
	gap: 0.5rem;
}

.shr-form-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--3);
	cursor: pointer;
	font-size: var(--wp--preset--font-size--xs);
	color: #5A6478;
	line-height: 1.6;
}

.shr-form-checkbox {
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	margin-top: 1px;
	border: 1.5px solid #D8D2C8 !important;
	border-radius: 3px !important;
	appearance: none;
	-webkit-appearance: none;
	background: #fff;
	cursor: pointer;
	transition: var(--shr-transition);
	flex-shrink: 0;
}

.shr-form-checkbox:checked {
	background-color: var(--wp--preset--color--atlantico);
	border-color: var(--wp--preset--color--atlantico) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}

.shr-form-checkbox:focus {
	box-shadow: var(--shr-focus-ring);
	outline: none;
}

.shr-form-checkbox-label a {
	color: var(--wp--preset--color--atlantico);
	text-decoration: underline;
}

/* Mensaje de error de campo */
.shr-form-error {
	font-size: var(--wp--preset--font-size--xs);
	color: #C0392B;
	min-height: 1rem;
	display: block;
}

/* Botón enviar */
.shr-form-submit {
	margin-top: var(--wp--preset--spacing--2);
}

.shr-btn-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--3);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background-color: var(--wp--preset--color--atlantico);
	border: none;
	border-radius: var(--shr-radius);
	padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--8);
	cursor: pointer;
	transition: var(--shr-transition);
	position: relative;
	overflow: hidden;
	min-width: 200px;
}

.shr-btn-submit:hover:not(:disabled) {
	background-color: var(--wp--preset--color--dunas);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(27, 79, 114, 0.3);
}

.shr-btn-submit:active:not(:disabled) {
	transform: translateY(0);
}

.shr-btn-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.shr-btn-submit:focus-visible {
	outline: none;
	box-shadow: var(--shr-focus-ring);
}

/* Estados del botón */
.shr-btn-submit__loading {
	display: none;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
}

.shr-btn-submit.is-loading .shr-btn-submit__text {
	display: none;
}

.shr-btn-submit.is-loading .shr-btn-submit__loading {
	display: flex;
}

/* Spinner animación */
.shr-spinner {
	animation: shr-spin 0.8s linear infinite;
}

/* Respuesta del formulario */
.shr-form-response {
	display: none;
	padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--5);
	border-radius: var(--shr-radius);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.6;
	font-weight: 500;
}

.shr-form-response.is-success {
	display: block;
	background-color: #EAF7EC;
	border-left: 4px solid #27AE60;
	color: #1A6B3A;
}

.shr-form-response.is-error {
	display: block;
	background-color: #FDECEA;
	border-left: 4px solid #C0392B;
	color: #7B1F1F;
}

/* ─────────────────────────────────────────────
   10. TARJETA DATOS CONTACTO (sidebar)
───────────────────────────────────────────── */
.shr-contact-section .wp-block-column:last-child > .wp-block-group > .wp-block-group:first-child {
	position: sticky;
	top: calc(var(--shr-header-h) + var(--wp--preset--spacing--6));
}

/* ─────────────────────────────────────────────
   11. MAPA
───────────────────────────────────────────── */
.shr-map-wrapper {
	border-radius: var(--shr-radius-lg);
	overflow: hidden;
}

.shr-map-wrapper iframe {
	display: block;
	width: 100%;
	border: 0;
}

/* ─────────────────────────────────────────────
   12. FOOTER
───────────────────────────────────────────── */
.shr-footer .wp-block-navigation-item__content {
	transition: var(--shr-transition);
	padding: 2px 0;
}

.shr-footer .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--arena) !important;
	padding-left: 4px;
}

.shr-footer__divider {
	margin: 0 !important;
}

.shr-footer__bottom p {
	margin: 0 !important;
}

.shr-footer__bottom a {
	transition: var(--shr-transition);
}

.shr-footer__bottom a:hover {
	color: var(--wp--preset--color--arena) !important;
}

/* ─────────────────────────────────────────────
   13. CTA SECTION
───────────────────────────────────────────── */
.shr-cta-section .wp-block-cover__image-background {
	object-position: center 70%;
}

.shr-cta-section .wp-block-buttons {
	flex-wrap: wrap;
	justify-content: center;
}

/* ─────────────────────────────────────────────
   14. SECCIÓN "PARA ABOGADOS"
───────────────────────────────────────────── */
.shr-for-lawyers .wp-block-columns {
	align-items: center;
}

/* ─────────────────────────────────────────────
   15. UTILIDADES
───────────────────────────────────────────── */

/* Ocultar en móvil */
@media (max-width: 768px) {
	.hide-on-mobile {
		display: none !important;
	}
}

/* Ocultar en desktop */
@media (min-width: 769px) {
	.hide-on-desktop {
		display: none !important;
	}
}

/* Texto truncado */
.shr-truncate {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ─────────────────────────────────────────────
   16. ANIMACIONES
───────────────────────────────────────────── */
@keyframes shr-fade-up {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes shr-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

@keyframes shr-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* Animación de entrada para secciones */
.shr-animate {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.shr-animate.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Delay escalonado para grids */
.shr-animate:nth-child(2) { transition-delay: 0.1s; }
.shr-animate:nth-child(3) { transition-delay: 0.2s; }
.shr-animate:nth-child(4) { transition-delay: 0.3s; }

/* Respetar preferencia de movimiento reducido del sistema operativo */
@media (prefers-reduced-motion: reduce) {
	.shr-animate {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.shr-hero__content {
		animation: none;
	}
	.shr-service-card .shr-service-card__inner,
	.shr-service-full-card > .wp-block-group {
		transition: none;
	}
	.shr-btn-primary .wp-block-button__link:hover,
	.shr-btn-secondary .wp-block-button__link:hover,
	.shr-btn-submit:hover:not(:disabled) {
		transform: none;
	}
}

/* ─────────────────────────────────────────────
   17. RESPONSIVE
───────────────────────────────────────────── */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {

	.shr-topbar__college {
		display: none;
	}

	.shr-about__image img {
		height: 400px;
	}

	.shr-about__badge {
		bottom: -1rem;
		right: -0.5rem;
	}

	.shr-for-lawyers .wp-block-columns {
		flex-direction: column !important;
	}

	.shr-for-lawyers .wp-block-column {
		width: 100% !important;
		flex-basis: 100% !important;
	}

}

/* ── Móvil (≤ 768px) ── */
@media (max-width: 768px) {

	:root {
		--shr-header-h: 88px;
	}

	/* Header */
	.shr-header__inner {
		padding-inline: var(--wp--preset--spacing--4);
	}

	.shr-header__brand .wp-block-site-title {
		font-size: var(--wp--preset--font-size--lg) !important;
	}

	/* Hero */
	.shr-hero .wp-block-cover__inner-blocks {
		padding-inline: var(--wp--preset--spacing--4);
	}

	.shr-hero__title {
		font-size: clamp(2rem, 8vw, 3.5rem) !important;
	}

	.shr-hero__ctas {
		flex-direction: column;
		align-items: flex-start;
	}

	/* Trust */
	.shr-trust__cols {
		flex-wrap: wrap !important;
	}

	.shr-trust__cols .wp-block-column {
		flex-basis: 50% !important;
		border-right: none !important;
	}

	/* About */
	.shr-about__cols {
		flex-direction: column !important;
	}

	.shr-about__cols .wp-block-column {
		width: 100% !important;
		flex-basis: 100% !important;
	}

	.shr-about__image img {
		height: 320px;
	}

	.shr-about__badge {
		bottom: 1rem;
		right: 1rem;
	}

	/* Servicios */
	.shr-services-home__grid {
		flex-direction: column !important;
	}

	/* Formulario */
	.shr-form-row {
		grid-template-columns: 1fr;
	}

	.shr-btn-submit {
		width: 100%;
	}

	/* Contacto columnas */
	.shr-contact-section .wp-block-columns {
		flex-direction: column !important;
	}

	.shr-contact-section .wp-block-column {
		width: 100% !important;
		flex-basis: 100% !important;
	}

	/* Sticky desactivado en móvil */
	.shr-contact-section .wp-block-column:last-child > .wp-block-group > .wp-block-group:first-child {
		position: static;
	}

	/* Footer */
	.shr-footer__cols {
		flex-direction: column !important;
	}

	.shr-footer__cols .wp-block-column {
		width: 100% !important;
		flex-basis: 100% !important;
	}

	.shr-footer__bottom {
		flex-direction: column !important;
		gap: var(--wp--preset--spacing--3) !important;
		text-align: center;
	}

	/* Mapa */
	.shr-map-wrapper iframe {
		height: 300px;
	}

}

/* ── Móvil pequeño (≤ 480px) ── */
@media (max-width: 480px) {

	.shr-topbar__inner {
		justify-content: center;
	}

	.shr-hero__ctas .wp-block-button {
		width: 100%;
	}

	.shr-hero__ctas .wp-block-button__link {
		width: 100%;
		text-align: center;
	}

	.shr-trust__cols .wp-block-column {
		flex-basis: 100% !important;
	}

}

/* ─────────────────────────────────────────────
   19. PÁGINAS LEGALES
───────────────────────────────────────────── */
.shr-legal-content {
	line-height: 1.8;
}

.shr-legal-content .wp-block-heading {
	margin-top: var(--wp--preset--spacing--8) !important;
	margin-bottom: var(--wp--preset--spacing--4) !important;
	padding-bottom: var(--wp--preset--spacing--3);
	border-bottom: 1px solid #E8D5B0;
}

.shr-legal-content .wp-block-heading:first-child {
	margin-top: 0 !important;
}

.shr-legal-content .wp-block-paragraph {
	margin-bottom: var(--wp--preset--spacing--5) !important;
}

/* Tabla legal */
.shr-legal-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--sm);
}

.shr-legal-table td,
.shr-legal-table th {
	padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--4);
	border-bottom: 1px solid #E8D5B0;
	vertical-align: top;
	line-height: 1.6;
}

.shr-legal-table th {
	background-color: #1B4F72;
	color: #FFFFFF;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.shr-legal-table td:first-child {
	width: 35%;
	color: var(--wp--preset--color--atlantico);
	font-weight: 500;
	white-space: nowrap;
}

.shr-legal-table tr:last-child td {
	border-bottom: none;
}

.shr-legal-table a {
	color: var(--wp--preset--color--atlantico);
}

/* Lista de derechos */
.shr-legal-content .wp-block-list {
	padding-left: 0;
	list-style: none;
}

.shr-legal-content .wp-block-list li {
	padding: var(--wp--preset--spacing--2) 0;
	border-bottom: 1px solid rgba(27,79,114,0.08);
	line-height: 1.7;
}

.shr-legal-content .wp-block-list li:last-child {
	border-bottom: none;
}

.shr-legal-meta p {
	margin: 0 !important;
}

/* Hero legal */
.shr-hero-legal .wp-block-cover__image-background {
	object-position: center 80%;
}

/* Responsive tabla legal */
@media (max-width: 640px) {
	.shr-legal-table td:first-child {
		white-space: normal;
		width: auto;
	}

	.shr-legal-table table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* ─────────────────────────────────────────────
   18. EDITOR BLOCK STYLES
   (se complementa con editor-style.css)
───────────────────────────────────────────── */

/* Asegurar que los bloques WordPress no sobrescriban estilos clave */
.wp-block-cover.shr-hero .wp-block-cover__inner-blocks {
	padding-inline: var(--wp--preset--spacing--6);
}

.wp-block-cover.shr-cta-section .wp-block-cover__inner-blocks {
	padding-inline: var(--wp--preset--spacing--6);
	text-align: center;
}

/* Separador decorativo del about */
.shr-about .wp-block-separator {
	margin-block: 0 !important;
}

/* Asegurar altura total de columnas en servicios */
.shr-services-home__grid .wp-block-column {
	display: flex;
	flex-direction: column;
}

.shr-services-home__grid .wp-block-column > .wp-block-group {
	flex: 1;
}

/* ─────────────────────────────────────────────
   20. MEJORAS ESTÉTICAS GLOBALES
   Correcciones de márgenes, tipografía y
   espaciado que WP puede sobrescribir.
───────────────────────────────────────────── */

/* ── Eliminar márgenes WP entre secciones principales ── */
.shr-hero + .shr-trust,
.shr-trust + .shr-about,
.shr-about + .shr-services-home,
.shr-services-home + .shr-cta-section,
.shr-hero-inner + *,
.shr-services-intro + .shr-services-full,
.shr-services-full + .shr-for-lawyers,
.shr-for-lawyers + .shr-cta-bottom,
.shr-contact-section + .shr-map-section {
	margin-top: 0 !important;
}

/* ── Tipografía: eliminar márgenes extra en párrafos de secciones coloreadas ── */
.shr-trust__item p,
.shr-for-lawyers p,
.shr-cta-section p {
	margin-block: 0 !important;
}

/* ── Franja de confianza: números grandes alineados ── */
.shr-trust__item .wp-block-heading {
	margin: 0 !important;
	line-height: 1 !important;
}

.shr-trust__item .wp-block-paragraph {
	margin: 0 !important;
}

/* ── Cabecera de sección: centrado correcto ── */
.shr-section-header {
	text-align: center;
}

.shr-section-header .wp-block-heading,
.shr-section-header .wp-block-paragraph {
	margin-inline: auto;
	max-width: 640px;
}

/* ── Hero: inner blocks sin padding extra de WP ── */
.shr-hero .wp-block-cover__inner-blocks,
.shr-hero-inner .wp-block-cover__inner-blocks,
.shr-cta-section .wp-block-cover__inner-blocks {
	padding-inline: var(--wp--preset--spacing--6) !important;
	width: 100%;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
}

/* ── Separadores: sin márgenes extra ── */
.wp-block-separator {
	margin-block: 0 !important;
}

/* ── Botones: cursor pointer siempre ── */
.wp-block-button__link {
	cursor: pointer;
}

/* ── Navegación footer: sin subrayado ── */
.shr-footer .wp-block-navigation-item__content {
	text-decoration: none !important;
}

/* ── Tarjetas de servicios: eliminar gap extra de WP en columnas ── */
.shr-services-home__grid.wp-block-columns,
.shr-services-full .wp-block-columns {
	align-items: stretch !important;
}

/* ── About: columnas alineadas verticalmente ── */
.shr-about__cols.wp-block-columns {
	align-items: center !important;
}

/* ── Formulario: inputs consistentes en todos los navegadores ── */
.shr-form-input,
.shr-form-select,
.shr-form-textarea {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

/* ── Mapa: sin gap extra encima ── */
.shr-map-section .wp-block-heading {
	margin-bottom: var(--wp--preset--spacing--7) !important;
}

/* ── Footer: columnas sin padding extra de WP ── */
.shr-footer__cols.wp-block-columns {
	margin: 0 !important;
}

/* ── Páginas interiores: hero sin margen superior ── */
.shr-hero-inner.wp-block-cover {
	margin-top: 0 !important;
}

/* ── Corrección: wp-block-group dentro de cover no hereda gap ── */
.wp-block-cover .wp-block-cover__inner-blocks .wp-block-group {
	margin-block: 0 !important;
}

/* ── Smooth scroll offset correcto con header sticky ── */
:target {
	scroll-margin-top: calc(var(--shr-header-h) + 1rem);
}

/* ── Selección de texto con color corporativo ── */
::selection {
	background-color: rgba(27, 79, 114, 0.2);
	color: var(--wp--preset--color--texto);
}

/* ── Focus visible accesible en toda la página ── */
:focus-visible {
	outline: 2px solid var(--wp--preset--color--dunas);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Excepto en elementos con focus ring propio */
.shr-form-input:focus-visible,
.shr-form-checkbox:focus-visible,
.shr-btn-submit:focus-visible {
	outline: none;
}
