/* =========================================================
   MESA DE PARTES VIRTUAL - MUNICIPALIDAD DISTRITAL DE COISHCO
   Rediseño visual: azul institucional, celeste y bloques claros.
   No modifica funciones, enlaces, identificadores ni HTML.
   ========================================================= */

:root {
    --blue-950: #102A43;
    --blue-900: #123F6B;
    --blue-800: #185A9D;
    --blue-700: #1769AA;
    --blue-600: #52baff;
    --blue-100: #DCEFFA;
    --blue-50: #F2F8FC;
    --ink: #5faaff;
    --muted: #efefef;
    --line: #D7E4EE;
    --white: #FFFFFF;
    --shadow: 0 18px 48px rgba(18, 63, 107, .12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1160px, calc(100% - 44px));
    margin: 0 auto;
}

/* ENCABEZADO */
.site-header {
    position: relative;
    z-index: 5;
    color: var(--white);
    background: var(--blue-900);
    border-bottom: 1px solid var(--blue-800);
    box-shadow: 0 4px 16px rgba(16, 42, 67, .14);
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.brand-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--blue-800);
    background: var(--blue-50);
    font-weight: 800;
    font-size: 12px;
    line-height: 1.1;
}

.brand-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-logo small {
    font-size: 7px;
    letter-spacing: .8px;
    margin-top: 4px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-copy strong {
    color: var(--white);
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: .025em;
}

.brand-copy span {
    color: #D9EAF7;
    font-size: 13px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 15px;
    font-weight: 650;
}

.main-nav a {
    transition: color .2s ease, background .2s ease;
}

.main-nav a:hover {
    color: #BFE7FF;
}

.main-nav .nav-admin {
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 9px;
    color: var(--white);
    background: rgba(255, 255, 255, .09);
}

.main-nav .nav-admin:hover {
    color: var(--blue-950);
    background: var(--white);
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    border-radius: 8px;
    padding: 8px 11px;
    font-size: 20px;
    cursor: pointer;
}

/* BLOQUE PRINCIPAL */
.hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 76px;
    background: linear-gradient(115deg, #F7FBFE 0%, #EDF7FD 56%, #DCEFFA 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: clamp(38px, 6vw, 82px);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 620px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--blue-700);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.eyebrow-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    background: var(--blue-600);
    border-radius: 50%;
    vertical-align: 1px;
}

.hero h1 {
    max-width: 620px;
    margin: 0;
    color: var(--blue-950);
    font-size: clamp(42px, 5.3vw, 68px);
    line-height: 1.08;
    letter-spacing: -.04em;
    font-weight: 850;
}

.hero h1 span {
    color: var(--blue-600);
}

.hero-description {
    max-width: 560px;
    margin: 22px 0 27px;
    color: #40586D;
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 21px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--blue-800);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(24, 90, 157, .18);
}

.button-primary:hover {
    background: var(--blue-950);
    box-shadow: 0 12px 24px rgba(16, 42, 67, .2);
}

.button-secondary {
    border-color: #BBD5E8;
    color: var(--blue-900);
    background: rgba(255, 255, 255, .88);
}

.button-secondary:hover {
    background: var(--white);
    box-shadow: 0 7px 18px rgba(18, 63, 107, .08);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 23px;
    color: #062578;
    font-size: 14px;
    line-height: 1.6;
}

.note-icon {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    border-radius: 50%;
    color: var(--blue-800);
    background: #D5EBF9;
    font-size: 13px;
    font-weight: 800;
}

/* TARJETA INFORMATIVA DEL BLOQUE PRINCIPAL */
.hero-card {
    position: relative;
    padding: 30px 30px 22px;
    border: 1px solid #C7E2F3;
    border-radius: 22px;
    background: var(--blue-900);
    box-shadow: var(--shadow);
}

.card-symbol {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, .8);
}

.card-symbol svg {
    width: 88px;
    height: 88px;
}

.card-symbol svg path[stroke="#2d765a"] {
    stroke: var(--blue-700);
}

