/*
Theme Name: Soporte Técnico ES
Theme URI: https://soportetecnicoes.com
Author: Soporte Técnico ES
Author URI: https://soportetecnicoes.com
Description: Tema de tecnología ligero, rápido y preparado para Google AdSense. Incluye páginas legales automáticas (privacidad, cookies, términos, aviso legal, descargo de responsabilidad, sobre nosotros y contacto), formulario de contacto, espacios publicitarios configurables, ads.txt automático, aviso de cookies, migas de pan, datos estructurados y lista de verificación de AdSense en el panel.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soportetecnicoes
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
	--ste-navy: #0f1b2d;
	--ste-navy-2: #16263e;
	--ste-blue: #0a7cff;
	--ste-teal: #14d3c0;
	--ste-text: #1d2939;
	--ste-muted: #5b6b82;
	--ste-line: #e4e9f0;
	--ste-bg: #f5f7fb;
	--ste-card: #ffffff;
	--ste-radius: 14px;
	--ste-shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 6px 20px rgba(15, 27, 45, .06);
	--ste-max: 1200px;
	--ste-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ste-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--ste-font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ste-text);
	background: var(--ste-bg);
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--ste-blue); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { color: var(--ste-navy); line-height: 1.25; margin: 1.6em 0 .6em; font-weight: 800; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.2em; }
code, kbd, pre { font-family: var(--ste-mono); font-size: .9em; }
code, kbd { background: #eef2f8; padding: .15em .4em; border-radius: 6px; }
pre { background: var(--ste-navy); color: #e6edf7; padding: 1.1em 1.3em; border-radius: 10px; overflow-x: auto; line-height: 1.55; }
pre code { background: none; padding: 0; color: inherit; }
blockquote { margin: 1.5em 0; padding: .8em 1.2em; border-left: 4px solid var(--ste-teal); background: #eefcfa; border-radius: 0 10px 10px 0; }
table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95em; }
th, td { padding: .65em .8em; border: 1px solid var(--ste-line); text-align: left; }
th { background: #eef2f8; }
hr { border: 0; border-top: 1px solid var(--ste-line); margin: 2em 0; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; z-index: 100000; background: #fff; padding: 12px 18px; top: 8px; left: 8px; }
.ste-container { width: 100%; max-width: var(--ste-max); margin: 0 auto; padding: 0 20px; }

/* ---------- Barra superior ---------- */
.ste-topbar { background: var(--ste-navy); color: #b9c6d8; font-size: .82rem; }
.ste-topbar .ste-container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.ste-topbar a { color: #dbe5f2; }
.ste-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 640px) { .ste-topbar ul { display: none; } }

/* ---------- Cabecera ---------- */
.ste-header { background: #fff; border-bottom: 1px solid var(--ste-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .ste-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ste-header { top: 0; position: relative; } }
.ste-header .ste-container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.ste-brand { display: flex; align-items: center; }
.ste-brand img, .ste-brand .custom-logo { height: 46px; width: auto; display: block; }
.ste-brand .site-title { margin: 0; font-size: 1.3rem; }

.ste-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.ste-nav li { position: relative; }
.ste-nav a { display: block; padding: 10px 14px; color: var(--ste-navy); font-weight: 600; font-size: .95rem; border-radius: 8px; }
.ste-nav a:hover, .ste-nav .current-menu-item > a { background: #eef5ff; color: var(--ste-blue); text-decoration: none; }
.ste-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--ste-line); border-radius: 10px; box-shadow: var(--ste-shadow); padding: 6px; flex-direction: column; align-items: stretch; }
.ste-nav li:hover > .sub-menu, .ste-nav li:focus-within > .sub-menu { display: flex; }

.ste-header-actions { display: flex; align-items: center; gap: 8px; }
.ste-icon-btn { background: none; border: 1px solid var(--ste-line); width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ste-navy); }
.ste-icon-btn:hover { border-color: var(--ste-blue); color: var(--ste-blue); }
.ste-menu-toggle { display: none; }
.ste-search-panel { display: none; border-top: 1px solid var(--ste-line); background: #fff; padding: 14px 0; }
.ste-search-panel.is-open { display: block; }

@media (max-width: 960px) {
	.ste-menu-toggle { display: inline-flex; }
	.ste-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--ste-line); box-shadow: var(--ste-shadow); }
	.ste-nav.is-open { display: block; }
	.ste-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 16px; }
	.ste-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding-left: 14px; }
}

/* ---------- Buscador ---------- */
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 12px 14px; border: 1px solid var(--ste-line); border-radius: 10px; font-size: 1rem; font-family: inherit; }
.search-field:focus { outline: 2px solid var(--ste-blue); outline-offset: 1px; border-color: transparent; }

