/*
Theme Name: socializaTTE
Theme URI: https://socializatte.com
Author: socializaTTE
Description: Tema personal y profesional de socializaTTE. Identidad corporativa oficial: Lato, azul #0078FF y gris #334155 sobre blanco. Portada por secciones, páginas Perfil, Proyectos, Blog, Colección y Contacto, tipos de contenido Proyectos y Colección, y formulario de agradecimiento.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: socializatte
Tags: blog, portfolio, custom-menu, custom-logo, featured-images, editor-style, translation-ready
*/

:root {
	--blue: #0078FF; --blue-dark: #005FCC; --blue-2: #4DB3FF; --blue-tint: #EAF4FF; --blue-ink: #0060CC;
	--ink: #334155; --ink-2: #475569; --ink-3: #64748B;
	--line: #E5EAF0; --field: #CBD5E1; --soft: #F5F8FB; --white: #FFFFFF;
	--edge: clamp(20px, 5vw, 56px); --gap-section: clamp(80px, 10vw, 120px);
	--radius: 20px; --pill: 999px;
	--font: 'Lato', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--edge); }
.screen-reader-text, .skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font); font-weight: 700; font-size: 16px; line-height: 1.2; padding: 15px 28px; border-radius: var(--pill); border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-tint); color: var(--blue); }

/* cabecera */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .bar { max-width: 1200px; margin: 0 auto; padding: 0 var(--edge); height: 76px; display: flex; align-items: center; gap: 32px; position: relative; }
.brand { margin-right: auto; display: flex; align-items: center; }
.brand img, .brand .custom-logo { height: 40px; width: auto; }
.site-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.site-nav a { color: var(--ink); }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--blue); }
.site-nav li:last-child > a { background: var(--blue); color: var(--white); font-weight: 700; padding: 10px 20px; border-radius: var(--pill); }
.site-nav li:last-child > a:hover { background: var(--blue-dark); color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font: 700 15px var(--font); color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 16px var(--edge) 24px; }
	.site-header.open .site-nav { display: block; }
	.site-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* textos comunes */
.kicker { display: block; margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); }
.section-title { margin: 0; font-weight: 300; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.15; letter-spacing: -.01em; }
.lede { margin: 28px 0 0; font-size: 19px; line-height: 1.6; max-width: 34em; color: var(--ink-2); }
.note { color: var(--ink-2); }
.more { font-weight: 700; font-size: 16px; }
.section { padding: var(--gap-section) 0; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); }
.section-bg { background: var(--white) url(assets/img/fondo-seccion.png) right top / cover no-repeat; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head .intro { max-width: 640px; }
.section-head .intro p { margin: 18px 0 0; color: var(--ink-2); }
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; padding: 0; list-style: none; }
.tags li, .tag { font-size: 14px; padding: 7px 14px; border-radius: var(--pill); background: var(--blue-tint); color: var(--blue-ink); }

/* hero */
.hero { background: var(--white) url(assets/img/fondo-hero.png) right top / cover no-repeat; overflow: hidden; }
.hero .wrap { padding-top: clamp(80px, 12vw, 150px); padding-bottom: clamp(80px, 10vw, 130px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: center; }
.hero h1 { margin: 0; font-weight: 300; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.06; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--blue); font-weight: 400; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero .symbol { display: flex; justify-content: center; }
.hero .symbol img { width: min(100%, 380px); }

/* cifras */
.stats { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.stat-num { font-weight: 300; font-size: 44px; line-height: 1; color: var(--blue); }
.stat-label { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

/* perfil */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(40px, 6vw, 88px); align-items: center; }
.portrait { aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.split p { color: var(--ink-2); }

/* tarjetas de proyecto */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 16px 40px rgba(0,120,255,.12); transform: translateY(-3px); color: var(--ink); }
.card .thumb { aspect-ratio: 16 / 10; background: var(--line); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 24px 26px 28px; }
.card .meta { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.card h3 { margin: 0; font-weight: 700; font-size: 21px; line-height: 1.3; }
.card p { margin: 12px 0 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }

/* artículos */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 56px; }
.posts.one-col { grid-template-columns: 1fr; max-width: 820px; }
.post-row { display: grid; gap: 8px; padding: 28px 0; border-top: 1px solid var(--line); color: var(--ink); }
.post-row:hover { color: var(--blue); }
.post-row .info { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-3); }
.post-row .cat { font-weight: 700; color: var(--blue); }
.post-row .title { font-weight: 700; font-size: 20px; line-height: 1.35; }
.post-row .dek { font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* colección */
.pens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.pen { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pen .shot { display: block; aspect-ratio: 1 / 1; background: var(--line); }
.pen .shot img { width: 100%; height: 100%; object-fit: cover; }
.pen figcaption { padding: 18px 20px 22px; }
.pen .name { font-weight: 700; font-size: 17px; color: var(--ink); }
.pen .name:hover { color: var(--blue); }
.pen .detail { margin-top: 4px; font-size: 14px; color: var(--ink-3); }

/* contacto */
.contact { background: var(--white) url(assets/img/fondo-banner.png) right center / cover no-repeat; border-top: 1px solid var(--line); }
.contact .split { align-items: start; }
.form { position: relative; display: grid; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 36px); box-shadow: 0 20px 50px rgba(51,65,85,.06); }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 700; }
.input { font: 400 16px var(--font); padding: 13px 16px; border: 1px solid var(--field); border-radius: 12px; color: var(--ink); background: var(--white); width: 100%; }
.input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-tint); }
textarea.input { resize: vertical; }
.form .actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.sent { font-size: 15px; font-weight: 700; color: var(--blue); }
.hp { position: absolute; left: -9999px; }