.card-symbol svg circle {
    fill: var(--blue-100);
    stroke: var(--blue-700);
}

.card-symbol svg path[stroke="#216548"] {
    stroke: var(--blue-800);
}

.card-kicker {
    margin: 21px 0 5px;
    color: #dbdcff;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .1em;
}

.hero-card h2 {
    margin: 0 0 20px;
    color: #92c8ff;
    font-size: 27px;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.benefit-list {
    display: grid;
    gap: 18px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.benefit-list li > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: var(--blue-100);
    color: var(--blue-900);
    font-size: 13px;
    font-weight: 850;
}

.benefit-list div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.benefit-list strong {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.45;
}

.benefit-list small {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 23px;
    padding-top: 16px;
    border-top: 1px solid #BBD8EA;
    color: #becbd5;
    font-size: 13px;
    line-height: 1.6;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    background: #23845B;
    border-radius: 50%;
}

.hero-decoration {
    position: absolute;
    border: 1px solid rgba(35, 131, 196, .13);
    border-radius: 50%;
    pointer-events: none;
}

.decoration-one {
    width: 340px;
    height: 340px;
    top: -220px;
    right: -60px;
}

.decoration-two {
    width: 440px;
    height: 440px;
    bottom: -360px;
    left: 37%;
}

/* SECCIÓN DE PASOS */
.steps-section {
    padding: 78px 0 82px;
    background: var(--white);
}

.section-heading {
    max-width: 680px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-heading .eyebrow {
    margin-bottom: 10px;
}

.section-heading h2 {
    margin: 0;
    color: var(--blue-950);
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.22;
    letter-spacing: -.03em;
}

.section-heading > p:last-child {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* Alternancia de bloques blancos y celestes */
.step-card {
    min-width: 0;
    padding: 26px 23px 25px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #8be0ff;
    box-shadow: 0 5px 18px rgba(16, 42, 67, .035);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.step-card:nth-child(even) {
    background: #8be0ff;
    border-color: #C5E1F2;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: #AFCFE5;
    box-shadow: 0 14px 32px rgba(18, 63, 107, .09);
}

.step-icon {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    margin-bottom: 19px;
    border-radius: 14px;
    background: var(--blue-100);
    color: var(--blue-800);
    font-size: 25px;
    font-weight: 750;
}

.step-number {
    color: var(--blue-700);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .1em;
}

.step-card h3 {
    margin: 8px 0 9px;
    color: var(--blue-950);
    font-size: 18px;
    line-height: 1.45;
}

.step-card p {
    margin: 0;
    color: #185A9D;
    font-size: 15px;
    line-height: 1.75;
}

/* AVISO IMPORTANTE */
.important-notice {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    max-width: 900px;
    margin: 30px auto 0;
    padding: 19px 21px;
    border: 1px solid #C8E1F1;
    border-left: 5px solid var(--blue-600);
    border-radius: 12px;
    background: #EAF5FC;
}

.notice-icon {
    display: grid;
    place-items: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #D1E9F8;
    color: var(--blue-900);
    font-weight: 850;
    font-size: 14px;
}

.important-notice p {
    margin: 0;
    color: #40586D;
    font-size: 15px;
    line-height: 1.75;
}

.important-notice strong {
    color: var(--blue-950);
}

/* BLOQUE FINAL DE LLAMADA A LA ACCIÓN */
.bottom-cta {
    padding: 42px 0;
    color: var(--white);
    background: linear-gradient(115deg, #123F6B 0%, #185A9D 100%);
}

.bottom-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.eyebrow-light {
    margin-bottom: 8px;
    color: #D4ECFA;
}

.bottom-cta h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.25;
    letter-spacing: -.02em;
}

.bottom-cta p:not(.eyebrow) {
    margin: 10px 0 0;
    color: #E5F2FB;
    font-size: 16px;
    line-height: 1.7;
}

.button-light {
    flex: 0 0 auto;
    background: var(--white);
    color: var(--blue-900);
}

.button-light:hover {
    background: #EAF5FC;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

/* PIE DE PÁGINA */
.site-footer {
    padding: 22px 0;
    border-top: 1px solid #245985;
    background: #102A43;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.footer-inner p {
    margin: 0;
    color: #D9EAF7;
    font-size: 13px;
    line-height: 1.6;
}

/* ACCESIBILIDAD */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #57B4E5;
    outline-offset: 3px;
}

/* TABLET */
@media (max-width: 1000px) {
    .hero-grid {
        grid-template-columns: 1fr .9fr;
        gap: 30px;
    }

    .hero-card {
        padding: 25px 23px 20px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step-card {
        padding: 24px;
    }
}

/* MÓVIL */
@media (max-width: 680px) {
    .container {
        width: min(100% - 32px, 520px);
    }

    .header-inner {
        min-height: 76px;
        gap: 12px;
    }

    .brand {
        gap: 9px;
    }

    .brand-logo {
        width: 47px;
        height: 47px;
        flex-basis: 47px;
        border-radius: 10px;
    }

    .brand-copy strong {
        max-width: 220px;
        font-size: 11px;
        line-height: 1.4;
    }

    .brand-copy span {
        font-size: 11px;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 15px 20px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        color: var(--blue-950);
        border-bottom: 1px solid var(--line);
        background: var(--white);
        box-shadow: 0 12px 20px rgba(16, 42, 67, .08);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 9px 0;
        font-size: 15px;
    }

    .main-nav .nav-admin {
        padding: 11px 12px;
        color: var(--blue-900);
        border-color: #C8DCEB;
        background: #F5FAFE;
        text-align: center;
    }

    .hero {
        padding: 44px 0 49px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero h1 {
        font-size: clamp(38px, 10.5vw, 52px);
        line-height: 1.1;
    }

    .hero-description {
        margin: 17px 0 22px;
        font-size: 16px;
        line-height: 1.75;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
        min-height: 51px;
    }

    .hero-note {
        align-items: flex-start;
        font-size: 14px;
    }

    .hero-card {
        max-width: 480px;
        width: 100%;
        margin: 0 auto;
        padding: 24px 21px 20px;
        border-radius: 18px;
    }

    .hero-card h2 {
        font-size: 24px;
    }

    .benefit-list strong {
        font-size: 15px;
    }

    .benefit-list small {
        font-size: 13px;
    }

    .card-footer {
        align-items: flex-start;
        font-size: 12px;
    }

    .steps-section {
        padding: 57px 0 60px;
    }

    .section-heading {
        margin-bottom: 28px;
        text-align: left;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .section-heading > p:last-child {
        font-size: 16px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .step-card,
    .step-card:nth-child(even) {
        display: grid;
        grid-template-columns: 49px minmax(0, 1fr);
        column-gap: 14px;
        padding: 18px;
    }

    .step-card:nth-child(odd) {
        background: #59b7ff;
    }

    .step-card:nth-child(even) {
        background: #59b7ff;
    }

    .step-icon {
        grid-column: 1;
        grid-row: 1 / span 3;
        margin: 0;
    }

    .step-number {
        grid-column: 2;
        align-self: end;
        font-size: 11px;
    }

    .step-card h3 {
        grid-column: 2;
        margin: 4px 0;
        font-size: 17px;
    }

    .step-card p {
        grid-column: 2;
        font-size: 15px;
    }

    .important-notice {
        margin-top: 22px;
        padding: 16px;
        gap: 10px;
    }

    .important-notice p {
        font-size: 14px;
    }

    .bottom-cta {
        padding: 33px 0;
    }

    .bottom-cta-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 22px;
    }

    .bottom-cta h2 {
        font-size: 27px;
    }

    .bottom-cta p:not(.eyebrow) {
        font-size: 15px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 6px;
    }

    .footer-inner p {
        font-size: 12px;
    }
}

/* REDUCE ANIMACIONES SI EL USUARIO LO PREFIERE */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}


/* =========================================================
   AJUSTE GENERAL: ELEMENTOS UN POCO MÁS COMPACTOS
   ========================================================= */

/* Contenedor general */
.container {
    width: min(1100px, calc(100% - 44px));
}

/* ENCABEZADO */
.header-inner {
    min-height: 78px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
}

.brand-copy strong {
    font-size: 13px;
}

.brand-copy span {
    font-size: 12px;
}

.main-nav {
    gap: 21px;
    font-size: 14px;
}

/* BLOQUE PRINCIPAL */
.hero {
    padding: 58px 0 62px;
}

.hero-grid {
    gap: 55px;
}

.hero h1 {
    font-size: clamp(38px, 4.8vw, 60px);
}

.hero-description {
    font-size: 16px;
    margin: 18px 0 23px;
}

.button {
    min-height: 46px;
    padding: 11px 18px;
    font-size: 14px;
    gap: 10px;
}

.hero-note {
    font-size: 13px;
    margin-top: 18px;
}

/* TARJETA INFORMATIVA */
.hero-card {
    padding: 25px 25px 19px;
    border-radius: 18px;
}

.card-symbol {
    width: 82px;
    height: 82px;
    border-radius: 17px;
}

.card-symbol svg {
    width: 75px;
    height: 75px;
}

.card-kicker {
    margin-top: 17px;
    font-size: 11px;
}

.hero-card h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.benefit-list {
    gap: 14px;
}

.benefit-list li > span {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 12px;
}

.benefit-list strong {
    font-size: 14px;
}

.benefit-list small {
    font-size: 13px;
}

.card-footer {
    margin-top: 18px;
    padding-top: 13px;
    font-size: 12px;
}

/* SECCIÓN DE PASOS */
.steps-section {
    padding: 65px 0 68px;
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading h2 {
    font-size: clamp(27px, 2.8vw, 36px);
}

.section-heading > p:last-child {
    font-size: 15px;
}

.steps-grid {
    gap: 16px;
}

.step-card {
    padding: 22px 19px 21px;
    border-radius: 13px;
}

.step-icon {
    width: 43px;
    height: 43px;
    margin-bottom: 15px;
    border-radius: 12px;
    font-size: 22px;
}

.step-number {
    font-size: 11px;
}

.step-card h3 {
    font-size: 16px;
    margin: 7px 0;
}

.step-card p {
    font-size: 14px;
    line-height: 1.65;
}

/* AVISO IMPORTANTE */
.important-notice {
    max-width: 850px;
    margin-top: 25px;
    padding: 16px 18px;
    gap: 11px;
}

.notice-icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
    font-size: 13px;
}

.important-notice p {
    font-size: 14px;
}

/* BLOQUE FINAL */
.bottom-cta {
    padding: 35px 0;
}

.bottom-cta h2 {
    font-size: clamp(23px, 2.8vw, 30px);
}

.bottom-cta p:not(.eyebrow) {
    font-size: 14px;
}

/* PIE DE PÁGINA */
.site-footer {
    padding: 18px 0;
}

.footer-inner p {
    font-size: 12px;
}

/* TABLET */
@media (max-width: 1000px) {
    .hero-card {
        padding: 22px 20px 18px;
    }

    .step-card {
        padding: 20px;
    }
}

/* MÓVIL */
@media (max-width: 680px) {
    .header-inner {
        min-height: 70px;
    }

    .hero {
        padding: 38px 0 42px;
    }

    .hero h1 {
        font-size: clamp(34px, 9.5vw, 46px);
    }

    .hero-card {
        padding: 21px 18px;
    }

    .steps-section {
        padding: 48px 0 52px;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .step-card,
    .step-card:nth-child(even) {
        padding: 15px;
        column-gap: 12px;
    }

    .step-icon {
        width: 42px;
        height: 42px;
    }

    .step-card h3 {
        font-size: 15px;
    }

    .step-card p {
        font-size: 13px;
    }

    .important-notice {
        padding: 14px;
    }

    .bottom-cta {
        padding: 29px 0;
    }
}

