/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    /*background: transparent;*/
    /*text-shadow: none;*/
}

::selection {
    background: #b3d4fc;
    /*background: transparent;*/
    /*text-shadow: none;*/
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

div{
	cursor: default;
}

h1,h2,h3,h4,h5,h6{
	margin: 0; padding: 0;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
.checked {
     color: orange;
    
}
.cDelete{
    background-color: rgba(255, 145, 133, 0.15);
}
/* ===== TABLA WBS NOTIFICAR ESM ===== */

.wbs-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    background: #fff;
}

/* encabezado */
.wbs-table thead th {
    background: #f3f4f6;
    color: #555;
    padding: 8px;
    text-align: left;
    border-bottom: 2px solid #dcdcdc;
    font-weight: 600;
}

/* filas normales */
.wbs-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #ececec;
    vertical-align: middle;
}

/* hover suave */
.wbs-item:hover {
    background: #f5faff;
}

/* ===== NIVELES WBS ===== */

/* SUB NIVEL */
.wbs-subparent {
    background: #dde3e6;
    font-weight: bold;
    color: #c0392b;
}

/* SECCION */
.wbs-section {
    background: #f5f6f7;
    font-weight: bold;
    color: #34495e;
}

/* CONCEPTO */
.wbs-item {
    background: #ffffff;
}

/* ===== INPUTS ===== */

.wbs-table textarea:focus {
    border-color: #2980b9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(41,128,185,.15);
}

/* checkbox centrado */
.wbs-table input[type="checkbox"] {
    transform: scale(1.1);
    cursor: pointer;
}

/* columnas numéricas */
.wbs-number {
    text-align: right;
    font-weight: 500;
}

/* scroll si crece mucho dentro del modal */
.swal-con-scroll .swal2-html-container {
    max-height: 70vh;
    overflow-y: auto;
}

/* ===== NIVELES WBS PROFESIONAL ===== */

.wbs-parent td {
    font-weight: 600;
    color: #fff;
    padding: 10px 12px;
     text-align:  left;
}

/* NIVEL ROOT */
.level-AA td {
    background: #2c3e50;
}

/* NIVEL 1 */
.level-A td {
    background: #3f5873;
    padding-left: 20px;
}

/* NIVEL 2 */
.level-S td {
    background: #eef3f7;
    color: #2c3e50;
    padding-left: 35px;
}

/* NIVEL 3 */
.level-SS td {
    background: #f7f9fb;
    color: #34495e;
    padding-left: 50px;
}

/* NIVEL 4 */
.level-SSS td {
    background: #fcfcfc;
    color: #555;
    padding-left: 65px;
}

/* niveles más profundos */
.level-SSSS td,
.level-SSSSS td {
    background: #ffffff;
    color: #666;
    padding-left: 80px;
}
.wbs-item td {
    background: #fff;
    padding-left: 95px;
}
.wbs-table td:nth-child(5) {
    text-align: center;
}
.wbs-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}
.modal-footer{
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 12px;
    border-top: 1px solid #e5e5e5;

    display:flex;
    justify-content:flex-end;
    gap:10px;

    z-index: 10;
}
.esm-header{
    background: #2f6f9f;
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
    letter-spacing: .3px;
}

.esm-title{
    display:flex;
    align-items:center;
}

/* ===== FOOTER ===== */
.modal-footer{
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 12px 14px;
    border-top: 1px solid #e5e5e5;
    display:flex;
    justify-content:flex-end;
    gap:10px;
}

/* cancelar */
.btn-cancel-noty{
    background:#f4f4f4;
    border:1px solid #cfcfcf;
    padding:6px 14px;
    border-radius:4px;
    cursor:pointer;
    font-size:13px;
}

.btn-cancel-noty:hover{
    background:#e8e8e8;
}

/* enviar (acción principal) */
.btn-primary-noty{
    background:#2f6f9f;
    color:#fff;
    border:none;
    padding:6px 16px;
    border-radius:4px;
    cursor:pointer;
    font-size:13px;
    font-weight:600;
}