/* páginas interiores */
.page-hero { background: var(--white) url(assets/img/fondo-banner.png) right top / cover no-repeat; border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(48px, 6vw, 72px); }
.page-hero h1 { margin: 0; font-weight: 300; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.1; letter-spacing: -.02em; max-width: 18em; }
.page-hero .entry-meta { margin: 0 0 16px; }
.page-body { padding: clamp(56px, 7vw, 88px) 0 var(--gap-section); }
.entry-meta { font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); }
.featured { border-radius: 24px; overflow: hidden; margin: 0 0 48px; }
.entry-content { max-width: 720px; font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.entry-content > * { margin-top: 24px; margin-bottom: 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-weight: 300; font-size: 32px; line-height: 1.2; margin-top: 56px; color: var(--ink); }
.entry-content h3 { font-weight: 700; font-size: 22px; line-height: 1.3; margin-top: 40px; color: var(--ink); }
.entry-content strong { color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content li { margin-top: 8px; }
.entry-content li::marker { color: var(--blue); }
.entry-content blockquote { margin-left: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--blue); font-weight: 300; font-size: 22px; line-height: 1.5; color: var(--ink); }
.entry-content figure img { border-radius: 16px; }
.entry-content figcaption { font-size: 14px; color: var(--ink-3); margin-top: 10px; }
.entry-content code { font-size: .9em; background: var(--soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.entry-content pre { background: var(--ink); color: var(--line); padding: 20px; border-radius: 12px; overflow: auto; font-size: 15px; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content .wp-block-button__link { background: var(--blue); color: var(--white); border-radius: var(--pill); font-weight: 700; text-decoration: none; padding: 14px 28px; }
.entry-content .wp-block-button__link:hover { background: var(--blue-dark); }
.alignwide { max-width: 1100px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.page-intro { margin-bottom: 56px; }

/* paginación */
.pager { padding-top: 48px; }
.pager ul { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.pager a, .pager span { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .current { background: var(--blue); border-color: var(--blue); color: var(--white); }
.post-nav { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 56px; margin-top: 56px; border-top: 1px solid var(--line); font-weight: 700; }

/* comentarios */
.comments { max-width: 720px; margin-top: 72px; }
.comments .comment-list { list-style: none; padding: 0; }
.comments .comment-body { padding: 20px 0; border-top: 1px solid var(--line); font-size: 16px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { font: 400 16px var(--font); padding: 12px 14px; border: 1px solid var(--field); border-radius: 12px; width: 100%; }
.comment-form .submit { background: var(--blue); color: var(--white); border: 0; border-radius: var(--pill); padding: 14px 26px; font: 700 16px var(--font); cursor: pointer; }

/* pie */
.site-footer { background: var(--ink); color: var(--line); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .sign { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.site-footer .sign img { width: 40px; height: 40px; }
.site-footer ul { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.site-footer a { color: var(--line); }
.site-footer a:hover { color: var(--blue-2); }
.site-footer .legal { width: 100%; margin: 0; font-size: 13px; color: #94A3B8; padding-top: 24px; border-top: 1px solid rgba(229,234,240,.15); }

/* búsqueda */
.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form .input { flex: 1; }
.empty { color: var(--ink-3); }