/* ---------- Botones y formularios ---------- */
.ste-btn, button[type=submit], input[type=submit], .search-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--ste-blue); color: #fff; border: 0; padding: 12px 20px; border-radius: 10px;
	font-weight: 700; font-size: .95rem; cursor: pointer; font-family: inherit; text-decoration: none;
}
.ste-btn:hover, button[type=submit]:hover, input[type=submit]:hover { background: #0063d1; text-decoration: none; color: #fff; }
.ste-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.ste-btn--ghost:hover { background: rgba(255,255,255,.1); }
input[type=text], input[type=email], input[type=url], textarea, select {
	width: 100%; padding: 12px 14px; border: 1px solid var(--ste-line); border-radius: 10px; font: inherit; background: #fff;
}
textarea { min-height: 160px; resize: vertical; }

/* ---------- Hero ---------- */
.ste-hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(20,211,192,.25), transparent 60%), linear-gradient(135deg, var(--ste-navy) 0%, #12305a 100%); color: #dbe5f2; padding: 64px 0 56px; }
.ste-hero h1 { color: #fff; margin: 0 0 12px; max-width: 760px; }
.ste-hero p { font-size: 1.15rem; max-width: 640px; margin-bottom: 26px; }
.ste-hero .ste-hero-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ste-chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: .88rem; font-weight: 600; }
.ste-chip:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.ste-page-head { background: #fff; border-bottom: 1px solid var(--ste-line); padding: 34px 0 26px; }
.ste-page-head h1 { margin: 6px 0 6px; }
.ste-page-head p { color: var(--ste-muted); margin: 0; }

/* ---------- Layout ---------- */
.ste-main { padding: 36px 0 56px; }
.ste-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.ste-layout--full { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin: 0 auto; }
@media (max-width: 960px) { .ste-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tarjetas de entradas ---------- */
.ste-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 640px) { .ste-grid { grid-template-columns: minmax(0, 1fr); } }
.ste-card { background: var(--ste-card); border: 1px solid var(--ste-line); border-radius: var(--ste-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.ste-card:hover { transform: translateY(-2px); box-shadow: var(--ste-shadow); }
.ste-card-thumb { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #e8f0ff, #e6fbf8); overflow: hidden; }
.ste-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ste-card-thumb--empty { display: flex; align-items: center; justify-content: center; }
.ste-card-thumb--empty img { width: 64px; height: 64px; opacity: .5; object-fit: contain; }
.ste-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ste-card-title { font-size: 1.15rem; margin: 6px 0 8px; }
.ste-card-title a { color: var(--ste-navy); }
.ste-card-excerpt { color: var(--ste-muted); font-size: .95rem; margin: 0 0 14px; }
.ste-card-excerpt p { margin: 0; }
.ste-cat-badge { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ste-blue); }
.ste-meta { font-size: .85rem; color: var(--ste-muted); display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; }
.ste-section-title { font-size: 1.3rem; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.ste-section-title::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(var(--ste-teal), var(--ste-blue)); }

/* ---------- Artículo ---------- */
.ste-article { background: #fff; border: 1px solid var(--ste-line); border-radius: var(--ste-radius); padding: 34px clamp(20px, 4vw, 44px); }
.ste-article-header h1 { margin-top: 8px; }
.ste-article-featured { margin: 0 0 26px; border-radius: 12px; overflow: hidden; }
.ste-article-featured img { width: 100%; display: block; }
.ste-entry-content > *:first-child { margin-top: 0; }
.ste-entry-content img { border-radius: 10px; }
.ste-entry-content ul, .ste-entry-content ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.ste-entry-content li { margin-bottom: .35em; }
.ste-entry-content .wp-block-image figcaption { font-size: .85rem; color: var(--ste-muted); text-align: center; }
.ste-updated { font-size: .85rem; color: var(--ste-muted); }
.ste-tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.ste-tags a { background: #eef2f8; color: var(--ste-navy); padding: 4px 12px; border-radius: 999px; font-size: .85rem; }
.ste-author-box { display: flex; gap: 18px; margin-top: 34px; padding: 22px; background: var(--ste-bg); border-radius: 12px; border: 1px solid var(--ste-line); }
.ste-author-box img { border-radius: 50%; flex-shrink: 0; }
.ste-author-box h3 { margin: 0 0 4px; font-size: 1.05rem; }
.ste-author-box p { margin: 0; font-size: .95rem; color: var(--ste-muted); }
.ste-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.ste-post-nav a { display: block; padding: 16px; border: 1px solid var(--ste-line); border-radius: 12px; background: #fff; color: var(--ste-navy); font-weight: 600; }
.ste-post-nav span { display: block; font-size: .78rem; color: var(--ste-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.ste-post-nav .nav-next { text-align: right; }
.ste-related { margin-top: 40px; }
.ste-disclaimer-note { margin-top: 28px; font-size: .85rem; color: var(--ste-muted); border-top: 1px dashed var(--ste-line); padding-top: 14px; }

/* ---------- Migas de pan ---------- */
.ste-breadcrumbs { font-size: .85rem; color: var(--ste-muted); }
.ste-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ste-breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #a3b0c2; }
.ste-breadcrumbs a { color: var(--ste-muted); }

/* ---------- Barra lateral ---------- */
.ste-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 96px; }
@media (max-width: 960px) { .ste-sidebar { position: static; } }
.widget { background: #fff; border: 1px solid var(--ste-line); border-radius: var(--ste-radius); padding: 20px 22px; font-size: .95rem; }
.widget-title, .widget .wp-block-heading { font-size: 1rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .05em; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--ste-line); }
.widget li:last-child { border-bottom: 0; }
.ste-widget-about img { height: 38px; width: auto; margin-bottom: 10px; }

/* ---------- Anuncios ---------- */
.ste-ad { margin: 28px auto; text-align: center; clear: both; overflow: hidden; min-height: 100px; }
.ste-ad-label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #98a4b5; margin-bottom: 6px; }
.ste-ad--sidebar { margin: 0; background: #fff; border: 1px solid var(--ste-line); border-radius: var(--ste-radius); padding: 14px; min-height: 280px; }
.ste-ad--header { margin: 18px auto 0; }
.ste-ad-placeholder { border: 2px dashed #c9d3e1; border-radius: 10px; padding: 26px 12px; color: #8a97a9; font-size: .85rem; background: #fbfcfe; }

/* ---------- Paginación ---------- */
.ste-pagination, .pagination { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--ste-line); color: var(--ste-navy); font-weight: 600; }
.page-numbers.current { background: var(--ste-blue); color: #fff; border-color: var(--ste-blue); }
.page-numbers:hover { text-decoration: none; border-color: var(--ste-blue); }

/* ---------- Comentarios ---------- */
.ste-comments { margin-top: 34px; background: #fff; border: 1px solid var(--ste-line); border-radius: var(--ste-radius); padding: 28px clamp(20px, 4vw, 40px); }
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--ste-line); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-metadata { font-size: .8rem; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }

/* ---------- Contacto ---------- */
.ste-contact-form { display: grid; gap: 14px; margin-top: 10px; }
.ste-contact-form label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 4px; }
.ste-contact-form .ste-hp { position: absolute; left: -9999px; }
.ste-notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.ste-notice--ok { background: #e7f8ef; color: #136c3a; border: 1px solid #b6e8cc; }
.ste-notice--error { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }
.ste-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 400 !important; }
.ste-check input { margin-top: 6px; }

/* ---------- Pie ---------- */
.ste-footer { background: var(--ste-navy); color: #a9b7cb; font-size: .93rem; padding: 54px 0 0; }
.ste-footer a { color: #dbe5f2; }
.ste-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 860px) { .ste-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ste-footer-grid { grid-template-columns: 1fr; } }
.ste-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 14px; }
.ste-footer ul { list-style: none; margin: 0; padding: 0; }
.ste-footer li { margin-bottom: 8px; }
.ste-footer-logo { height: 44px; width: auto; margin-bottom: 12px; }
.ste-footer .widget { background: none; border: 0; padding: 0; color: inherit; }
.ste-footer .widget li { border-color: rgba(255,255,255,.08); }
.ste-footer-bottom { margin-top: 44px; border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
.ste-footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* ---------- Aviso de cookies ---------- */
.ste-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; max-width: 760px; margin: 0 auto; background: #fff; color: var(--ste-text); border: 1px solid var(--ste-line); border-radius: 14px; box-shadow: 0 10px 40px rgba(15,27,45,.2); padding: 18px 20px; display: none; gap: 16px; align-items: center; font-size: .92rem; }
.ste-cookie.is-visible { display: flex; }
.ste-cookie p { margin: 0; flex: 1; }
.ste-cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ste-cookie .ste-btn { padding: 10px 16px; }
.ste-cookie .ste-btn--light { background: #eef2f8; color: var(--ste-navy); }
@media (max-width: 640px) { .ste-cookie { flex-direction: column; align-items: stretch; } }

/* ---------- 404 / vacío ---------- */
.ste-empty { text-align: center; padding: 50px 20px; background: #fff; border: 1px solid var(--ste-line); border-radius: var(--ste-radius); }
.ste-empty .ste-big { font-size: 5rem; font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--ste-teal), var(--ste-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ste-empty .search-form { max-width: 520px; margin: 22px auto 0; }

/* ---------- WordPress core ---------- */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--ste-muted); }
.sticky .ste-card { border-color: var(--ste-blue); }
.bypostauthor > .comment-body .fn::after { content: " · Autor"; color: var(--ste-blue); font-size: .8em; }
.wp-block-button__link { border-radius: 10px; }