.btn-primary-noty:hover{
    background:#255a81;
}
.esm-error{
   display:none;
   background:#fdecea;
   color:#c0392b;
   padding:8px;
   margin-bottom:10px;
   border-radius:4px;
   font-size:13px;
}



/* =========================================================
   AVANCE FOTOGRÁFICO
   Prefijo exclusivo: afp_vn_
========================================================= */

.afp_vn_component {
    --afp-vn-primary: #0d2f72;
    --afp-vn-primary-light: #246be8;
    --afp-vn-primary-soft: #edf4ff;
    --afp-vn-text: #10213d;
    --afp-vn-text-soft: #66738a;
    --afp-vn-border: #dfe5ef;
    --afp-vn-background: #f5f7fb;
    --afp-vn-white: #ffffff;
    --afp-vn-success: #239447;
    --afp-vn-success-soft: #ebf9ed;
    --afp-vn-warning: #d88a00;
    --afp-vn-warning-soft: #fff5df;
    --afp-vn-shadow: 0 8px 24px rgba(22, 41, 74, 0.08);

    width: 100%;
    color: var(--afp-vn-text);
    font-family: inherit;
}

.afp_vn_component,
.afp_vn_component * {
    box-sizing: border-box;
}

.afp_vn_component button,
.afp_vn_component input,
.afp_vn_component select,
.afp_vn_component textarea {
    font-family: inherit;
}

.afp_vn_panel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--afp-vn-white);
    border: 1px solid var(--afp-vn-border);
    border-radius: 18px;
    box-shadow: var(--afp-vn-shadow);
}

.afp_vn_blueprint {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 390px;
    opacity: 0.15;
    pointer-events: none;
    background-image:
        linear-gradient(
            30deg,
            transparent 47%,
            rgba(30, 90, 170, 0.22) 48%,
            rgba(30, 90, 170, 0.22) 49%,
            transparent 50%
        ),
        linear-gradient(
            90deg,
            transparent 48%,
            rgba(30, 90, 170, 0.16) 49%,
            transparent 50%
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 33px,
            rgba(30, 90, 170, 0.12) 34px,
            transparent 35px
        );
    background-size:
        230px 170px,
        140px 100%,
        100% 100%;
    transform: skewY(-4deg);
    transform-origin: top right;
}

/* =========================================================
   ENCABEZADO
========================================================= */

.afp_vn_header {
    position: relative;
    z-index: 2;
    padding: 26px 28px 14px;
}

