/*
Theme Name: Mediación Córdoba
Theme URI: https://mediacioncordoba.es
Author: Mediación Córdoba
Description: Tema de bloques ligero y accesible para la web de Victoria Rodríguez de Marco, mediadora familiar en Córdoba.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mediacion
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--ochre-soft); color: var(--wp--preset--color--ink); }
:where(a) { text-underline-offset: .18em; text-decoration-thickness: 1px; }
:where(a):hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--wp--preset--color--ochre); outline-offset: 3px; border-radius: 2px; }
.skip-link:focus { z-index: 100000; }

/* ---------- Cabecera ---------- */
.mc-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.mc-brand { line-height: 1.1; }
.mc-brand .mc-brand__name a { text-decoration: none; color: inherit; }
.mc-brand .mc-brand__name em { font-style: italic; color: var(--wp--preset--color--ochre-dark); }
.mc-header .wp-block-navigation a { text-decoration: none; }
.mc-header .wp-block-navigation a:hover,
.mc-header .wp-block-navigation .current-menu-item > a { text-decoration: underline; text-decoration-color: var(--wp--preset--color--ochre); text-decoration-thickness: 2px; }

/* ---------- Elementos editoriales ---------- */
.mc-eyebrow { letter-spacing: .14em; text-transform: uppercase; }
.mc-rule { width: 3rem; height: 2px; background: var(--wp--preset--color--ochre); border: 0; margin-left: 0 !important; }
.mc-rule.aligncenter, .has-text-align-center + .mc-rule { margin-left: auto !important; }

.mc-hero__img img { aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.02); }
.mc-portrait img { aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }

/* Tarjetas */
.mc-card { border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--paper); height: 100%; }
.mc-card h3 { margin-top: 0; }

/* Lista numerada de ventajas */
.mc-steps { counter-reset: mc; list-style: none; padding-left: 0; }
.mc-steps > li { counter-increment: mc; position: relative; padding-left: 3.25rem; margin-bottom: 1.5rem; }
.mc-steps > li::before { content: counter(mc); position: absolute; left: 0; top: -.15rem; font-family: var(--wp--preset--font-family--serif); font-size: 2.1rem; line-height: 1; color: var(--wp--preset--color--ochre-dark); }

/* Características (lista con término destacado) */
.mc-traits { list-style: none; padding-left: 0; border-top: 1px solid var(--wp--preset--color--line); }
.mc-traits li { padding: .9rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }

/* Bloque de contacto */
.mc-contact a { color: inherit; }
.mc-contact dt { font-size: var(--wp--preset--font-size--small); letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin-top: 1rem; }
.mc-contact dd { margin: .2rem 0 0; font-size: var(--wp--preset--font-size--large); font-family: var(--wp--preset--font-family--serif); }

/* Blog */
.mc-post-card .wp-block-post-featured-image img { aspect-ratio: 3 / 2; object-fit: cover; }
.mc-post-card .wp-block-post-title a { text-decoration: none; }
.mc-post-card .wp-block-post-title a:hover { text-decoration: underline; }
.wp-block-post-content figure img, .wp-block-post-content img { height: auto; max-width: 100%; }
.wp-block-post-content .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.wp-block-post-content .gallery-item { margin: 0; }
.wp-block-post-content .gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.wp-block-post-content iframe { max-width: 100%; }
.wp-block-post-content .wp-video, .wp-block-post-content video { max-width: 100%; height: auto; }

.mc-post-card .wp-block-post-title a { color: var(--wp--preset--color--ink); }
.mc-post-card .wp-block-post-excerpt__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mc-post-card .wp-block-post-excerpt__more-text { display: none; }

/* Pie */
.mc-footer a { color: inherit; }

@media (max-width: 781px) {
	.mc-hero h1 { font-size: 2.4rem !important; }
	.mc-steps > li { padding-left: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
