/* evaluamovil.es: estilos propios (mu-plugin evaluamovil-diseno) */
@font-face{font-family:"Manrope";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/manrope-latin-700.woff2) format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/inter-latin-var.woff2) format("woff2")}

:root{--evm-ink:#14243B;--evm-orange:#FF6B2C;--evm-btn:#C94A12;--evm-blue:#2B5CFF;--evm-bg:#F4F6F9;--evm-border:#E3E7ED;--evm-muted:#4A5A70}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
h1,h2,h3,h4,h5,h6,.entry-title,.evm-cat-name,.evm-card-title{font-family:Manrope,Inter,-apple-system,"Segoe UI",sans-serif;font-weight:700;letter-spacing:-.01em;hyphens:manual;-webkit-hyphens:manual;word-break:normal;overflow-wrap:normal}
h1,.entry-hero h1.entry-title,.single-content h1{font-size:clamp(1.6rem,1.15rem + 2vw,2.25rem);line-height:1.2}
h2{font-size:clamp(1.35rem,1.1rem + 1.1vw,1.75rem);line-height:1.25}
h3{font-size:clamp(1.12rem,1rem + .5vw,1.3rem);line-height:1.3}

/* Enlaces del cuerpo en azul (contraste AA); botones en naranja oscuro */
.entry-content a:not(.wp-block-button__link):not(.evm-tag):not(.evm-cat-card){color:var(--evm-blue);text-decoration:underline;text-underline-offset:2px}
.entry-content a:not(.wp-block-button__link):not(.evm-tag):not(.evm-cat-card):hover{color:#1B44D6}
.wp-block-button__link,.button,button[type=submit],input[type=submit]{border-radius:.6rem}

/* Logo */
.site-branding .brand{display:inline-flex;align-items:center}
.evm-logo{display:block;width:176px;height:auto}
@media (max-width:767px){.evm-logo{width:150px}}

/* Menú: Evaluador como botón */
.header-navigation .menu>li.evm-menu-btn>a{display:inline-block;width:auto;text-align:center;white-space:nowrap;background:var(--evm-btn);color:#fff!important;border-radius:.6rem;padding:.55em 1em!important;margin:0 .35em;line-height:1.2}
.header-navigation .menu>li.evm-menu-btn>a:hover{background:#A93C0C}
.mobile-navigation li.evm-menu-btn>a{color:var(--evm-btn)!important;font-weight:700}
.site-header{box-shadow:0 1px 0 var(--evm-border)}

/* Etiquetas de categoría */
.evm-tag,.entry-taxonomies a.evm-tag,.entry-taxonomies a[class*="category-link-"]{display:inline-block;background:var(--evm-s,#E6E9EE);color:var(--evm-c,#14243B)!important;font-size:.75rem;font-weight:600;line-height:1.2;letter-spacing:.02em;padding:.3em .65em;border-radius:999px;text-decoration:none!important;text-transform:none}
.entry-taxonomies .category-links{display:flex;flex-wrap:wrap;gap:.4em}
.entry-taxonomies .category-links>.evm-tag~*:not(a){display:none}

/* Bloque de categorías (portada) */
.evm-cats-intro{text-align:center;color:var(--evm-muted);margin:0 0 1.5rem}
.evm-cats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
@media (min-width:768px){.evm-cats{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}}
.evm-cat-card{display:flex;flex-direction:column;gap:.35rem;background:#fff;border:1px solid var(--evm-border);border-top:4px solid var(--evm-c);border-radius:.75rem;padding:1rem .9rem;text-decoration:none!important;color:var(--evm-ink)!important;transition:box-shadow .15s,transform .15s;min-width:0}
.evm-cat-card:hover{box-shadow:0 6px 18px rgba(20,36,59,.10);transform:translateY(-2px)}
.evm-cat-ico{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:.6rem;background:var(--evm-s);color:var(--evm-c);margin-bottom:.25rem}
.evm-cat-name{font-size:clamp(.98rem,.9rem + .35vw,1.15rem);line-height:1.25}
.evm-cat-desc{font-size:.875rem;line-height:1.45;color:var(--evm-muted)}
.evm-cat-count{margin-top:auto;padding-top:.35rem;font-size:.8rem;font-weight:600;color:var(--evm-c)}
@media (max-width:480px){.evm-cat-desc{display:none}.evm-cat-card{padding:.85rem .75rem}}

/* Tarjetas de entradas (portada y relacionados) */
.evm-cards{display:grid;grid-template-columns:1fr;gap:1.25rem}
@media (min-width:600px){.evm-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:960px){.evm-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
.evm-card{background:#fff;border:1px solid var(--evm-border);border-radius:.75rem;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.evm-card-img{display:block;aspect-ratio:16/9;background:var(--evm-s,#E6E9EE);overflow:hidden}
.evm-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.evm-card-ph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--evm-c)}
.evm-card-body{padding:.9rem 1rem 1.1rem;display:flex;flex-direction:column;gap:.5rem;align-items:flex-start}
.evm-card-title{font-size:1.05rem;line-height:1.35;margin:0}
.evm-card-title a{color:var(--evm-ink)!important;text-decoration:none!important}
.evm-card-title a:hover{color:var(--evm-btn)!important}

/* Archivos de categoría y blog (loop de Kadence) */
body.archive .entry-hero-container-inner,body.blog .entry-hero-container-inner{background:var(--evm-s,var(--evm-bg))}
body.archive .entry-hero .archive-title{color:var(--evm-c,var(--evm-ink))}
body.archive .entry-hero .archive-description{max-width:46rem;margin-left:auto;margin-right:auto;color:var(--evm-ink)}
.loop-entry{border-radius:.75rem;overflow:hidden;border:1px solid var(--evm-border);box-shadow:none!important}
.loop-entry .entry-title{font-size:1.1rem;line-height:1.35}
.loop-entry .entry-title a{color:var(--evm-ink)}
.loop-entry .entry-summary{font-size:.92rem;color:var(--evm-muted)}

/* Entradas */
.single .entry-hero .entry-meta,.single .entry-header .entry-meta{font-size:.85rem;color:var(--evm-muted)}
.wp-block-table{overflow-x:auto;-webkit-overflow-scrolling:touch}
.wp-block-table table{min-width:520px;border-collapse:collapse;font-size:.92rem}
.wp-block-table th{background:var(--evm-bg);font-weight:600;text-align:left}
.wp-block-table td,.wp-block-table th{border:1px solid var(--evm-border);padding:.55em .7em}
.evm-autor{display:flex;gap:1rem;align-items:flex-start;background:var(--evm-bg);border-radius:.75rem;padding:1.1rem 1.2rem;margin:2.5rem 0 0}
.evm-autor-ini{flex:0 0 52px;height:52px;border-radius:50%;background:var(--evm-ink);color:#fff;display:flex;align-items:center;justify-content:center;font-family:Manrope,sans-serif;font-weight:700}
.evm-autor p{margin:0}
.evm-autor-nombre{font-family:Manrope,sans-serif;font-weight:700;color:var(--evm-ink)}
.evm-autor-bio{font-size:.92rem;color:var(--evm-muted);margin:.15rem 0 .35rem!important}
.evm-autor-link{font-size:.9rem;font-weight:600;color:var(--evm-blue)!important}
.evm-rel{margin-top:2.5rem}
.evm-rel-title{font-size:1.3rem;margin-bottom:1rem}
.evm-cards--3{grid-template-columns:1fr}
@media (min-width:600px){.evm-cards--3{grid-template-columns:repeat(3,minmax(0,1fr))}.evm-cards--3 .evm-card-title{font-size:.95rem}}

/* Pie de página */
#colophon .site-middle-footer-wrap .site-footer-row-container-inner{background:#1A1A1A;color:#C8C8C6}
#colophon .site-bottom-footer-wrap .site-footer-row-container-inner{background:#111111;color:#A3A3A1;border-top:1px solid #2A2A2A}
#colophon a{color:#fff}
#colophon a:hover{color:var(--evm-orange)}
#colophon .site-middle-footer-wrap{font-size:.92rem}
.evm-pie-marca .evm-logo{width:170px;margin-bottom:.75rem}
.evm-pie-marca p{margin:0;max-width:22rem;line-height:1.55}
.evm-pie-tit{font-family:Manrope,sans-serif;font-weight:700;color:#fff;margin:0 0 .6rem}
.evm-pie-list{list-style:none;margin:0;padding:0}
.evm-pie-list li{margin:0 0 .4rem}
.evm-pie-list a{text-decoration:none}

/* Formulario de contacto */
.evm-form{display:grid;gap:1rem;max-width:40rem}
.evm-form label{display:block;font-weight:600;margin-bottom:.3rem;color:var(--evm-ink)}
.evm-form input[type=text],.evm-form input[type=email],.evm-form textarea{width:100%;border:1px solid #C5CDD8;border-radius:.5rem;padding:.65rem .75rem;font:inherit;background:#fff}
.evm-form input:focus,.evm-form textarea:focus{outline:2px solid var(--evm-blue);outline-offset:1px}
.evm-form .evm-check{display:flex;gap:.55rem;align-items:flex-start;font-weight:400}
.evm-form .evm-check input{margin-top:.3rem}
.evm-form button{background:var(--evm-btn);color:#fff;border:0;border-radius:.6rem;padding:.8rem 1.4rem;font-weight:600;cursor:pointer;justify-self:start}
.evm-form button:hover{background:#A93C0C}
.evm-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.evm-aviso{border-radius:.6rem;padding:.9rem 1rem;margin:0 0 1.25rem}
.evm-aviso--ok{background:#E7EDFF;color:#14243B;border-left:4px solid var(--evm-blue)}
.evm-aviso--err{background:#FFF1EA;color:#14243B;border-left:4px solid var(--evm-btn)}

/* Ajustes tras la revisión visual */
.evm-card .evm-card-title,.entry-content .evm-card .evm-card-title{margin:0}
#colophon ul.evm-pie-list{padding-left:0;margin-left:0}
.evm-rel .evm-rel-title{margin-top:0}

/* Barra lateral (v2): sin cajas, filetes finos y marca de color de 8 px */
.primary-sidebar .widget{margin-bottom:2rem}
.evm-lat{border-top:1px solid var(--evm-border);padding-top:1rem}
.evm-lat-tit{font-size:1rem;margin:0 0 .75rem}
.evm-lat ul{list-style:none;margin:0;padding:0}
.evm-lat li{margin:0;padding:.45rem 0;border-bottom:1px solid var(--evm-border);font-size:.93rem;line-height:1.4}
.evm-lat li:last-child{border-bottom:0}
.evm-lat a{color:var(--evm-ink);text-decoration:none}
.evm-lat a:hover{text-decoration:underline}
.evm-lat-temas li{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem}
.evm-lat-temas .is-actual a{font-weight:700}
.evm-mark{display:inline-block;width:8px;height:8px;background:var(--evm-c);margin-right:.6rem;vertical-align:.1em}
.evm-lat-n{color:var(--evm-muted);font-size:.85rem}
.evm-lat-eval p{font-size:.93rem;color:var(--evm-muted);margin:0 0 .5rem}
.evm-lat-eval a{color:var(--evm-blue);font-weight:600;text-decoration:underline;text-underline-offset:2px}