.afp_vn_title {
    margin: 0;
    color: var(--afp-vn-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.afp_vn_subtitle {
    margin: 6px 0 0;
    color: var(--afp-vn-text-soft);
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
   FILTROS
========================================================= */

.afp_vn_filters {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns:
        minmax(250px, 0.95fr)
        minmax(260px, 1.1fr)
        minmax(260px, 1.1fr)
        minmax(210px, 0.75fr);
    gap: 24px;
    align-items: end;
    margin: 0 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--afp-vn-border);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(18, 43, 78, 0.06);
}

.afp_vn_field-group {
    min-width: 0;
}

.afp_vn_label {
    display: block;
    margin: 0 0 7px;
    color: var(--afp-vn-text);
    font-size: 13px;
    font-weight: 700;
}

.afp_vn_label-help {
    color: var(--afp-vn-text-soft);
    font-size: 11px;
    font-weight: 400;
}

.afp_vn_level-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    min-height: 43px;
    border: 1px solid var(--afp-vn-border);
    border-radius: 7px;
    background: var(--afp-vn-white);
}

.afp_vn_level-btn {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    color: var(--afp-vn-text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    border-right: 1px solid var(--afp-vn-border);
    background: transparent;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.afp_vn_level-btn:last-child {
    border-right: 0;
}

.afp_vn_level-btn:hover {
    background: var(--afp-vn-primary-soft);
}

.afp_vn_level-btn--active,
.afp_vn_level-btn--active:hover {
    color: #ffffff;
    background: var(--afp-vn-primary);
}

.afp_vn_level-icon {
    font-size: 18px;
    line-height: 1;
}

.afp_vn_select-wrapper {
    position: relative;
}

.afp_vn_select-wrapper::after {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 7px;
    height: 7px;
    content: "";
    pointer-events: none;
    border-right: 2px solid #526179;
    border-bottom: 2px solid #526179;
    transform: translateY(-68%) rotate(45deg);
}

.afp_vn_select {
    width: 100%;
    min-height: 43px;
    padding: 9px 42px 9px 14px;
    color: var(--afp-vn-text);
    font-size: 13px;
    cursor: pointer;
    border: 1px solid var(--afp-vn-border);
    border-radius: 7px;
    outline: none;
    background: var(--afp-vn-white);
    appearance: none;
    -webkit-appearance: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.afp_vn_select:focus {
    border-color: var(--afp-vn-primary-light);
    box-shadow: 0 0 0 3px rgba(36, 107, 232, 0.12);
}

.afp_vn_field--disabled {
    opacity: 0.68;
}

.afp_vn_field--disabled .afp_vn_select {
    cursor: not-allowed;
    background: #f4f6f9;
}

.afp_vn_template-note {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 12px 14px;
    color: #0753be;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    border: 1px solid #bfd8ff;
    border-radius: 12px;
    background: #f0f6ff;
}

.afp_vn_template-note-icon {
    display: inline-flex;
    flex: 0 0 21px;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    border: 2px solid #1671eb;
    border-radius: 50%;
}

/* =========================================================
   STEPPER
========================================================= */

.afp_vn_stepper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns:
        minmax(150px, 1fr)
        minmax(60px, 0.55fr)
        minmax(150px, 1fr)
        minmax(60px, 0.55fr)
        minmax(210px, 1fr);
    align-items: start;
    max-width: 1000px;
    margin: 18px auto 10px;
    padding: 0 28px;
}

.afp_vn_step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
}

.afp_vn_step-number {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--afp-vn-primary-light);
    font-size: 18px;
    font-weight: 700;
    border: 2px solid #76a8ff;
    border-radius: 50%;
    background: var(--afp-vn-white);
}

.afp_vn_step-content {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}

.afp_vn_step-content strong {
    color: var(--afp-vn-text);
    font-size: 15px;
    white-space: nowrap;
}

.afp_vn_step-content small {
    max-width: 230px;
    margin-top: 8px;
    color: var(--afp-vn-text-soft);
    font-size: 11px;
    line-height: 1.35;
}

.afp_vn_step-arrow {
    position: relative;
    height: 38px;
}

.afp_vn_step-arrow span {
    position: absolute;
    top: 18px;
    right: 6px;
    left: 6px;
    height: 2px;
    background: var(--afp-vn-primary-light);
}

.afp_vn_step-arrow span::after {
    position: absolute;
    top: -4px;
    right: 0;
    width: 8px;
    height: 8px;
    content: "";
    border-top: 2px solid var(--afp-vn-primary-light);
    border-right: 2px solid var(--afp-vn-primary-light);
    transform: rotate(45deg);
}

/* =========================================================
   CONTENIDO
========================================================= */

.afp_vn_content-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr))
        minmax(240px, 0.8fr);
    gap: 18px;
    padding: 0 28px 18px;
}

/* =========================================================
   TARJETAS DE ETAPAS
========================================================= */

.afp_vn_stage-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: var(--afp-vn-white);
    border: 1px solid var(--afp-vn-border);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(21, 45, 80, 0.06);
}

.afp_vn_stage-header {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--afp-vn-border);
}

.afp_vn_stage-title {
    margin: 0;
    color: var(--afp-vn-text);
    font-size: 16px;
    font-weight: 700;
}

.afp_vn_status {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 14px;
}

.afp_vn_status-dot {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.afp_vn_status--pending {
    color: var(--afp-vn-warning);
    border-color: #f3d38b;
    background: var(--afp-vn-warning-soft);
}

.afp_vn_status--review {
    color: #1262cf;
    border-color: #b8d6ff;
    background: #edf5ff;
}

.afp_vn_status--complete {
    color: var(--afp-vn-success);
    border-color: #bce8c4;
    background: var(--afp-vn-success-soft);
}

.afp_vn_stage-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 11px 15px;
    border-bottom: 1px solid var(--afp-vn-border);
}

