:root {
    --aw-blue-950: #03273a;
    --aw-blue-900: #053048;
    --aw-blue-850: #084766;
    --aw-blue-800: #0e76bc;
    --aw-blue-700: #1498db;
    --aw-cyan-600: #12a8c7;
    --aw-cyan-500: #17b7c9;
    --aw-cyan-400: #22c7d6;
    --aw-green-600: #018e80;
    --aw-green-500: #0aa392;

    --aw-text-950: #112531;
    --aw-text-900: #183545;
    --aw-text-800: #26495b;
    --aw-text-700: #3e6273;
    --aw-text-600: #5a7988;
    --aw-text-500: #708b98;
    --aw-text-400: #90a7b2;

    --aw-white: #ffffff;
    --aw-bg-page: #f4fbff;
    --aw-bg-soft: #f7fcff;
    --aw-bg-card: #ffffff;
    --aw-bg-glass: rgba(255, 255, 255, 0.82);
    --aw-bg-muted: #eef7fb;
    --aw-bg-chip: #f2f9fc;
    --aw-bg-warning: #fff8e9;

    --aw-line-1: rgba(5, 48, 72, 0.08);
    --aw-line-2: rgba(14, 118, 188, 0.12);
    --aw-line-3: rgba(20, 152, 219, 0.18);
    --aw-line-4: rgba(20, 152, 219, 0.28);

    --aw-shadow-xs: 0 6px 18px rgba(5, 48, 72, 0.04);
    --aw-shadow-sm: 0 12px 28px rgba(5, 48, 72, 0.06);
    --aw-shadow-md: 0 18px 42px rgba(5, 48, 72, 0.09);
    --aw-shadow-lg: 0 26px 60px rgba(5, 48, 72, 0.13);
    --aw-shadow-xl: 0 34px 80px rgba(5, 48, 72, 0.18);

    --aw-radius-xs: 12px;
    --aw-radius-sm: 16px;
    --aw-radius-md: 20px;
    --aw-radius-lg: 26px;
    --aw-radius-xl: 32px;
    --aw-radius-pill: 999px;

    --aw-gradient-page:
        radial-gradient(circle at 10% 0%, rgba(34, 199, 214, 0.08) 0%, transparent 24%),
        radial-gradient(circle at 100% 0%, rgba(20, 152, 219, 0.08) 0%, transparent 30%),
        linear-gradient(180deg, #f8fdff 0%, #f2f9fd 100%);

    --aw-gradient-hero: linear-gradient(135deg, #f7fdff 0%, #edf8ff 46%, #f4fffd 100%);
    --aw-gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
    --aw-gradient-button: linear-gradient(135deg, #0e76bc 0%, #1498db 45%, #22c7d6 100%);
    --aw-gradient-button-dark: linear-gradient(135deg, #053048 0%, #0b5d8e 100%);
    --aw-gradient-chip: linear-gradient(180deg, #ffffff 0%, #f2f9fc 100%);
    --aw-gradient-soft: linear-gradient(135deg, rgba(14, 118, 188, .08) 0%, rgba(17, 195, 211, .08) 100%);

    --aw-ease: cubic-bezier(.22, .61, .36, 1);
    --aw-fast: 180ms;
    --aw-base: 260ms;
    --aw-slow: 420ms;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--aw-bg-page);
    color: var(--aw-text-900);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.aw-modal-open {
    overflow: hidden;
}

.page-title-resoluciones {
    position: relative;
    padding: 54px 0 34px;
    background: var(--aw-gradient-hero);
    border-bottom: 1px solid var(--aw-line-2);
    overflow: hidden;
    isolation: isolate;
}

.page-title-resoluciones::before,
.page-title-resoluciones::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
    opacity: .65;
}

.page-title-resoluciones::before {
    width: 360px;
    height: 360px;
    top: -120px;
    right: -40px;
    background: radial-gradient(circle, rgba(34, 199, 214, .18) 0%, rgba(34, 199, 214, 0) 72%);
    animation: awFloatSlow 13s ease-in-out infinite;
}

.page-title-resoluciones::after {
    width: 280px;
    height: 280px;
    left: -70px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(20, 152, 219, .15) 0%, rgba(20, 152, 219, 0) 72%);
    animation: awFloatSlow 11s ease-in-out infinite reverse;
}

.page-title-flex {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
}

.page-title-copy {
    position: relative;
}

.page-title-copy::after {
    content: "AT WATER";
    position: absolute;
    right: 0;
    top: -8px;
    font-size: clamp(42px, 7vw, 96px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: .14em;
    color: rgba(14, 118, 188, 0.045);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.page-title-copy h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 38px);
    line-height: 1.08;
    letter-spacing: -.03em;
    font-weight: 900;
    color: var(--aw-text-950);
}

.page-title-copy > span {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 900px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--aw-text-600);
}

.page-title-summary {
    position: relative;
    z-index: 1;
    max-width: 940px;
    margin-top: 8px;
}

.page-title-summary p {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--aw-text-700);
}

.page-title-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb li,
.breadcrumb li a {
    color: var(--aw-text-500);
    font-size: 13px;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--aw-text-400);
}

