/*
Theme Name: DatoNoti
Theme URI: https://datonoti.com
Author: Dato Jurídico
Author URI: https://datojuridico.com
Description: Tema para la plataforma de notificaciones judiciales por mensaje de datos DatoNoti. Diseñado para funcionar con el plugin DatoNoti.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: datonoti
*/

:root {
	--ink: #0f2b3c;
	--ink-2: #163d53;
	--lacre: #9b2226;
	--paper: #f6f7f4;
	--text: #1d2a33;
	--muted: #5a6b75;
	--line: #d7ddd8;
	--serif: "Spectral", Georgia, "Times New Roman", serif;
	--sans: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--measure: 68ch;
	/* El plugin toma estas variables */
	--dn-ink: var(--ink); --dn-lacre: var(--lacre); --dn-paper: var(--paper); --dn-text: var(--text); --dn-muted: var(--muted); --dn-line: var(--line);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #f1c232; outline-offset: 2px; }
h1, h2, h3, .site-title { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* Cabecera */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.site-title { font-size: 1.45rem; margin: 0; }
.site-title a { text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.site-title .mark { width: 30px; height: 30px; border: 2px solid var(--lacre); border-radius: 50%; display: inline-grid; place-items: center; color: var(--lacre); font-size: .8rem; font-family: var(--sans); font-weight: 700; transform: rotate(-8deg); }
.site-title .tag { color: var(--muted); font-family: var(--sans); font-weight: 400; font-size: .8rem; display: block; line-height: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--text); }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--lacre); }
.main-nav .btn-nav a { background: var(--ink); color: #fff; padding: .55rem 1rem; border-radius: 4px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: .5rem .7rem; font: inherit; border-radius: 4px; }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr); gap: 3rem; align-items: center; }
.hero h1 { color: #fff; font-weight: 500; max-width: 18ch; }
.hero p { font-size: 1.15rem; max-width: 52ch; color: #d8e0e4; }
.hero .actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; padding: .85rem 1.5rem; border-radius: 4px; border: 1px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--lacre); color: #fff; border-color: var(--lacre); }
.btn-primary:hover { background: #7f1b1f; }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero .price-note { margin-top: 1.2rem; font-size: .95rem; color: #b9c7ce; }

/* Sello: el elemento memorable del inicio */
.seal { justify-self: center; width: min(100%, 330px); aspect-ratio: 1; position: relative; }
.seal svg { width: 100%; height: 100%; display: block; }
.seal .stamp { position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: -12deg; border: 3px solid #e8a3a5; color: #e8a3a5; padding: .5rem 1rem; font-family: var(--sans); font-weight: 700; letter-spacing: .06em; font-size: .9rem; text-align: center; line-height: 1.3; mix-blend-mode: screen; }
.seal .stamp small { display: block; font-weight: 400; letter-spacing: 0; font-size: .75rem; }

/* Secciones */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { max-width: 24ch; }
.intro { max-width: var(--measure); color: var(--muted); font-size: 1.1rem; }

.steps { counter-reset: paso; list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.steps li { counter-increment: paso; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(paso) "."; font-family: var(--serif); font-size: 1.6rem; color: var(--lacre); display: block; margin-bottom: .3rem; }
.steps h3 { margin-bottom: .3rem; }
.steps p { color: var(--muted); font-size: .97rem; margin: 0; }

.levels { margin: 2rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2.5rem; }
.level { display: grid; grid-template-columns: 14px 1fr; gap: 1rem; }
.level .bar { background: var(--line); border-radius: 2px; }
.level.l1 .bar { background: #4a6f8a; } .level.l2 .bar { background: #2b7a9e; } .level.l3 .bar { background: #c98a00; } .level.l4 .bar { background: #1d6b3a; }
.level h3 { margin-bottom: .25rem; font-size: 1.1rem; }
.level p { color: var(--muted); font-size: .97rem; margin: 0; }

.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; }
.legal-grid blockquote { margin: 0; border-left: 3px solid var(--lacre); padding: .3rem 0 .3rem 1.2rem; font-family: var(--serif); font-size: 1.1rem; }
.legal-grid cite { display: block; font-style: normal; color: var(--muted); font-family: var(--sans); font-size: .9rem; margin-top: .5rem; }

.cta { background: var(--ink); color: #fff; text-align: center; }
.cta h2 { color: #fff; margin-inline: auto; }
.cta p { color: #d8e0e4; max-width: 52ch; margin-inline: auto; }

/* Contenido / páginas */
.page-header { background: var(--ink); color: #fff; padding: 2.6rem 0 2.2rem; position: relative; overflow: hidden; }
.page-header::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 0 0 28px rgba(255,255,255,.03), 0 0 0 40px rgba(255,255,255,.03); pointer-events: none; }
.page-header .kicker { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #b9c7ce; margin-bottom: .4rem; }
.page-header h1 { margin: 0; color: #fff; font-weight: 500; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-header .meta { color: #b9c7ce; margin: .4rem 0 0; }
.content { padding: 2.4rem 0 3.5rem; }
.entry-content { max-width: 920px; }
.entry-content > p, .entry-content > ul, .entry-content > ol { max-width: var(--measure); }
.entry-content h2 { margin-top: 1.6em; }
article.post { background: #fff; border: 1px solid var(--line); padding: 1.6rem; margin-bottom: 1.4rem; border-radius: 4px; }
article.post h2 { margin-bottom: .3rem; }
article.post .meta { color: var(--muted); font-size: .9rem; }
.pagination { display: flex; gap: .6rem; margin-top: 1.5rem; }

/* Pie */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 2.2rem 0; color: var(--muted); font-size: .92rem; }
.site-footer .container { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { font-family: var(--sans); font-size: .95rem; color: var(--text); margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--lacre); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; font-size: .85rem; }

@media (max-width: 900px) {
	.hero .container { grid-template-columns: 1fr; }
	.seal { width: min(100%, 240px); order: -1; }
	.steps { grid-template-columns: 1fr 1fr; }
	.site-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.steps, .levels, .legal-grid, .site-footer .container { grid-template-columns: 1fr; }
	.menu-toggle { display: inline-block; }
	.main-nav { display: none; width: 100%; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0 1rem; }
	.main-nav li { border-top: 1px solid var(--line); }
	.main-nav a { display: block; padding: .8rem 0; }
	.main-nav .btn-nav a { display: inline-block; margin-top: .6rem; }
	.site-header .container { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
