﻿/* =========================================================
   CHITREANA CARGO EXPRESS
   APERTURA DE CASILLERO
========================================================= */


/* =========================================================
   BASE
========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f3f6f9;
    color: #172b45;
}


/* =========================================================
   HEADER
========================================================= */

.casillero-header {
    width: 100%;
    height: 82px;

    display: flex;
    align-items: center;

    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.casillero-header-inner {
    width: 100%;
    max-width: 1220px;

    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
}

.casillero-logo {
    display: block;

    width: auto;
    max-width: 190px;
    max-height: 54px;
}


/* =========================================================
   CONTENIDO PRINCIPAL
========================================================= */

.casillero-main {
    width: 100%;
    max-width: 800px;

    margin: 0 auto;
    padding: 42px 24px 30px;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.casillero-heading {
    margin-bottom: 24px;
}

.casillero-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: #526d8b;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.casillero-heading h1 {
    margin: 0 0 8px;

    color: #071d3b;

    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

.casillero-heading p {
    max-width: 650px;

    margin: 0;

    color: #64748b;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   TARJETA
========================================================= */

.casillero-card {
    width: 100%;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dde5ee;
    border-radius: 15px;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.02),
        0 5px 18px rgba(15, 23, 42, 0.035);
}


/* =========================================================
   HEADER DE TARJETA
========================================================= */

.casillero-card-header {
    padding: 21px 24px;

    background: #ffffff;
    border-bottom: 1px solid #e8edf3;
}

.casillero-card-header h2 {
    margin: 0 0 5px;

    color: #0b1f3a;

    font-size: 18px;
    font-weight: 700;
}

.casillero-card-header p {
    margin: 0;

    color: #718198;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   CUERPO
========================================================= */

.casillero-card-body {
    padding: 25px 24px 24px;
}


/* =========================================================
   SECCIONES
========================================================= */

.casillero-section-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 17px;

    color: #173653;

    font-size: 14px;
    font-weight: 700;
}

.casillero-section-title i {
    width: 18px;

    color: #526d8b;

    font-size: 14px;

    text-align: center;
}


/* =========================================================
   GRID
========================================================= */

.casillero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 0 16px;
}


/* =========================================================
   CAMPOS
========================================================= */

.casillero-field {
    min-width: 0;
    margin-bottom: 17px;
}

.casillero-field-full {
    grid-column: 1 / -1;
}

.casillero-field label {
    display: block;

    margin-bottom: 7px;

    color: #405773;

    font-size: 12px;
    font-weight: 700;
}

.casillero-field input,
.casillero-field select {
    width: 100%;
    height: 46px;

    display: block;

    padding: 0 13px;

    background: #ffffff;
    color: #172b45;

    border: 1px solid #ccd7e3;
    border-radius: 9px;

    outline: none;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.casillero-field input::placeholder {
    color: #9aa8b8;
}

.casillero-field input:hover,
.casillero-field select:hover {
    border-color: #b6c4d3;
}

.casillero-field input:focus,
.casillero-field select:focus {
    border-color: #315b88;

    box-shadow:
        0 0 0 3px rgba(49, 91, 136, 0.10);
}

.casillero-field select {
    cursor: pointer;
}


/* =========================================================
   DIVISORES
========================================================= */

.casillero-divider {
    width: 100%;
    height: 1px;

    margin: 8px 0 24px;

    background: #e8edf3;
}


/* =========================================================
   INFORMACIÓN DEL SERVICIO
========================================================= */

.casillero-info {
    width: 100%;

    margin: 3px 0 20px;
    padding: 16px;

    background: #f7f9fc;

    border: 1px solid #dfe7f0;
    border-radius: 11px;

    color: #4b6079;

    font-size: 13px;
    line-height: 1.65;
}

.casillero-info-title {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 8px;

    color: #173653;
}

.casillero-info-title i {
    color: #526d8b;
}

.casillero-info-title strong {
    color: #173653;
}

.casillero-service-line {
    margin-top: 6px;
}

.casillero-service-line strong {
    color: #294966;
}


/* =========================================================
   AVISO
========================================================= */

.casillero-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 13px;
    padding: 12px 13px;

    background: #fff9e9;

    border: 1px solid #eedb9b;
    border-radius: 9px;

    color: #70591d;

    font-size: 12px;
    line-height: 1.6;
}

.casillero-notice > i {
    margin-top: 3px;

    color: #9b7b1d;
}

.casillero-notice strong {
    color: #654f14;
}


/* =========================================================
   CONTACTO / AYUDA
========================================================= */

.casillero-contact-help {
    margin-top: 13px;
    padding-top: 12px;

    border-top: 1px solid #dfe7f0;

    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px;

    color: #52677e;

    font-size: 12px;
}

.casillero-contact-help strong {
    width: 100%;

    color: #294966;
}


/* =========================================================
   BOTÓN
========================================================= */

.casillero-submit {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 18px;

    background: #0b3c69;
    color: #ffffff;

    border: none;
    border-radius: 9px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.1s ease,
        box-shadow 0.15s ease;
}

.casillero-submit:hover {
    background: #082f54;

    box-shadow:
        0 4px 12px rgba(11, 60, 105, 0.15);
}

.casillero-submit:active {
    transform: translateY(1px);
}


/* =========================================================
   NOTA DEL FORMULARIO
========================================================= */

.casillero-form-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;

    margin-top: 13px;

    color: #8190a3;

    font-size: 11px;
    line-height: 1.5;

    text-align: center;
}