.content-resoluciones {
    position: relative;
    background: var(--aw-gradient-page);
    overflow: hidden;
}

.content-resoluciones::before {
    content: "AT WATER";
    position: absolute;
    right: -56px;
    bottom: 130px;
    transform: rotate(-90deg);
    font-size: clamp(48px, 6vw, 94px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: .18em;
    color: rgba(14, 118, 188, 0.035);
    pointer-events: none;
    user-select: none;
}

.aw-switch {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 18px;
    cursor: pointer;
    user-select: none;
}

.aw-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.aw-switch__control {
    position: relative;
    flex: 0 0 54px;
    width: 54px;
    height: 30px;
    border-radius: 999px;
    background: linear-gradient(180deg, #dfeaf0 0%, #d3e2ea 100%);
    border: 1px solid rgba(20, 152, 219, 0.18);
    box-shadow:
        inset 0 2px 5px rgba(5, 48, 72, 0.08),
        0 4px 10px rgba(5, 48, 72, 0.04);
    transition:
        background 260ms cubic-bezier(.22, .61, .36, 1),
        border-color 260ms cubic-bezier(.22, .61, .36, 1),
        box-shadow 260ms cubic-bezier(.22, .61, .36, 1),
        transform 260ms cubic-bezier(.22, .61, .36, 1);
}

.aw-switch__control::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
    box-shadow:
        0 6px 12px rgba(5, 48, 72, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition:
        transform 260ms cubic-bezier(.22, .61, .36, 1),
        background 260ms cubic-bezier(.22, .61, .36, 1),
        box-shadow 260ms cubic-bezier(.22, .61, .36, 1);
}

.aw-switch__label {
    display: block;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--aw-text-700);
    padding-top: 2px;
}

.aw-switch:hover .aw-switch__control {
    border-color: rgba(20, 152, 219, 0.28);
    box-shadow:
        inset 0 2px 5px rgba(5, 48, 72, 0.08),
        0 8px 18px rgba(20, 152, 219, 0.08);
}

.aw-switch input[type="checkbox"]:checked + .aw-switch__control {
    background: linear-gradient(135deg, #0e76bc 0%, #1498db 45%, #22c7d6 100%);
    border-color: rgba(20, 152, 219, 0.42);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 10px 22px rgba(20, 152, 219, 0.22);
}

.aw-switch input[type="checkbox"]:checked + .aw-switch__control::before {
    transform: translateX(24px);
    background: linear-gradient(180deg, #ffffff 0%, #f7ffff 100%);
    box-shadow:
        0 8px 16px rgba(5, 48, 72, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.aw-switch input[type="checkbox"]:focus-visible + .aw-switch__control {
    box-shadow:
        0 0 0 4px rgba(20, 152, 219, 0.14),
        inset 0 2px 5px rgba(5, 48, 72, 0.08);
}

.aw-switch input[type="checkbox"]:checked ~ .aw-switch__label {
    color: var(--aw-text-900);
}

.resoluciones-hero,
.resoluciones-toolbar,
.doc-card,
.meta-card,
.empty-state,
.loading-state,
.access-card,
.aw-modal__dialog {
    position: relative;
    overflow: hidden;
}

.resoluciones-hero::before,
.resoluciones-toolbar::before,
.doc-card::before,
.meta-card::before,
.empty-state::before,
.loading-state::before,
.access-card::before,
.aw-modal__dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.resoluciones-hero {
    display: flex;
    justify-content: space-between;
    gap: 26px;
    padding: 30px;
    border-radius: var(--aw-radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, .97) 0%, rgba(248, 252, 255, .95) 100%);
    border: 1px solid var(--aw-line-1);
    box-shadow: var(--aw-shadow-md);
    margin-bottom: 24px;
    transition: transform var(--aw-base) var(--aw-ease), box-shadow var(--aw-base) var(--aw-ease), border-color var(--aw-base) var(--aw-ease);
}

.resoluciones-hero:hover {
    transform: translateY(-3px);
    box-shadow: var(--aw-shadow-lg);
    border-color: var(--aw-line-3);
}

.resoluciones-hero::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -60px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(17, 195, 211, .14) 0%, rgba(17, 195, 211, 0) 72%);
    pointer-events: none;
    animation: awPulseDrift 9s ease-in-out infinite;
}

.resoluciones-eyebrow,
.aw-modal__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin-bottom: 14px;
    border-radius: var(--aw-radius-pill);
    background: rgba(1, 142, 128, 0.08);
    color: #0a9b8d;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(1, 142, 128, 0.09);
}

.resoluciones-eyebrow::before,
.aw-modal__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 7px rgba(1, 142, 128, 0.09);
    animation: awSoftBlink 2.8s ease-in-out infinite;
}

