/*
Theme Name:  Fernando Elipe
Theme URI:   https://fernandoelipe.net
Description: Child theme de Kadence para fernandoelipe.net — reporting regulatorio y datos supervisores.
Author:      Fernando Elipe
Template:    kadence
Version:     0.3.2
Text Domain: fernandoelipe-net
*/

/* Paleta oficial (sección 2 de proyecto_fernandoelipe_net.md — no improvisar tonos) */
:root {
	--beige: #F3EEE2;
	--beige-page: #F0EFEA;
	--white: #FFFFFF;
	--blue: #0C447C;
	--blue-light: #E6F1FB;
	--ink: #1A1A18;
	--muted: #6B6A64;
	--hint: #918F84;
	--border: #DEDACB;
}

* { box-sizing: border-box; }

body.fe-body {
	background: var(--beige-page);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	margin: 0;
	padding: 2.5rem 1.5rem;
	color: var(--ink);
}

.wrap { max-width: 1040px; margin: 0 auto; }
.frame { background: var(--beige); border-radius: 12px; overflow: hidden; border: 0.5px solid #E5E3DA; }
.inner { padding: 2.5rem 2rem 2rem; }

/* ---------- Navegación ---------- */
nav.topnav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 10px; }
nav.topnav .brand { font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; }
nav.topnav .links { display: flex; gap: 18px; font-size: 13px; color: var(--muted); align-items: center; flex-wrap: wrap; }
nav.topnav .links a { color: var(--muted); text-decoration: none; }
nav.topnav .links a.active { color: var(--blue); font-weight: 600; }
nav.topnav .lang { border-left: 0.5px solid var(--border); padding-left: 14px; color: var(--blue); font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */
footer.sitefoot { padding: 1.25rem 2rem; border-top: 0.5px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--hint); flex-wrap: wrap; gap: 6px; }