.casillero-form-note i {
    margin-top: 2px;

    color: #8190a3;
}


/* =========================================================
   FOOTER
========================================================= */

.casillero-footer {
    width: 100%;

    padding: 3px 20px 28px;

    color: #8a99ac;

    font-size: 11px;

    text-align: center;
}

.casillero-footer-separator {
    display: inline-block;

    margin: 0 5px;

    color: #b2bdc9;
}

.casillero-footer a {
    color: #526d8b;

    font-weight: 700;

    text-decoration: none;
}

.casillero-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

    .casillero-main {
        padding-top: 34px;
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 650px) {

    .casillero-header {
        height: 70px;
    }

    .casillero-header-inner {
        padding: 0 17px;
    }

    .casillero-logo {
        max-width: 165px;
        max-height: 46px;
    }


    .casillero-main {
        padding:
            27px
            14px
            24px;
    }


    .casillero-heading {
        margin-bottom: 19px;
    }

    .casillero-heading h1 {
        font-size: 25px;
    }

    .casillero-heading p {
        font-size: 13px;
    }


    .casillero-card {
        border-radius: 13px;
    }

    .casillero-card-header {
        padding: 19px 18px;
    }

    .casillero-card-body {
        padding: 21px 18px 20px;
    }


    .casillero-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .casillero-field-full {
        grid-column: auto;
    }


    .casillero-field input,
    .casillero-field select {
        height: 47px;

        font-size: 16px;
    }


    .casillero-info {
        padding: 14px;
    }


    .casillero-contact-help {
        flex-direction: column;
        gap: 4px;
    }


    .casillero-submit {
        min-height: 49px;

        font-size: 14px;
    }


    .casillero-footer {
        padding-bottom: 23px;

        line-height: 1.7;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 380px) {

    .casillero-main {
        padding-left: 10px;
        padding-right: 10px;
    }

    .casillero-card-header,
    .casillero-card-body {
        padding-left: 15px;
        padding-right: 15px;
    }

    .casillero-heading h1 {
        font-size: 23px;
    }

}
/* =========================================================
   PANTALLA DE ÉXITO
========================================================= */

.casillero-success-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    margin-bottom: 25px;
}

.casillero-success-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #edf5f1;
    color: #26734d;

    border-radius: 12px;

    font-size: 18px;
}