.resoluciones-hero__copy h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3.4vw, 34px);
    line-height: 1.12;
    letter-spacing: -.03em;
    font-weight: 900;
    color: var(--aw-text-950);
}

.resoluciones-hero__copy p {
    margin: 0;
    max-width: 760px;
    font-size: 16px;
    line-height: 1.78;
    color: var(--aw-text-700);
}

.resoluciones-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 280px;
    max-width: 320px;
}

.meta-card {
    padding: 20px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
    border: 1px solid var(--aw-line-2);
    box-shadow: var(--aw-shadow-xs);
    transition: transform var(--aw-base) var(--aw-ease), box-shadow var(--aw-base) var(--aw-ease), border-color var(--aw-base) var(--aw-ease);
}

.meta-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--aw-shadow-sm);
    border-color: var(--aw-line-3);
}

.meta-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    color: var(--aw-text-900);
}

.meta-card span {
    display: block;
    font-size: 14px;
    line-height: 1.65;
    color: var(--aw-text-600);
}

.resoluciones-toolbar {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(14px);
    border: 1px solid var(--aw-line-1);
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: var(--aw-shadow-sm);
    transition: transform var(--aw-base) var(--aw-ease), box-shadow var(--aw-base) var(--aw-ease), border-color var(--aw-base) var(--aw-ease);
}

.resoluciones-toolbar:hover {
    transform: translateY(-2px);
    box-shadow: var(--aw-shadow-md);
    border-color: var(--aw-line-2);
}

.search-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
}

.search-input-wrap i.fa-search {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--aw-text-500);
    z-index: 3;
    transition: color var(--aw-base) var(--aw-ease), transform var(--aw-base) var(--aw-ease);
}

#search-input {
    width: 100%;
    height: 58px;
    padding: 0 54px 0 50px;
    border-radius: 18px;
    border: 1px solid var(--aw-line-3);
    background: linear-gradient(180deg, rgba(255, 255, 255, .97) 0%, rgba(247, 252, 255, .97) 100%);
    color: var(--aw-text-950);
    font-size: 15px;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
    transition: border-color var(--aw-base) var(--aw-ease), box-shadow var(--aw-base) var(--aw-ease), transform var(--aw-base) var(--aw-ease), background var(--aw-base) var(--aw-ease);
}

#search-input::placeholder {
    color: var(--aw-text-500);
    font-weight: 500;
}

#search-input:hover {
    border-color: var(--aw-line-4);
}

#search-input:focus {
    border-color: var(--aw-blue-700);
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        0 0 0 4px rgba(20, 152, 219, 0.11),
        0 12px 24px rgba(20, 152, 219, 0.09);
}

.search-input-wrap:focus-within i.fa-search {
    color: var(--aw-blue-800);
    transform: translateY(-50%) scale(1.08);
}

.clear-search-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--aw-text-500);
    display: none;
    z-index: 3;
    transition: background var(--aw-fast) ease, color var(--aw-fast) ease, transform var(--aw-fast) ease;
}

.clear-search-btn:hover {
    background: rgba(20, 152, 219, 0.10);
    color: var(--aw-text-900);
    transform: translateY(-50%) scale(1.08);
}

