/*
 * Estilos que theme.json no cubre.
 * Mantener al mínimo. Si algo se puede expresar en theme.json, va ahí.
 */

/* Skip-to-content (a11y, WCAG AA) */
.skip-link.screen-reader-text {
	position: absolute;
	top: -40px;
	left: 0.5rem;
	background: var(--wp--preset--color--ink-strong);
	color: var(--wp--preset--color--brand);
	padding: 0.625rem 1rem;
	border-radius: 0 0 8px 8px;
	z-index: 100000;
	text-decoration: none;
	font-weight: 800;
	font-size: 0.95rem;
	transition: top 0.15s ease-out;
}
.skip-link.screen-reader-text:focus,
.skip-link.screen-reader-text:focus-visible {
	top: 0;
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
}

/* Mejor experiencia de focus accesible (WCAG AA) */
:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
}

/* Suaviza el hover de cards en grids de módulos y precios */
.wp-block-column[style*="border-radius"] {
	transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}
.wp-block-column[style*="border-radius"]:hover {
	transform: translateY(-2px);
}

/* <details> blocks de FAQ — animar abrir/cerrar */
.wp-block-details summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	font-size: 1.5rem;
	font-weight: 300;
	color: var(--wp--preset--color--brand);
	transition: transform 0.18s ease-out;
}
.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

/* Footer: links blancos suaves con hover */
footer.wp-block-group a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s;
}
footer.wp-block-group a:hover,
footer.wp-block-group a:focus-visible {
	color: var(--wp--preset--color--brand);
	text-decoration: underline;
}

/* Smooth scroll para anclas internas */
html { scroll-behavior: smooth; }

/* Print: oculta header/footer y CTAs */
@media print {
	header.wp-block-template-part,
	footer.wp-block-template-part,
	.wp-block-buttons { display: none !important; }
}