.afp_vn_meta-item {
    min-width: 0;
    padding-right: 12px;
}

.afp_vn_meta-item + .afp_vn_meta-item {
    padding-right: 0;
    padding-left: 15px;
    border-left: 1px solid var(--afp-vn-border);
}

.afp_vn_meta-label {
    display: block;
    margin-bottom: 5px;
    color: var(--afp-vn-text-soft);
    font-size: 10px;
}

.afp_vn_meta-value {
    display: block;
    overflow: hidden;
    color: var(--afp-vn-text);
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.afp_vn_stage-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 13px 14px;
}

.afp_vn_section-label {
    display: block;
    margin-bottom: 7px;
    color: var(--afp-vn-text);
    font-size: 12px;
    font-weight: 700;
}

/* =========================================================
   CARGA DE FOTOGRAFÍAS
========================================================= */

.afp_vn_dropzone {
    position: relative;
    display: flex;
    min-height: 115px;
    padding: 12px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--afp-vn-text-soft);
    text-align: center;
    border: 1.5px dashed #6ea5ff;
    border-radius: 8px;
    background: #fbfdff;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.afp_vn_dropzone--dragging {
    border-color: var(--afp-vn-primary-light);
    background: var(--afp-vn-primary-soft);
    transform: translateY(-1px);
}

.afp_vn_upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 3px;
    color: var(--afp-vn-primary-light);
    font-size: 24px;
    line-height: 1;
}

.afp_vn_dropzone-title {
    display: block;
    color: #4d5f79;
    font-size: 11px;
}

.afp_vn_dropzone-description {
    display: block;
    margin: 3px 0 8px;
    color: #7d899b;
    font-size: 9px;
}

.afp_vn_file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* =========================================================
   BOTONES
========================================================= */

.afp_vn_btn {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    color: var(--afp-vn-text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    border-radius: 6px;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.afp_vn_btn:hover {
    transform: translateY(-1px);
}

.afp_vn_btn--outline {
    color: #075dd2;
    border: 1px solid #7aafff;
    background: var(--afp-vn-white);
}

.afp_vn_btn--outline:hover {
    background: var(--afp-vn-primary-soft);
}

.afp_vn_btn--primary {
    color: var(--afp-vn-white);
    background: var(--afp-vn-primary);
    box-shadow: 0 5px 12px rgba(13, 47, 114, 0.2);
}

.afp_vn_btn--primary:hover {
    background: #0a285f;
}

.afp_vn_btn--close {
    min-width: 120px;
    color: var(--afp-vn-text);
    border: 1px solid #cfd7e3;
    background: var(--afp-vn-white);
}

.afp_vn_btn--close:hover {
    background: #f3f5f8;
}

/* =========================================================
   MINIATURAS
========================================================= */
/* =========================================================
   ÁREA DE FOTOGRAFÍAS
========================================================= */

.afp_vn_photo-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    min-height: 68px;
    margin-top: 8px;
}

.afp_vn_photo-item,
.afp_vn_photo-more,
.afp_vn_photo-empty {
    position: relative;
    min-width: 0;
    height: 68px;
    overflow: hidden;
    border: 1px solid #d8e1ec;
    border-radius: 7px;
    background: #f4f7fb;
}

.afp_vn_photo-item {
    cursor: pointer;
}

.afp_vn_photo-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.afp_vn_photo-item:hover img {
    transform: scale(1.05);
}

/* Botón X */

.afp_vn_photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    background: rgba(14, 28, 49, 0.82);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.afp_vn_photo-remove:hover {
    background: #d83434;
    transform: scale(1.08);
}

/* Indicador +15, +16, etc. */

.afp_vn_photo-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    border-color: #173f82;
    background:
        linear-gradient(
            rgba(8, 34, 78, 0.77),
            rgba(8, 34, 78, 0.88)
        );
}

.afp_vn_photo-more strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.afp_vn_photo-more span {
    display: block;
    margin-top: 5px;
    font-size: 9px;
    font-weight: 600;
}

.afp_vn_photo-more:hover {
    background:
        linear-gradient(
            rgba(7, 45, 105, 0.85),
            rgba(7, 45, 105, 0.95)
        );
}

