/**
 * Base layout — Ecuanegos Theme
 * Reset ligero + contenedor. Tipografía y colores de marca los aporta GAD Core.
 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    color: var(--gad-text, #1f2937);
    background: #fff;
    line-height: 1.6;
}

img,
svg,
video,
iframe {
    max-width: 100%;
    height: auto;
}

a,
a:hover,
a:focus,
a:active {
    color: inherit;
    text-decoration: none;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #fff;
    clip: auto !important;
    clip-path: none;
    color: #1f2937;
    display: block;
    font-size: 14px;
    height: auto;
    left: 8px;
    line-height: normal;
    padding: 12px 16px;
    text-decoration: none;
    top: 8px;
    width: auto;
    z-index: 100000;
}

.ecu-site-main,
.site-main {
    width: 100%;
    margin: 0;
    padding: 0;
}

.ecu-content-wrap {
    width: min(100% - 40px, var(--ecu-content-width, 1140px));
    margin-inline: auto;
}

.ecu-entry {
    padding: 48px 0 72px;
}

.ecu-entry__title {
    margin: 0 0 20px;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 1.25;
    color: var(--gad-primary, #0a4f9d);
}

.ecu-entry__meta {
    margin: 0 0 24px;
    font-size: 0.875rem;
    color: #64748b;
}

.ecu-entry__content > *:first-child {
    margin-top: 0;
}

.ecu-entry__content > *:last-child {
    margin-bottom: 0;
}

.ecu-posts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 28px;
}

.ecu-post-card__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.ecu-post-card__title a {
    text-decoration: none;
}

.ecu-post-card__title a:hover {
    color: var(--gad-primary, #0a4f9d);
}

.ecu-post-card__excerpt {
    margin: 0;
    color: #475569;
}

.ecu-pagination {
    margin-top: 40px;
}

.ecu-404,
.ecu-empty {
    padding: 80px 20px 100px;
    text-align: center;
}

.ecu-404__title,
.ecu-empty__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--gad-primary, #0a4f9d);
}

.ecu-404__text,
.ecu-empty__text {
    margin: 0 auto 28px;
    max-width: 36rem;
    color: #475569;
}

.ecu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    border: 0;
    background: var(--gad-primary, #0a4f9d);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    cursor: pointer;
}

.ecu-btn:hover,
.ecu-btn:focus-visible {
    background: var(--gad-secondary, #f8af35);
    color: #fff !important;
    outline: none;
}

.ecu-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 420px;
    margin: 0 auto;
}

.ecu-search-form input[type="search"] {
    flex: 1 1 200px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--gad-border, #d8dee8);
    border-radius: 8px;
    font: inherit;
}

.alignwide {
    max-width: min(100%, 1280px);
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