/* ---------- Tipografía y componentes base ---------- */
.fe-body h1 { font-size: 24px; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
.eyebrow { font-size: 11px; color: var(--blue); font-weight: 600; letter-spacing: 0.04em; }
.eyebrow.dim { color: var(--hint); }
.card { background: var(--white); border: 0.5px solid var(--border); border-radius: 8px; padding: 1.1rem 1.25rem; }
.card.blue { background: var(--blue); color: var(--blue-light); border: none; }
.pill { background: var(--white); border: 0.5px solid var(--border); color: var(--muted); font-size: 11px; padding: 4px 10px; border-radius: 10px; text-decoration: none; display: inline-block; }
.pill.active { background: var(--blue); color: var(--blue-light); border: none; }
.pill.tag { background: var(--blue-light); color: var(--blue); border: none; }
.fe-body a.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--blue); color: var(--blue-light); border: none; padding: 9px 16px; font-size: 12px; border-radius: 8px; text-decoration: none; }
.btn.secondary { background: var(--white); border: 0.5px solid var(--border); color: var(--ink); }
.fe-body a { color: var(--blue); }
.inline-icon-link { display: inline-flex; align-items: center; gap: 5px; }
.icon-linkedin { flex-shrink: 0; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.breadcrumb { font-size: 11px; color: var(--hint); margin: 0 0 16px; }
.breadcrumb a { color: var(--hint); text-decoration: none; }

/* ---------- Home ---------- */
.home-section { margin-bottom: 1.1rem; }
.home-section .section-desc { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.home-profile { display: flex; gap: 24px; align-items: center; padding-bottom: 1.5rem; border-bottom: 0.5px solid var(--border); margin-bottom: 1.1rem; }
.home-profile .avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--blue); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--blue-light); font-size: 11px; overflow: hidden; }
.home-profile .avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-profile h1 { font-size: 26px; margin: 0 0 8px; }
.home-profile .claim-sub { font-size: 14px; color: var(--muted); margin: 0; max-width: 440px; }
.cards-row { display: flex; align-items: center; gap: 12px; }
.cards-row .grid3 { flex: 1; grid-template-columns: repeat(3, 1fr); }
a.plus-circle { width: 44px; height: 44px; min-width: 44px; border-radius: 50%; background: var(--blue); color: #FFFFFF; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 600; text-decoration: none; line-height: 44px; text-align: center; }
.mini-card { text-decoration: none; display: block; }
.mini-card .date { font-size: 11px; color: var(--hint); margin: 0 0 4px; }
.mini-card .title { font-size: 13px; font-weight: 600; margin: 0; color: var(--ink); }
.mini-card.blue .date { color: inherit; opacity: 0.85; }
.mini-card.blue .title { color: inherit; }

/* ---------- Archivo (patrón común) ---------- */
.archive-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.archive-head h1 { font-size: 22px; margin: 0 0 4px; }
.archive-head .sub { font-size: 12px; color: var(--muted); margin: 0; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.export-btn { white-space: nowrap; }
.intro-text { font-size: 13px; line-height: 1.7; margin: 0 0 20px; max-width: 500px; }

/* Tarjeta de actividad (grid con imagen) */
.act-card { text-decoration: none; display: block; }
.act-card .card { padding: 0; overflow: hidden; }
.act-card .thumb { height: 80px; background: #B4B2A9; display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-size: 10px; overflow: hidden; }
.act-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.act-card .body { padding: 0.75rem; }
.act-card .kind { font-size: 9px; color: var(--blue); font-weight: 600; text-transform: uppercase; }
.act-card .title { font-size: 12px; font-weight: 600; margin: 4px 0 3px; color: var(--ink); }
.act-card .date { font-size: 10px; color: var(--hint); margin: 0; }

/* Fila de novedad (dos columnas) */
.nov-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.nov-row { text-decoration: none; display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.nov-row .meta { font-size: 11px; color: var(--hint); }
.nov-row .title { font-size: 14px; font-weight: 600; margin: 6px 0; color: var(--ink); }
.nov-row .summary { font-size: 12px; color: var(--muted); margin: 0; }
.nov-row .impact { border-left: 0.5px solid var(--border); padding-left: 16px; }
.nov-row .impact .label { font-size: 10px; letter-spacing: 0.04em; color: var(--hint); margin: 0 0 6px; text-transform: uppercase; }
.nov-row .impact .text { font-size: 12.5px; line-height: 1.6; margin: 0; color: var(--ink); }
.nov-row.blue .meta { color: inherit; opacity: 0.85; }
.nov-row.blue .title, .nov-row.blue .impact .text { color: inherit; }
.nov-row.blue .summary { color: inherit; opacity: 0.9; }
.nov-row.blue .impact { border-left: 1px solid rgba(230, 241, 251, 0.3); }
.nov-row.blue .impact .label { color: inherit; opacity: 0.75; }

/* Tarjeta Sócrates */
.soc-card { text-decoration: none; display: block; }
.soc-card .status { font-size: 10px; color: var(--hint); margin: 0 0 4px; text-transform: uppercase; }
.soc-card .title { font-size: 13px; font-weight: 600; margin: 0; color: var(--ink); }
.soc-card.blue .status { color: inherit; opacity: 0.85; }
.soc-card.blue .title { color: inherit; }

/* Paginación numerada */
.pages { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.pages .page-numbers { min-width: 26px; height: 26px; padding: 0 4px; border-radius: 6px; border: 0.5px solid var(--border); color: var(--muted); font-size: 12px; display: flex; align-items: center; justify-content: center; background: var(--white); text-decoration: none; }
.pages .page-numbers.current { background: var(--blue); color: var(--blue-light); border: none; }

/* ---------- Detalle ---------- */
.hero-img { height: 160px; border-radius: 10px; background: var(--blue); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; color: var(--blue-light); font-size: 12px; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.single-title { margin: 8px 0 12px; }
.meta-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; font-size: 12px; color: var(--muted); }
.box { margin-bottom: 16px; }
.box .box-label { margin: 0 0 8px; }
.box .box-text { font-size: 13px; line-height: 1.7; margin: 0; }
.box.blue .box-label { color: var(--blue-light); opacity: 0.85; }
.entry-content { font-size: 14px; line-height: 1.75; color: var(--ink); margin-bottom: 20px; }
.entry-content > * { margin: 0 0 16px; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.actions { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.back-link { font-size: 12px; color: var(--muted); }

/* ---------- Perfil ---------- */
.perfil-head { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 2rem; }
.perfil-head .avatar { width: 108px; height: 108px; border-radius: 50%; background: var(--blue); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--blue-light); font-size: 11px; overflow: hidden; }
.perfil-head .avatar img { width: 100%; height: 100%; object-fit: cover; }
.perfil-head .cargo { font-size: 14px; color: var(--blue); font-weight: 600; margin: 0 0 12px; }
.perfil-head .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.perfil-bio { margin-bottom: 1.5rem; }
.perfil-bio p { font-size: 13px; line-height: 1.7; margin: 0 0 10px; }
.perfil-bio p:last-child { margin-bottom: 0; }
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1.5rem; }
.two-cards .card p:not(.eyebrow) { font-size: 13px; line-height: 1.6; margin: 0; }

/* ---------- Contacto / páginas simples ---------- */
.page-sub { font-size: 13px; color: var(--muted); margin: 0 0 24px; max-width: 440px; }
.contact-card p { font-size: 13px; margin: 0 0 10px; }
.contact-card p:last-child { margin: 0; }
.hint-note { font-size: 11px; color: var(--hint); }
.legal-content p, .legal-content li { font-size: 13px; line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
	.cards-row { flex-direction: column; align-items: stretch; }
	.cards-row .grid3 { grid-template-columns: 1fr; }
	.cards-row .plus-circle { align-self: center; }
	.nov-row { grid-template-columns: 1fr; }
	.nov-row .impact { border-left: none; padding-left: 0; border-top: 0.5px solid var(--border); padding-top: 10px; }
	.nov-row.blue .impact { border-left: none; border-top: 1px solid rgba(230, 241, 251, 0.3); }
	.two-cards { grid-template-columns: 1fr; }
	.perfil-head { flex-direction: column; gap: 16px; }
	.home-profile { flex-direction: column; align-items: flex-start; gap: 14px; }
}