.btn,
button,
.btn-search,
.btn-primary,
.btn-success,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-default {
    transition:
        transform var(--aw-base) var(--aw-ease),
        box-shadow var(--aw-base) var(--aw-ease),
        background-color var(--aw-base) var(--aw-ease),
        border-color var(--aw-base) var(--aw-ease),
        color var(--aw-base) var(--aw-ease),
        opacity var(--aw-base) var(--aw-ease),
        filter var(--aw-base) var(--aw-ease);
}

.btn:focus,
button:focus,
a:focus,
input:focus,
iframe:focus {
    outline: none;
}

.btn-search {
    min-width: 200px;
    height: 58px;
    padding: 0 24px;
    border: 0;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .03em;
    color: #ffffff;
    background: var(--aw-gradient-button);
    box-shadow: 0 14px 28px rgba(20, 152, 219, 0.24);
    overflow: hidden;
    position: relative;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(20, 152, 219, 0.30);
    filter: saturate(1.04);
}

.btn-search:active {
    transform: translateY(0);
}

.btn-primary,
.btn-success {
    position: relative;
    overflow: hidden;
    border: 0;
    color: #ffffff;
    background: var(--aw-gradient-button);
    box-shadow: 0 12px 24px rgba(20, 152, 219, 0.22);
}

.btn-primary:hover,
.btn-success:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(20, 152, 219, 0.28);
}

.btn-primary::after,
.btn-success::after,
.btn-search::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .24) 45%, transparent 100%);
    transform: translateX(-120%);
    transition: transform .75s ease;
    pointer-events: none;
}

.btn-primary:hover::after,
.btn-success:hover::after,
.btn-search:hover::after {
    transform: translateX(120%);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-default {
    background: rgba(255, 255, 255, .84);
    border: 1px solid var(--aw-line-3);
    color: var(--aw-blue-900);
    box-shadow: 0 8px 18px rgba(5, 48, 72, 0.05);
    font-weight: 800;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-default:hover {
    background: #f2f9fd;
    border-color: var(--aw-line-4);
    color: var(--aw-text-950);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(5, 48, 72, 0.08);
}

.resoluciones-toolbar__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

.results-info {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--aw-text-600);
}

.resoluciones-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: var(--aw-radius-pill);
    background: var(--aw-gradient-chip);
    border: 1px solid var(--aw-line-2);
    color: var(--aw-text-800);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(5, 48, 72, .04);
    cursor: pointer;
    transition: transform var(--aw-base) var(--aw-ease), box-shadow var(--aw-base) var(--aw-ease), border-color var(--aw-base) var(--aw-ease), color var(--aw-base) var(--aw-ease), background var(--aw-base) var(--aw-ease);
}

.tag-item:hover,
.tag-item.is-active,
.tag-item.active {
    transform: translateY(-2px);
    border-color: rgba(20, 152, 219, 0.26);
    color: var(--aw-text-950);
    background: linear-gradient(180deg, #ffffff 0%, #ecf8fd 100%);
    box-shadow: var(--aw-shadow-sm);
}

.resoluciones-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.doc-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 24px;
    background: var(--aw-gradient-card);
    border: 1px solid var(--aw-line-1);
    box-shadow: var(--aw-shadow-sm);
    transition: transform var(--aw-base) var(--aw-ease), box-shadow var(--aw-base) var(--aw-ease), border-color var(--aw-base) var(--aw-ease);
}

.doc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--aw-shadow-lg);
    border-color: var(--aw-line-3);
}

.doc-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 199, 214, .10) 0%, rgba(34, 199, 214, 0) 72%);
    pointer-events: none;
    opacity: .65;
    transition: transform var(--aw-slow) var(--aw-ease), opacity var(--aw-slow) var(--aw-ease);
}

.doc-card:hover::after {
    transform: scale(1.16);
    opacity: 1;
}

.doc-card__media {
    position: relative;
    min-height: 246px;
    padding: 18px;
    background: linear-gradient(135deg, #eef8ff 0%, #f5fffd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.doc-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, 0) 40%),
        radial-gradient(circle at top right, rgba(34, 199, 214, .12) 0%, transparent 35%);
    pointer-events: none;
}

.doc-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    background: #edf7fc;
    border: 1px solid rgba(20, 152, 219, 0.10);
    box-shadow: 0 12px 26px rgba(5, 48, 72, .08);
    transition: transform var(--aw-slow) var(--aw-ease), filter var(--aw-slow) var(--aw-ease), box-shadow var(--aw-slow) var(--aw-ease);
}