/* Cuando no hay fotografías */

.afp_vn_photo-empty {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    color: #8793a5;
    font-size: 11px;
    border-style: dashed;
    background: #fafbfd;
}

@media screen and (max-width: 480px) {
    .afp_vn_photo-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   OBSERVACIONES
========================================================= */

.afp_vn_observations {
    margin-top: 11px;
}

.afp_vn_textarea-wrapper {
    position: relative;
}

.afp_vn_textarea {
    display: block;
    width: 100%;
    min-height: 76px;
    padding: 9px 10px 23px;
    resize: vertical;
    color: var(--afp-vn-text);
    font-size: 11px;
    line-height: 1.45;
    border: 1px solid var(--afp-vn-border);
    border-radius: 7px;
    outline: none;
    background: var(--afp-vn-white);
}

.afp_vn_textarea:focus {
    border-color: var(--afp-vn-primary-light);
    box-shadow: 0 0 0 3px rgba(36, 107, 232, 0.1);
}

.afp_vn_textarea::placeholder {
    color: #a0aaba;
}

.afp_vn_character-count {
    position: absolute;
    right: 9px;
    bottom: 7px;
    color: #7f8a9c;
    font-size: 9px;
}

.afp_vn_stage-footer {
    display: flex;
    gap: 7px;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px;
    color: #68758a;
    font-size: 10px;
    border-top: 1px solid var(--afp-vn-border);
    background: #fbfcfe;
}

.afp_vn_evidence-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    color: #5d7393;
    font-size: 10px;
    border: 1px solid #9ba9ba;
    border-radius: 50%;
}

/* =========================================================
   DOCUMENTO FINAL
========================================================= */

.afp_vn_document-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 11px;
    padding: 8px;
    border: 1px solid #76a8ff;
    border-radius: 8px;
    background: #f7faff;
}

.afp_vn_document-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 42px;
    color: #075dd2;
    font-size: 26px;
    border-radius: 6px;
    background: #e8f2ff;
}

.afp_vn_document-content {
    min-width: 0;
}

.afp_vn_document-content strong {
    display: block;
    color: var(--afp-vn-text);
    font-size: 10px;
}

.afp_vn_document-content small {
    display: block;
    margin-top: 3px;
    color: var(--afp-vn-text-soft);
    font-size: 8px;
    line-height: 1.35;
}

.afp_vn_document-btn {
    max-width: 145px;
    min-height: 42px;
    padding: 7px 10px;
    font-size: 9px;
    line-height: 1.3;
}

/* =========================================================
   RESUMEN
========================================================= */

.afp_vn_summary {
    overflow: hidden;
    align-self: stretch;
    background: rgba(251, 252, 254, 0.96);
    border: 1px solid var(--afp-vn-border);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(21, 45, 80, 0.05);
}

.afp_vn_summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 55px;
    padding: 15px 17px;
}

.afp_vn_summary-header h3 {
    margin: 0;
    color: var(--afp-vn-text);
    font-size: 16px;
    font-weight: 700;
}

.afp_vn_summary-chart {
    color: var(--afp-vn-primary);
    font-size: 20px;
}

.afp_vn_summary-list {
    margin: 0 14px;
    overflow: hidden;
    border: 1px solid var(--afp-vn-border);
    border-radius: 9px;
    background: var(--afp-vn-white);
}

.afp_vn_summary-item {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) 24px;
    gap: 9px;
    align-items: center;
    min-height: 64px;
    padding: 10px;
    border-bottom: 1px solid var(--afp-vn-border);
}

.afp_vn_summary-item:last-child {
    border-bottom: 0;
}

.afp_vn_summary-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--afp-vn-primary-light);
    font-size: 13px;
    font-weight: 700;
    border: 2px solid #76a8ff;
    border-radius: 50%;
}

.afp_vn_summary-number--complete {
    color: var(--afp-vn-success);
    border-color: #68c37e;
}

.afp_vn_summary-item-content {
    min-width: 0;
}

.afp_vn_summary-item-content strong {
    display: block;
    color: var(--afp-vn-text);
    font-size: 11px;
}

