/* Formulario Nueva Venta - Renovación. VCallC */

@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

.nv-formulario {
    width: 100%;
    max-width: 1024px;
    min-width: 0;
    margin: 24px auto 48px;
    padding: 0 12px;
    box-sizing: border-box;
    font-family: "Rubik", sans-serif !important;
    color: #172c4b
}

    .nv-formulario * {
        box-sizing: border-box
    }

.nv-encabezado {
    margin-bottom: 18px;
    text-align: center
}

    .nv-encabezado h1 {
        font-size: 26px;
        color: #243781;
        margin: 0 0 6px
    }

    .nv-encabezado span {
        font-size: 13px;
        color: #63728c
    }

.nv-nueva {
    margin-bottom: 14px;
    text-align: right;
    padding: 16px;
}

.nv-tarjeta {
    border: 1px solid #e0e8f1;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(20,52,91,.07);
    overflow: hidden;    
    margin: 12px;
    padding: 16px;
}

.nv-contenido {
    padding: 18px
}

.nv-grupo {
    min-width: 0;
    margin-bottom: 14px
}

    .nv-grupo:last-child {
        margin-bottom: 0
    }

.nv-etiqueta {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #223750;
    margin-bottom: 6px
}

.nv-control {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #23354f;
    font-size: 14px;
    line-height: 1.35;
    float: none !important
}

.nv-control:focus {
	border-color: #4266a5;
	outline: 2px solid rgba(66,102,165,.15)
}

.nv-control:disabled, .nv-control[readonly] {
	background: #f4f7fb;
	color: #53657b
}


.nv-precio {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.nv-precio > .nv-control {
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	height: 42px;
	padding: 8px 10px;
	margin: 0 !important;
	font-size: 13px;
}

.nv-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 45px;
    padding: 10px 18px;
    border: 1px solid #24337C;
    border-radius: 5px;
    background-color: #ffffff;
    color: #24337C;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nv-formulario .nv-boton:hover,
.nv-formulario .nv-boton:focus-visible {
    background-color: #24337C;
    color: #ffffff !important;
    border-color: #24337C;
    filter: none;
}


.nv-boton i {
    font-size: 20px;
    color: inherit;
}

.nv-formulario .nv-boton:hover i {
    color: #ffffff !important;
}

.nv-formulario .error_txt_campo, .nv-formulario .validador {
    display: block;
    color: #c32e38;
    font-size: 12px;
    margin-top: 5px
}

.nv-formulario .listItem {
    background: #fffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 5px 12px rgba(0,0,0,.12);
    z-index: 2000 !important;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 220px;
    overflow-y: auto
}

    .nv-formulario .listItem li, .nv-formulario .listItemlistItem .itemHighlighted {
        padding: 8px 10px;
        cursor: pointer
    }

.nv-dosColumnas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 15px;
    min-width: 0;
}

    .nv-dosColumnas .nv-grupo {
        margin-bottom: 0;
    }

.nv-check-simple {
    width: 100%;
    padding: 8px 0;
    margin: 7px 0px 0px 0px;
    border: none;
    background: transparent;
}

    .nv-check-simple .nv-checkbox {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        width: auto;
    }

        .nv-check-simple .nv-checkbox input[type="checkbox"] {
            width: 16px;
            height: 16px;
            margin: 0;
            accent-color: #2184be;
        }

        .nv-check-simple .nv-checkbox label {
            margin: 0;
            font-size: 13px;
            font-weight: 600;
            color: #223750;
            cursor: pointer;
        }

.nv-formulario .nv-fila {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 15px;
}

    .nv-formulario .nv-fila > .nv-grupo {        
        margin-bottom: 0;
    }


.nv-formulario .nv-telefono {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
}

    .nv-formulario .nv-telefono .error_txt_campo {
        grid-column: 1 / -1;
    }


.nv-direccion-adicional {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
}

.nv-seccion-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #d9e6f2;
    color: #17649c;
    font-size: 16px !important;
    font-weight: 700;
}

    .nv-seccion-titulo i {
        font-size: 19px;
        color: #2184be;
    }


.nv-seccion-opcional {
    font-size: 12px;
    font-weight: 400;
    color: #78879a;
}

.nv-cabecera-acordeon {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none
}

    .nv-cabecera-acordeon .nv-icono-acordeon {
        margin-left: auto;
        font-size: 22px;
        color: #2184be;
        transition: transform .2s ease
    }

    .nv-cabecera-acordeon:hover {
        filter: brightness(1.06)
    }

    .nv-cabecera-acordeon:focus-visible {
        outline: 2px solid #172c4b;
        outline-offset: 2px
    }

.nv-mensaje-exito:not(:empty) {
    display: block;
    padding: 16px 20px;
    margin: 24px 0;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    border-radius: 8px;
    color: #166534;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}


.nv-mensaje-contenedor {
    position: relative;
}

.nv-mensaje-cerrar {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #166534;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

    .nv-mensaje-cerrar:hover {
        color: #dc2626;
    }

.nv-mensaje-exito:not(:empty) {
    padding-right: 45px;
}
.nv-mensaje-contenedor:has(.nv-mensaje-exito:empty) {
    display: none;
}




/* ==========================================
   RESPONSIVE - TABLET Y MOBILE
   ========================================== */

@media only screen and (max-width: 1024px) {
    .contenedorPrin {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .nv-formulario {
        max-width: 100%;
        min-width: 0;
        margin: 14px auto 30px;
        padding: 0 10px;
    }

  
    .nv-encabezado h1 {
        font-size: 22px;
    }

   
    .nv-tarjeta {
        width: auto;
        max-width: 100%;
        min-width: 0;
        margin: 12px 0;
        padding: 14px;
    }


    .nv-contenido {
        padding: 14px;
        min-width: 0;
    }
  
    .nv-formulario .nv-fila,
    .nv-formulario .nv-dosColumnas {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .nv-grupo {
        width: 100%;
    }

    .nv-direccion-adicional {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .nv-formulario .nv-telefono {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 8px;
    }
  
    .nv-precio {
        grid-template-columns: 65px minmax(0, 1fr) minmax(0, 1.3fr);
        gap: 6px;
    }

        .nv-precio > .nv-control {
            padding: 6px;
            font-size: 12px;
        }
}



/* ==========================================
   MOBILE PEQUEÑO
   ========================================== */

@media only screen and (max-width: 480px) {

    .nv-formulario {
        padding: 0 8px;
    }

    .nv-encabezado h1 {
        font-size: 20px;
    }  

    .nv-contenido {
        padding: 12px;
    }

    .nv-formulario .nv-telefono {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .nv-precio {
        grid-template-columns: 55px minmax(0, 1fr) minmax(0, 1.2fr);
        gap: 5px;
    }

        .nv-precio > .nv-control {
            font-size: 11px;
            padding: 5px;
        }  
}



