/* =========================================================
   CASLA - MÓDULO COTIZACIONES
   Solicitud pública + administración
========================================================= */


/* =========================================================
   TÍTULO PRINCIPAL
========================================================= */

.cotizacion-titulo {
    color: var(--azul-oscuro);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 30px;
}


/* =========================================================
   CONTENEDOR DE SOLICITUD
========================================================= */

.cotizacion-contenedor {
    padding-top: 70px;
    padding-bottom: 80px;
    min-height: 70vh;
}


/* =========================================================
   TARJETA
========================================================= */

.cotizacion-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: var(--radio-medio);
    box-shadow: var(--sombra-media);
    padding: 35px;
}


/* =========================================================
   FORMULARIO
========================================================= */

.cotizacion-form .form-label {
    color: var(--azul-oscuro);
    font-weight: 700;
    margin-bottom: 8px;
}

.cotizacion-form .form-control {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--gris-oscuro);
}

.cotizacion-form textarea {
    min-height: 140px;
    resize: vertical;
}


/* =========================================================
   BOTÓN
========================================================= */

.cotizacion-btn {
    width: 100%;
    border-radius: var(--radio-pequeno);
    padding: 12px 20px;
    font-weight: 600;
    transition: var(--transicion);
}

.cotizacion-btn:hover {
    transform: translateY(-2px);
}


/* =========================================================
   TEXTO GENERAL DEL FORMULARIO
========================================================= */

.cotizacion-form {
    color: var(--gris-texto);
}

.cotizacion-form::placeholder {
    color: #8a95a3;
}


/* =========================================================
   ADMINISTRACIÓN DE COTIZACIONES
========================================================= */

.admin-cotizaciones-contenedor {
    padding-top: 50px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.admin-cotizaciones-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.admin-cotizaciones-header h1 {
    color: var(--azul-oscuro);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
}

.admin-cotizaciones-card {
    background: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: var(--radio-medio);
    box-shadow: var(--sombra-suave);
    overflow: hidden;
}

.admin-cotizaciones-card-body {
    padding: 20px;
}

.admin-cotizaciones-tabla {
    margin-bottom: 0;
}

.admin-cotizaciones-tabla th,
.admin-cotizaciones-tabla td {
    vertical-align: middle;
    text-align: center;
}

.cotizacion-seleccion {
    width: 55px;
}

.cotizacion-descripcion {
    text-align: left !important;
    min-width: 250px;
}

.admin-cotizaciones-tabla input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.cotizacion-estado-badge {
    padding: 7px 11px;
    border-radius: 20px;
}

.admin-cotizaciones-acciones {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-cotizaciones-acciones .btn {
    border-radius: var(--radio-pequeno);
}

.cotizaciones-vacias {
    padding: 35px !important;
    color: var(--gris-texto);
    font-weight: 600;
}

.admin-cotizaciones-eliminar-masivo {
    margin-top: 20px;
    border-radius: var(--radio-pequeno);
    font-weight: 600;
}


/* =========================================================
   DETALLE DE COTIZACIÓN
========================================================= */

.admin-cotizacion-detalle-contenedor {
    padding-top: 50px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.admin-cotizacion-detalle-card {
    max-width: 850px;
    margin: 0 auto;
    background: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: var(--radio-medio);
    box-shadow: var(--sombra-media);
    overflow: hidden;
}

.admin-cotizacion-detalle-header {
    background: var(--azul-oscuro);
    color: var(--blanco);
    padding: 25px 30px;
}

.admin-cotizacion-detalle-header h1 {
    color: var(--blanco);
    margin: 0 0 5px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
}

.admin-cotizacion-detalle-header p {
    color: var(--blanco);
    margin: 0;
    opacity: 0.85;
}

.admin-cotizacion-detalle-body {
    padding: 30px;
}

.cotizacion-detalle-fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gris-borde);
}

.cotizacion-detalle-label {
    color: var(--azul-oscuro);
    font-weight: 700;
    min-width: 150px;
}

.cotizacion-detalle-valor {
    color: var(--gris-oscuro);
    text-align: right;
    word-break: break-word;
}

.cotizacion-detalle-descripcion {
    padding-top: 20px;
}

.cotizacion-detalle-descripcion
.cotizacion-detalle-label {
    display: block;
    margin-bottom: 10px;
}

.cotizacion-descripcion-box {
    background: var(--gris-fondo);
    border: 1px solid var(--gris-borde);
    border-radius: var(--radio-pequeno);
    padding: 20px;
    color: var(--gris-oscuro);
    line-height: 1.7;
    min-height: 120px;
}

.admin-cotizacion-detalle-footer {
    display: flex;
    gap: 10px;
    padding: 20px 30px;
    background: var(--gris-fondo);
    border-top: 1px solid var(--gris-borde);
}

.admin-cotizacion-detalle-footer .btn {
    border-radius: var(--radio-pequeno);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    .admin-cotizaciones-tabla {
        min-width: 1050px;
    }

}


@media (max-width: 768px) {

    .cotizacion-contenedor {
        padding-top: 45px;
        padding-bottom: 55px;
    }

    .cotizacion-titulo {
        font-size: 34px;
    }

    .cotizacion-card {
        padding: 25px 20px;
    }

    .admin-cotizaciones-contenedor,
    .admin-cotizacion-detalle-contenedor {
        padding-top: 30px;
        padding-bottom: 40px;
    }

    .admin-cotizaciones-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .admin-cotizaciones-header h1 {
        font-size: 30px;
    }

    .admin-cotizaciones-header .btn {
        width: 100%;
    }

    .admin-cotizaciones-card-body {
        padding: 15px;
    }

    .admin-cotizaciones-acciones {
        flex-direction: column;
    }

    .admin-cotizaciones-acciones .btn {
        width: 100%;
    }

    .admin-cotizaciones-eliminar-masivo {
        width: 100%;
    }

    .admin-cotizacion-detalle-header {
        padding: 20px;
        text-align: center;
    }

    .admin-cotizacion-detalle-header h1 {
        font-size: 27px;
    }

    .admin-cotizacion-detalle-body {
        padding: 20px;
    }

    .cotizacion-detalle-fila {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .cotizacion-detalle-label {
        min-width: auto;
    }

    .cotizacion-detalle-valor {
        text-align: left;
    }

    .admin-cotizacion-detalle-footer {
        flex-direction: column;
        padding: 15px 20px;
    }

    .admin-cotizacion-detalle-footer .btn {
        width: 100%;
    }

}


@media (max-width: 576px) {

    .cotizacion-titulo {
        font-size: 29px;
        letter-spacing: 1px;
    }

}


/* =========================================================
   CASLA DEL SURESTE - SOLICITAR COTIZACIÓN
   Diseño moderno, compacto y responsive
========================================================= */

.pagina-cotizacion {
    color: #253449;
    background: #f5f8fd;
}

/* =========================================================
   ENCABEZADO PRINCIPAL
========================================================= */

.cotizacion-titulo-seccion {
    position: relative;
    overflow: hidden;
    padding: 38px 0 35px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(54, 133, 255, .32),
            transparent 30%
        ),
        linear-gradient(
            115deg,
            #061a3d,
            #082c6c 65%,
            #104ca4
        );
}

.cotizacion-titulo-seccion::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: -65px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    pointer-events: none;
}