.afp_vn_summary-item-content span {
    display: block;
    margin-top: 3px;
    color: var(--afp-vn-text-soft);
    font-size: 10px;
}

.afp_vn_summary-item-content b {
    color: var(--afp-vn-text);
}

.afp_vn_summary-photo-icon {
    color: #6b7f9e;
    font-size: 19px;
}

.afp_vn_summary-info {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin: 14px;
    padding: 14px;
    border: 1px solid var(--afp-vn-border);
    border-radius: 9px;
    background: var(--afp-vn-white);
}

.afp_vn_summary-info-icon {
    color: #657b9e;
    font-size: 23px;
}

.afp_vn_summary-info div {
    min-width: 0;
}

.afp_vn_summary-info span {
    display: block;
    color: var(--afp-vn-text-soft);
    font-size: 10px;
}

.afp_vn_summary-info strong {
    display: block;
    margin-top: 4px;
    color: var(--afp-vn-text);
    font-size: 11px;
    line-height: 1.4;
}

.afp_vn_general-status {
    display: inline-block !important;
    padding: 4px 9px;
    color: var(--afp-vn-warning) !important;
    border: 1px solid #f2d389;
    border-radius: 6px;
    background: var(--afp-vn-warning-soft);
}

/* =========================================================
   PIE
========================================================= */

.afp_vn_footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    padding: 13px 28px;
    border-top: 1px solid var(--afp-vn-border);
    background: rgba(255, 255, 255, 0.96);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media screen and (max-width: 1250px) {
    .afp_vn_filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .afp_vn_template-note {
        grid-column: 1 / -1;
        min-height: auto;
    }

    .afp_vn_content-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .afp_vn_summary {
        display: grid;
        grid-template-columns: 1fr 1.5fr 1fr 1fr;
        grid-column: 1 / -1;
        align-items: center;
        padding-bottom: 0;
    }

    .afp_vn_summary-header {
        align-self: stretch;
    }

    .afp_vn_summary-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        margin: 10px;
    }

    .afp_vn_summary-item {
        border-right: 1px solid var(--afp-vn-border);
        border-bottom: 0;
    }

    .afp_vn_summary-item:last-child {
        border-right: 0;
    }
}

@media screen and (max-width: 950px) {
    .afp_vn_filters {
        grid-template-columns: 1fr 1fr;
    }

    .afp_vn_content-grid {
        grid-template-columns: 1fr;
    }

    .afp_vn_summary {
        display: block;
        grid-column: auto;
    }

    .afp_vn_summary-list {
        display: block;
        margin: 0 14px;
    }

    .afp_vn_summary-item {
        border-right: 0;
        border-bottom: 1px solid var(--afp-vn-border);
    }

    .afp_vn_stepper {
        max-width: none;
    }
}

@media screen and (max-width: 700px) {
    .afp_vn_header {
        padding: 20px 16px 12px;
    }

    .afp_vn_title {
        font-size: 20px;
    }

    .afp_vn_filters {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 0 16px;
        padding: 14px;
    }

    .afp_vn_template-note {
        grid-column: auto;
    }

    .afp_vn_stepper {
        display: flex;
        margin: 18px 0;
        padding: 0 20px;
        flex-direction: column;
        gap: 13px;
    }

    .afp_vn_step {
        justify-content: flex-start;
    }

    .afp_vn_step-arrow {
        width: 38px;
        height: 25px;
    }

    .afp_vn_step-arrow span {
        top: 0;
        right: auto;
        bottom: 0;
        left: 18px;
        width: 2px;
        height: 25px;
    }

    .afp_vn_step-arrow span::after {
        top: auto;
        right: -3px;
        bottom: 0;
        transform: rotate(135deg);
    }

    .afp_vn_step-content strong {
        white-space: normal;
    }

    .afp_vn_content-grid {
        padding: 0 16px 16px;
    }

    .afp_vn_document-card {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .afp_vn_document-btn {
        max-width: none;
        grid-column: 1 / -1;
    }

    .afp_vn_footer {
        padding: 12px 16px;
    }

    .afp_vn_btn--close {
        width: 100%;
    }
}

