
/* ========================================
   RESET GENERAL
======================================== */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #4d4d4d;
    background-color: #ffffff;
}

/* ========================================
   ENCABEZADO
======================================== */

.encabezado {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.encabezado picture {
    display: block;
    width: 100%;
}

.encabezado-imagen {
    display: block;
    width: 100%;
    height: auto;
}

/* ========================================
   CONTENIDO PRINCIPAL
======================================== */

#contenido {
    width: 100%;
    padding: 35px 20px 55px;
}

.contenido-interior {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
}

/* ========================================
   TITULO
======================================== */

.titulo-destino {
    margin: 0 auto 30px;
    color: #4d4d4d;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}

/* ========================================
   CONTENEDOR DEL FORMULARIO
======================================== */

.form-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 35px 45px 30px;
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 22px;

    /* Sombra gris del contenedor original */
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.16);
}

.form-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ========================================
   TEXTO DEL FORMULARIO
======================================== */

.search-icon {
    position: relative;
}

h2.search-icon {
    width: 100%;
    margin: 0 0 24px;
    color: #4d4d4d;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

/* ========================================
   CAMPO DE SEGUIMIENTO
======================================== */

.seguimiento-select-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 54px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #c9c9c9;
    border-radius: 14px;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.input-container:focus-within {
    border-color: #e8b51d;
    box-shadow: 0 0 0 3px rgba(255, 194, 36, 0.18);
}

.add-on.left {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: 58px;
    padding: 0 15px;
    color: #555555;
    font-size: 16px;
    font-weight: 600;
    background: #f5f5f5;
    border-right: 1px solid #dedede;
}

.codigo {
    display: block;
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    color: #444444;
    font-family: inherit;
    font-size: 16px;
    background: transparent;
    border: none;
    outline: none;
}

.codigo::placeholder {
    color: #999999;
    opacity: 1;
}

/* ========================================
   BOTÓN AMARILLO CON LUPA
======================================== */

.submit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 16px auto 0;
}

#btsubmit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-direction: row-reverse;
    gap: 10px;

    width: 100%;
    max-width: 380px;
    min-height: 25px;
    padding: 5px 30px;

    color: #333333;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    text-align: center;

    background-color: #FFCE00;
    border: none;
    border-radius: 30px;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.12);

    cursor: pointer;
    transition: background-color 0.2s ease,
                box-shadow 0.2s ease,
                transform 0.2s ease;
}

/* Lupa dibujada en CSS, sin archivos adicionales */

#btsubmit {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    max-width: 380px;
    min-height: 25px;
    padding: 8px 30px;

    color: #333333;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 500;

    background-color: #FFCE00;
    border: none;
    border-radius: 30px;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.12);

    cursor: pointer;
}

/* Lupa SVG alineada a la derecha */
#btsubmit::before {
    content: "";
    display: block;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='8' cy='8' r='5.5' fill='none' stroke='%23333' stroke-width='2.5'/%3E%3Cpath d='M12.2 12.2 L17 17' fill='none' stroke='%23333' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Desactivar el mango anterior */
#btsubmit::after {
    content: none;
}


#btsubmit:hover {
    background-color: #f5b500;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}

#btsubmit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

#btsubmit:focus-visible {
    outline: 3px solid #154f8e;
    outline-offset: 3px;
}

/* ========================================
   MENSAJE INFORMATIVO
======================================== */

.center {
    width: 100%;
    max-width: 580px;
    margin: 28px auto 0;
    color: #777777;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
}

/* ========================================
   RESULTADOS
======================================== */

.resultado-container {
    width: 100%;
    margin: 25px auto 0;
}

.log {
    width: 100%;
    overflow-wrap: anywhere;
}

/* ========================================
   ESTADO DE PROCESAMIENTO
======================================== */

#processlabel {
    display: inline-block;
    margin-top: 14px;
    padding: 7px 15px;
    color: #555555;
    font-size: 13px;
    background: #f3f3f3;
    border-radius: 20px;
}

#processlabel.hide {
    display: none;
}

/* ========================================
   PIE DE PÁGINA
======================================== */

.pie-pagina {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.pie-pagina picture {
    display: block;
    width: 100%;
}

.footer-imagen {
    display: block;
    width: 100%;
    height: auto;
}

/* ========================================
   RESPONSIVE: TABLETS
======================================== */

@media (max-width: 767px) {
    #contenido {
        padding: 28px 18px 40px;
    }

    .titulo-destino {
        margin-bottom: 24px;
        font-size: 25px;
    }

    .form-container {
        max-width: 560px;
        padding: 30px 25px;
        border-radius: 20px;
    }

    h2.search-icon {
        font-size: 19px;
    }

    .seguimiento-select-container {
        max-width: 100%;
    }

    #btsubmit {
        max-width: 100%;
        min-height: 56px;
    }

    #btsubmit::after {
        left: calc(50% - 43px);
    }

    .center {
        font-size: 14px;
    }
}

/* ========================================
   RESPONSIVE: CELULARES
======================================== */

@media (max-width: 480px) {
    #contenido {
        padding: 22px 14px 32px;
    }

    .titulo-destino {
        margin-bottom: 20px;
        font-size: 22px;
        line-height: 1.35;
    }

    .form-container {
        padding: 25px 18px;
        border-radius: 18px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    }

    h2.search-icon {
        margin-bottom: 20px;
        font-size: 17px;
    }

    .input-container {
        min-height: 50px;
        border-radius: 12px;
    }

    .add-on.left {
        min-width: 48px;
        padding: 0 12px;
        font-size: 14px;
    }

    .codigo {
        height: 48px;
        padding: 0 12px;
        font-size: 15px;
    }

    .submit-container {
        margin-top: 20px;
    }

    #btsubmit {
        min-height: 54px;
        padding: 13px 24px;
        font-size: 16px;
        border-radius: 30px;
    }

    #btsubmit::after {
        top: 30px;
    }

    .center {
        margin-top: 23px;
        font-size: 13px;
        line-height: 1.65;
    }

    .resultado-container {
        margin-top: 20px;
    }
}

/* Capa de carga */
#loader-container {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
}

/* Rueda de carga */
#loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    border: 5px solid #444;
    border-top-color: #ffce00;
    border-radius: 50%;
    box-sizing: border-box;
    animation: giro-loader 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes giro-loader {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