.cotizacion-titulo-seccion .container {
    position: relative;
    z-index: 1;
}

.cotizacion-etiqueta {
    display: inline-block;
    margin-bottom: 9px;
    color: #bcd6ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.cotizacion-titulo-seccion h1 {
    margin: 0 0 9px;
    color: #ffffff;
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 850;
    letter-spacing: 1px;
}

.cotizacion-titulo-seccion p {
    margin: 0;
    color: #dce9ff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

/* =========================================================
   CONTENEDOR Y TARJETA
========================================================= */

.cotizacion-contenedor {
    padding: 38px 0 48px;
}

.cotizacion-contenedor > .container {
    max-width: 900px;
}

.cotizacion-card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e2eaf4;
    border-radius: 17px;
    box-shadow: 0 10px 30px rgba(8, 44, 108, .07);
}

/* =========================================================
   ENCABEZADO DEL FORMULARIO
========================================================= */

.cotizacion-card-encabezado {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
    padding-bottom: 21px;
    border-bottom: 1px solid #e8eef7;
}

.cotizacion-icono {
    display: flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: #eaf3ff;
    border-radius: 14px;
    font-size: 26px;
}

.cotizacion-card-encabezado h2 {
    margin: 0 0 6px;
    color: #082c6c;
    font-size: clamp(20px, 2.2vw, 25px);
    font-weight: 800;
}