.doc-card:hover .doc-thumb {
    transform: scale(1.03);
    filter: saturate(1.03) contrast(1.02);
    box-shadow: 0 18px 34px rgba(5, 48, 72, .12);
}

.doc-card__media-overlay {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--aw-radius-pill);
    background: rgba(5, 48, 72, 0.80);
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
    transition: transform var(--aw-base) var(--aw-ease), background var(--aw-base) var(--aw-ease), opacity var(--aw-base) var(--aw-ease);
}

.doc-card:hover .doc-card__media-overlay {
    transform: translateY(-2px);
    background: rgba(5, 48, 72, 0.90);
}

.doc-video-thumb {
    position: relative;
    width: 100%;
}

.doc-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-video-play i {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    background: rgba(5, 48, 72, 0.80);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
    animation: awPlayPulse 3.2s ease-in-out infinite;
    transition: transform var(--aw-base) var(--aw-ease), background var(--aw-base) var(--aw-ease), box-shadow var(--aw-base) var(--aw-ease);
}

.doc-card:hover .doc-video-play i {
    transform: scale(1.08);
    background: rgba(14, 118, 188, 0.88);
}

.doc-file-placeholder {
    width: 100%;
    min-height: 220px;
    border-radius: 18px;
    border: 1px dashed rgba(20, 152, 219, 0.26);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
    transition: border-color var(--aw-base) var(--aw-ease), transform var(--aw-base) var(--aw-ease);
}

.doc-card:hover .doc-file-placeholder {
    border-color: rgba(20, 152, 219, 0.34);
    transform: translateY(-1px);
}

.doc-file-placeholder__icon {
    font-size: 44px;
    color: var(--aw-blue-800);
    animation: awFloatSlow 5.6s ease-in-out infinite;
}

.doc-file-placeholder__label {
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--aw-text-900);
}

.doc-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: var(--aw-radius-pill);
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
    box-shadow: 0 8px 16px rgba(5, 48, 72, .08);
    backdrop-filter: blur(8px);
}

.doc-badge--pdf {
    background: rgba(231, 76, 60, 0.12);
    color: #d83c2d;
}

.doc-badge--img {
    background: rgba(1, 142, 128, 0.12);
    color: #018e80;
}

.doc-badge--mp4 {
    background: rgba(21, 101, 192, 0.12);
    color: #1565c0;
}

.doc-badge--file {
    background: rgba(90, 121, 136, 0.14);
    color: #4d6674;
}

.doc-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 20px 18px;
}

.doc-card__title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -.02em;
    font-weight: 900;
    color: var(--aw-text-950);
    word-break: break-word;
}

.doc-card__text {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--aw-text-600);
}

.doc-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.doc-card__actions .btn {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .02em;
}

.empty-state,
.loading-state {
    margin-top: 10px;
    padding: 60px 28px;
    text-align: center;
    background: rgba(255, 255, 255, .95);
    border: 1px dashed rgba(20, 152, 219, 0.25);
    border-radius: 24px;
    box-shadow: var(--aw-shadow-xs);
    backdrop-filter: blur(8px);
}

.empty-state__icon,
.loading-state .spinner-border {
    margin-bottom: 16px;
}

.empty-state__icon i {
    font-size: 44px;
    color: var(--aw-blue-700);
    animation: awFloatSlow 5s ease-in-out infinite;
}

.empty-state h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.02em;
    color: var(--aw-text-950);
}

.empty-state p,
.loading-state p {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--aw-text-600);
}

.pagination-wrap,
.show-more-wrap {
    margin-top: 24px;
}

.access-card {
    padding: 42px 24px;
    border-radius: 26px;
    background: linear-gradient(180deg, #fffdf6 0%, #fff8e9 100%) !important;
    border: 1px solid rgba(211, 158, 0, 0.28) !important;
    box-shadow: var(--aw-shadow-md);
}

.access-card__icon {
    font-size: 40px;
    color: #c99100;
    margin-bottom: 14px;
    animation: awSoftBlink 2.7s ease-in-out infinite;
}

.access-card__meta li {
    margin-bottom: 6px;
    color: #6e5a24;
}

.access-card__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.aw-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.aw-modal.is-active {
    display: block;
    animation: awModalFade .28s ease forwards;
}

.aw-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 25, 38, 0.74);
    backdrop-filter: blur(10px);
}