.casillero-success-heading h1 {
    margin: 0 0 7px;

    color: #071d3b;

    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

.casillero-success-heading p {
    margin: 0;

    color: #64748b;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   CÓDIGO DE CASILLERO
========================================================= */

.casillero-code-card {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 18px;
    padding: 20px 22px;

    background: #ffffff;

    border: 1px solid #dde5ee;
    border-radius: 14px;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.02),
        0 5px 18px rgba(15, 23, 42, 0.03);
}

.casillero-code-info {
    min-width: 0;
}

.casillero-code-info span {
    display: block;

    margin-bottom: 5px;

    color: #718198;

    font-size: 12px;
    font-weight: 600;
}

.casillero-code-info strong {
    display: block;

    color: #071d3b;

    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.casillero-code-copy {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 10px 15px;

    background: #f7f9fc;
    color: #294966;

    border: 1px solid #d7e0ea;
    border-radius: 9px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.casillero-code-copy:hover {
    background: #eef3f8;
    border-color: #c7d3df;
}


/* =========================================================
   AVISO IMPORTANTE
========================================================= */

.casillero-important {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    margin-bottom: 31px;
    padding: 16px 18px;

    background: #fff9e9;

    border: 1px solid #eedb9b;
    border-radius: 11px;

    color: #70591d;
}

.casillero-important-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #9b7b1d;

    font-size: 15px;
}

.casillero-important strong {
    display: block;

    margin-bottom: 5px;

    color: #654f14;

    font-size: 13px;
}

.casillero-important p {
    margin: 0;

    color: #70591d;

    font-size: 12px;
    line-height: 1.6;
}

.casillero-important p + p {
    margin-top: 7px;
}


/* =========================================================
   DIRECCIONES
========================================================= */

.casillero-addresses {
    width: 100%;
}

.casillero-addresses-header {
    margin-bottom: 18px;
}

.casillero-addresses-header h2 {
    margin: 0 0 6px;

    color: #071d3b;

    font-size: 22px;
    font-weight: 700;
}

.casillero-addresses-header p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   TARJETA DE DIRECCIÓN
========================================================= */

.casillero-address-card {
    width: 100%;

    margin-bottom: 16px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dde5ee;
    border-radius: 14px;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.02),
        0 4px 14px rgba(15, 23, 42, 0.025);
}

.casillero-address-header {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 17px 19px;

    border-bottom: 1px solid #e8edf3;
}

.casillero-address-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f5f9;
    color: #526d8b;

    border-radius: 10px;

    font-size: 15px;
}

.casillero-address-country {
    display: block;

    margin-bottom: 3px;

    color: #718198;

    font-size: 11px;
    font-weight: 600;
}

.casillero-address-header h3 {
    margin: 0;

    color: #0b1f3a;

    font-size: 16px;
    font-weight: 700;
}


/* =========================================================
   TEXTO DE DIRECCIÓN
========================================================= */

.casillero-address-box {
    padding: 18px 19px;

    color: #405773;

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   BOTÓN COPIAR DIRECCIÓN
========================================================= */

.casillero-copy-btn {
    width: 100%;
    min-height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 10px 15px;

    background: #f7f9fc;
    color: #294966;

    border: none;
    border-top: 1px solid #e8edf3;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition: background 0.15s ease;
}

.casillero-copy-btn:hover {
    background: #eef3f8;
}


/* =========================================================
   ACCIONES FINALES
========================================================= */

.casillero-success-actions {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 12px;

    margin-top: 22px;
}

.casillero-copy-all,
.casillero-whatsapp {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 16px;

    border-radius: 9px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;
}

.casillero-copy-all {
    background: #0b3c69;
    color: #ffffff;

    border: none;
}

.casillero-copy-all:hover {
    background: #082f54;
}

.casillero-whatsapp {
    background: #ffffff;
    color: #26734d;

    border: 1px solid #bcd8ca;
}

.casillero-whatsapp:hover {
    background: #f2f8f5;
}


/* =========================================================
   MENSAJE COPIADO
========================================================= */

.casillero-toast {
    position: fixed;

    left: 50%;
    bottom: 25px;

    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 11px 16px;

    background: #172b45;
    color: #ffffff;

    border-radius: 9px;

    font-size: 12px;
    font-weight: 700;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.18);

    opacity: 0;
    visibility: hidden;

    transform:
        translate(-50%, 12px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

.casillero-toast.show {
    opacity: 1;
    visibility: visible;

    transform:
        translate(-50%, 0);
}


/* =========================================================
   RESPONSIVE ÉXITO
========================================================= */

@media (max-width: 650px) {

    .casillero-success-heading {
        gap: 12px;
        margin-bottom: 20px;
    }

    .casillero-success-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;

        border-radius: 10px;

        font-size: 16px;
    }

    .casillero-success-heading h1 {
        font-size: 24px;
    }

    .casillero-success-heading p {
        font-size: 13px;
    }


    .casillero-code-card {
        align-items: stretch;
        flex-direction: column;

        gap: 14px;

        padding: 18px;
    }

    .casillero-code-info strong {
        font-size: 22px;
    }

    .casillero-code-copy {
        width: 100%;
    }


    .casillero-important {
        padding: 14px;
        margin-bottom: 25px;
    }


    .casillero-addresses-header h2 {
        font-size: 20px;
    }


    .casillero-address-header {
        padding: 15px 16px;
    }

    .casillero-address-box {
        padding: 16px;

        font-size: 13px;
    }


    .casillero-success-actions {
        grid-template-columns: 1fr;
    }


    .casillero-copy-all,
    .casillero-whatsapp {
        min-height: 49px;
    }

}