.cotizacion-card-encabezado p {
    margin: 0;
    color: #607086;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   FORMULARIO
========================================================= */

.cotizacion-form .form-label {
    display: block;
    margin-bottom: 8px;
    color: #253449;
    font-size: 14px;
    font-weight: 700;
}

.cotizacion-form .form-control {
    min-height: 47px;
    padding: 12px 14px;
    color: #253449;
    background: #fbfdff;
    border: 1px solid #dbe5f1;
    border-radius: 9px;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease,
                background-color .2s ease;
}

.cotizacion-form textarea.form-control {
    min-height: 135px;
    resize: vertical;
}

.cotizacion-form .form-control::placeholder {
    color: #98a6b8;
}

.cotizacion-form .form-control:focus {
    background: #ffffff;
    border-color: #0d5bd7;
    box-shadow: 0 0 0 3px rgba(13, 91, 215, .12);
    outline: none;
}

.cotizacion-ayuda {
    margin-top: 8px;
    color: #718096;
    font-size: 12px;
    line-height: 1.6;
}

/* =========================================================
   BOTÓN DE ENVÍO
========================================================= */

.cotizacion-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #0d5bd7, #0845a8);
    border: 0;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 750;
    box-shadow: 0 5px 13px rgba(13, 91, 215, .18);
    transition: transform .2s ease, box-shadow .2s ease,
                background-color .2s ease;
}