.aw-modal__dialog {
    position: relative;
    width: min(1080px, calc(100% - 32px));
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: var(--aw-shadow-xl);
    animation: awModalUp .34s var(--aw-ease) forwards;
}

.aw-modal__dialog--xl {
    width: min(96vw, 1320px);
    max-width: 1320px;
}

.aw-modal--sm .aw-modal__dialog {
    width: min(620px, calc(100% - 32px));
}

.aw-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 18px;
    border-bottom: 1px solid var(--aw-line-1);
    background: linear-gradient(180deg, #fcfeff 0%, #f4fbff 100%);
}

.aw-modal__title-wrap {
    flex: 1;
    min-width: 0;
}

.aw-modal__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: -.02em;
    color: var(--aw-text-950);
    word-break: break-word;
}

.aw-modal__header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aw-icon-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--aw-line-2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    color: var(--aw-text-900);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(5, 48, 72, .05);
}

.aw-icon-btn:hover {
    background: #f2f9fd;
    border-color: var(--aw-line-4);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(5, 48, 72, .10);
}

.aw-modal__body {
    overflow: auto;
    padding: 0;
    background:
        radial-gradient(circle at top right, rgba(34, 199, 214, .08), transparent 24%),
        #f7fbfe;
}

.aw-modal__media {
    min-height: 72vh;
    height: 72vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: linear-gradient(180deg, #f8fcff 0%, #f3fbff 100%);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    padding: 24px;
}

.aw-modal__image,
.aw-modal__video,
.aw-modal__iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 22px 50px rgba(5, 48, 72, 0.14);
}

.aw-modal__image {
    object-fit: contain;
    background: #f7fbff;
}

.aw-modal__video {
    background: #000;
}

.aw-modal__iframe {
    min-height: 100%;
}

.aw-modal__iframe--pdf {
    background: #eef4f9;
}

.aw-pdf-preview-wrap,
.aw-file-preview-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.aw-file-preview-fallback {
    width: 100%;
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    background: linear-gradient(180deg, #f9fdff 0%, #f3fbf8 100%);
}

.aw-file-preview-fallback__icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: rgba(20, 152, 219, 0.12);
    color: #0e76bc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 18px;
}

.aw-file-preview-fallback h4 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: #053048;
}

.aw-file-preview-fallback p {
    max-width: 720px;
    margin: 0 0 22px;
    color: #4b6475;
    line-height: 1.6;
}

.aw-file-preview-fallback__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.aw-modal__footer {
    padding: 16px 20px 18px;
    border-top: 1px solid var(--aw-line-1);
    background: #ffffff;
}

.aw-modal__footer--actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.aw-modal__message {
    margin: 0;
    font-size: 15px;
    line-height: 1.78;
    color: var(--aw-text-700);
}

.aw-download-box {
    padding: 4px 0;
}

.aw-download-copy {
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 900;
    color: var(--aw-text-900);
}

.aw-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    color: var(--aw-text-700);
    font-size: 14px;
    line-height: 1.75;
    font-weight: 700;
}

.aw-check input[type="checkbox"] {
    margin-top: 4px;
    transform: scale(1.08);
    accent-color: var(--aw-cyan-500);
}

.spinner-border {
    color: var(--aw-blue-800);
}

.text-muted {
    color: var(--aw-text-500) !important;
}

.small,
small {
    color: var(--aw-text-500);
}

.badge-light {
    background: rgba(14, 118, 188, 0.08);
    color: var(--aw-text-800);
}

.card,
.border,
.border-top,
.border-right,
.border-bottom,
.border-left {
    border-color: var(--aw-line-1) !important;
}

.form-control,
.custom-select,
.form-select {
    border-color: var(--aw-line-2);
    color: var(--aw-text-900);
}

.form-control:focus,
.custom-select:focus,
.form-select:focus {
    border-color: var(--aw-blue-700);
    box-shadow: 0 0 0 4px rgba(20, 152, 219, 0.10);
}

.table {
    color: var(--aw-text-800);
}

.table th {
    color: var(--aw-text-900);
    font-weight: 800;
}

.table td {
    color: var(--aw-text-700);
}

.fade-in-up {
    animation: awFadeUp .55s var(--aw-ease) both;
}

.stagger-1 { animation-delay: .04s; }
.stagger-2 { animation-delay: .08s; }
.stagger-3 { animation-delay: .12s; }
.stagger-4 { animation-delay: .16s; }
.stagger-5 { animation-delay: .20s; }