.cotizacion-btn:hover,
.cotizacion-btn:focus-visible {
    color: #ffffff;
    background: linear-gradient(135deg, #084ab8, #082c6c);
    box-shadow: 0 8px 18px rgba(13, 91, 215, .25);
    transform: translateY(-2px);
}

/* =========================================================
   NOTA INFORMATIVA
========================================================= */

.cotizacion-nota {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 22px;
    padding-top: 18px;
    color: #607086;
    border-top: 1px solid #e8eef7;
    font-size: 13px;
    line-height: 1.6;
}

.cotizacion-nota span {
    display: inline-flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #087443;
    background: #e6f7ee;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 767.98px) {
    .cotizacion-titulo-seccion {
        padding: 30px 0 28px;
    }

    .cotizacion-titulo-seccion p {
        font-size: 14px;
    }

    .cotizacion-contenedor {
        padding: 27px 0 35px;
    }

    .cotizacion-card {
        padding: 23px 20px;
        border-radius: 14px;
    }

    .cotizacion-card-encabezado {
        gap: 12px;
        margin-bottom: 21px;
    }

    .cotizacion-icono {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        border-radius: 12px;
        font-size: 23px;
    }

    .cotizacion-btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .cotizacion-contenedor {
        padding: 22px 0 30px;
    }

    .cotizacion-card {
        padding: 19px 16px;
    }

    .cotizacion-card-encabezado h2 {
        font-size: 20px;
    }

    .cotizacion-card-encabezado p {
        font-size: 13px;
    }

    .cotizacion-form .form-control {
        min-height: 45px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cotizacion-form .form-control,
    .cotizacion-btn {
        transition: none;
    }
}


/* CENTRAR EL ENCABEZADO DE COTIZACIONES */

.cotizacion-titulo-seccion {
    text-align: center;
}

.cotizacion-titulo-seccion .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cotizacion-titulo-seccion h1 {
    text-align: center;
}

.cotizacion-titulo-seccion p {
    text-align: center;
    max-width: 700px;
}

.cotizacion-etiqueta {
    text-align: center;
}


/* =========================================================
   CASLA DEL SURESTE
   MEJORA GENERAL DE LEGIBILIDAD Y CONTRASTE
   SOLICITUD PÚBLICA + ADMINISTRACIÓN + DETALLE
========================================================= */

/* =========================================================
   SOLICITUD PÚBLICA
========================================================= */

.pagina-cotizacion {
    color: #172b4d;
}

.cotizacion-titulo {
    color: #082c6c;
    font-weight: 900;
}

.cotizacion-titulo-seccion h1 {
    color: #ffffff;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.cotizacion-titulo-seccion p {
    color: #ffffff;
    font-weight: 600;
    line-height: 1.75;
    opacity: 1;
}

.cotizacion-etiqueta {
    color: #d6e6ff;
    font-weight: 900;
}

.cotizacion-card {
    border-color: #d5deeb;
}

.cotizacion-card-encabezado h2 {
    color: #082c6c;
    font-weight: 900;
}

.cotizacion-card-encabezado p {
    color: #40516b;
    font-weight: 500;
}

/* CAMPOS DEL FORMULARIO */

.cotizacion-form {
    color: #344660;
}

.cotizacion-form .form-label {
    color: #253449;
    font-weight: 800;
}

.cotizacion-form .form-control,
.cotizacion-form .form-select {
    color: #172b4d;
    background-color: #ffffff;
    border-color: #aebed2;
    font-weight: 500;
}

.cotizacion-form .form-control::placeholder {
    color: #65758b;
    opacity: 1;
}

.cotizacion-form .form-control:focus,
.cotizacion-form .form-select:focus {
    color: #172b4d;
    background-color: #ffffff;
    border-color: #0d5bd7;
    box-shadow: 0 0 0 3px rgba(13, 91, 215, 0.16);
}

.cotizacion-form textarea {
    line-height: 1.75;
}

.cotizacion-ayuda {
    color: #40516b;
    font-weight: 500;
}

.cotizacion-nota {
    color: #40516b;
    font-weight: 500;
}

/* BOTÓN DE SOLICITUD */

.cotizacion-btn {
    color: #ffffff;
    font-weight: 800;
}

.cotizacion-btn:hover,
.cotizacion-btn:focus-visible {
    color: #ffffff;
}

.cotizacion-btn:focus-visible {
    outline: 3px solid #2878e8;
    outline-offset: 3px;
}

/* =========================================================
   ADMINISTRACIÓN DE COTIZACIONES
========================================================= */

.admin-cotizaciones-header h1 {
    color: #082c6c;
    font-weight: 900;
}

.admin-cotizaciones-card {
    border-color: #d5deeb;
}

.admin-cotizaciones-card-body {
    color: #253449;
}

/* TABLA */

.admin-cotizaciones-tabla {
    color: #253449;
}

.admin-cotizaciones-tabla thead th {
    color: #ffffff;
    background-color: #082c6c;
    font-weight: 800;
    vertical-align: middle;
}

.admin-cotizaciones-tabla tbody td {
    color: #253449;
    font-weight: 500;
    border-color: #dbe5f1;
}

.admin-cotizaciones-tabla tbody tr:nth-child(even) td {
    background-color: #f5f8fe;
}

.admin-cotizaciones-tabla tbody tr:hover td {
    background-color: #eaf3ff;
}

.cotizacion-descripcion {
    color: #253449;
    font-weight: 500;
}

.cotizacion-estado-badge {
    font-weight: 800;
}

.cotizaciones-vacias {
    color: #40516b;
    font-weight: 700;
}

/* CASILLAS DE SELECCIÓN */

.admin-cotizaciones-tabla input[type="checkbox"] {
    accent-color: #0d5bd7;
}

/* BOTONES DE ACCIONES */

.admin-cotizaciones-acciones .btn,
.admin-cotizaciones-eliminar-masivo {
    font-weight: 700;
}

.admin-cotizaciones-acciones .btn:focus-visible,
.admin-cotizaciones-eliminar-masivo:focus-visible {
    outline: 3px solid #2878e8;
    outline-offset: 3px;
}

/* =========================================================
   DETALLE DE COTIZACIÓN
========================================================= */

.admin-cotizacion-detalle-card {
    border-color: #d5deeb;
}

.admin-cotizacion-detalle-header {
    background-color: #082c6c;
}

.admin-cotizacion-detalle-header h1 {
    color: #ffffff;
    font-weight: 900;
}

.admin-cotizacion-detalle-header p {
    color: #ffffff;
    font-weight: 500;
    opacity: 1;
    line-height: 1.7;
}

.admin-cotizacion-detalle-body {
    color: #253449;
}

.cotizacion-detalle-fila {
    border-bottom-color: #d5deeb;
}

.cotizacion-detalle-label {
    color: #082c6c;
    font-weight: 800;
}

.cotizacion-detalle-valor {
    color: #253449;
    font-weight: 500;
    line-height: 1.7;
}

.cotizacion-descripcion-box {
    color: #253449;
    background: #f5f8fe;
    border-color: #d5deeb;
    font-weight: 500;
    line-height: 1.85;
}

.admin-cotizacion-detalle-footer {
    background: #f1f5fb;
    border-top-color: #d5deeb;
}

.admin-cotizacion-detalle-footer .btn {
    font-weight: 700;
}

.admin-cotizacion-detalle-footer .btn:focus-visible {
    outline: 3px solid #2878e8;
    outline-offset: 3px;
}

/* =========================================================
   AJUSTES RESPONSIVE
========================================================= */

@media (max-width: 768px) {
    .cotizacion-titulo {
        font-weight: 900;
    }

    .cotizacion-form .form-label {
        font-weight: 800;
    }

    .admin-cotizaciones-header h1 {
        font-weight: 900;
    }

    .admin-cotizacion-detalle-header h1 {
        font-weight: 900;
    }

    .cotizacion-detalle-label {
        color: #082c6c;
    }

    .cotizacion-detalle-valor {
        color: #253449;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .cotizacion-titulo {
        letter-spacing: 0.5px;
    }

    .cotizacion-titulo-seccion p {
        font-size: 14px;
    }

    .cotizacion-form .form-control,
    .cotizacion-form .form-select {
        font-size: 15px;
    }
}

/* =========================================================
   ACCESIBILIDAD
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .cotizacion-btn,
    .cotizacion-form .form-control {
        transition: none;
    }
}