@keyframes awFloatSlow {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -8px, 0); }
}

@keyframes awPulseDrift {
    0%, 100% {
        transform: scale(1) translate3d(0, 0, 0);
        opacity: .55;
    }
    50% {
        transform: scale(1.08) translate3d(-8px, 8px, 0);
        opacity: .82;
    }
}

@keyframes awSoftBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .72;
        transform: scale(.96);
    }
}

@keyframes awPlayPulse {
    0%, 100% {
        box-shadow: 0 16px 34px rgba(0, 0, 0, .22), 0 0 0 0 rgba(20, 152, 219, 0);
    }
    50% {
        box-shadow: 0 16px 34px rgba(0, 0, 0, .22), 0 0 0 12px rgba(20, 152, 219, .10);
    }
}

@keyframes awModalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes awModalUp {
    from {
        transform: translateY(18px) scale(.985);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes awFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1199px) {
    .resoluciones-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .page-title-copy::after {
        font-size: clamp(30px, 8vw, 64px);
        top: 8px;
    }

    .resoluciones-hero {
        flex-direction: column;
    }

    .resoluciones-hero__meta {
        min-width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-search {
        width: 100%;
        min-width: 100%;
    }

    .aw-modal__dialog--xl {
        width: min(98vw, 98vw);
        margin: 10px auto;
    }

    .aw-modal__media {
        min-height: 68vh;
        height: 68vh;
    }
}

@media (max-width: 767px) {
    .aw-switch {
        gap: 12px;
        align-items: flex-start;
    }

    .aw-switch__control {
        flex: 0 0 50px;
        width: 50px;
        height: 28px;
    }

    .aw-switch__control::before {
        width: 20px;
        height: 20px;
    }

    .aw-switch input[type="checkbox"]:checked + .aw-switch__control::before {
        transform: translateX(22px);
    }

    .aw-switch__label {
        font-size: 13px;
        line-height: 1.65;
    }

    .page-title-resoluciones {
        padding: 42px 0 28px;
    }

    .page-title-copy h1 {
        font-size: 28px;
    }

    .page-title-copy > span,
    .page-title-summary p {
        font-size: 15px;
        line-height: 1.72;
    }

    .resoluciones-hero {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .resoluciones-hero__copy h2 {
        font-size: 24px;
    }

    .resoluciones-hero__meta {
        grid-template-columns: 1fr;
    }

    .resoluciones-toolbar {
        padding: 16px;
        border-radius: 20px;
    }

    .resoluciones-toolbar__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .resoluciones-tags {
        gap: 8px;
    }

    .tag-item {
        min-height: 38px;
        padding: 8px 14px;
        font-size: 12px;
    }

    .resoluciones-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .doc-card__media {
        min-height: 220px;
        padding: 14px;
    }

    .doc-thumb,
    .doc-file-placeholder {
        height: 200px;
        min-height: 200px;
    }

    .doc-card__body {
        padding: 18px 16px 16px;
    }

    .doc-card__title {
        font-size: 17px;
    }

    .aw-modal__dialog {
        width: calc(100% - 14px);
        max-height: calc(100vh - 14px);
        margin: 7px auto;
        border-radius: 20px;
    }

    .aw-modal__header,
    .aw-modal__footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .aw-modal__media {
        padding: 14px;
        min-height: 60vh;
        height: 60vh;
    }

    .aw-modal__title {
        font-size: 18px;
    }

    .aw-file-preview-fallback {
        padding: 22px;
    }

    .aw-file-preview-fallback h4 {
        font-size: 18px;
    }

    .aw-file-preview-fallback p {
        font-size: 14px;
    }

    .content-resoluciones::before {
        font-size: 48px;
        right: -44px;
        bottom: 70px;
    }
}

@media (max-width: 480px) {
    .page-title-copy::after {
        display: none;
    }

    #search-input {
        height: 54px;
        font-size: 14px;
    }

    .btn-search {
        height: 54px;
        font-size: 13px;
    }

    .doc-card__actions {
        flex-direction: column;
    }

    .doc-card__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .aw-modal__footer--actions {
        flex-direction: column;
    }

    .aw-modal__footer--actions .btn,
    .aw-file-preview-fallback__actions .btn,
    .aw-file-preview-fallback__actions a.btn {
        width: 100%;
    }

    .aw-modal__header-actions {
        gap: 6px;
    }

    .aw-icon-btn {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}