/* Estilos generales (desktop/tablet) */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: black;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: white;
}
.AMX-Bold {
    font-family: 'AMX-Bold'
}

.fontArial {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.rojo-claro {
    background-color: #D61B1F;
}


body {
    /* Layout flex para footer abajo */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Asegura que ocupe al menos toda la pantalla */
}

.header {
    background-color: #d61b1f;
    text-align: center;
    padding: 15px 0;
}

.header img {
    height: 4rem;
    vertical-align: middle;
}

.main-title {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 18px;
    color: white;
    font-style: italic;
}

.logo-text {
    text-align: center;
    margin-top: 5px;
    font-weight: bold;
    font-size: 28px;
    color: white;
    font-style: italic;
}

.logo-text .claro {
    color: #d61b1f;
}

.subtitle {
    text-align: center;
    font-size: 14px;
    color: white;
    margin-bottom: 35px;
}

.form-wrapper {
    max-width: 420px;
    margin: 0 auto 40px;
    padding: 20px 25px;
    background: white;
    border-radius: 20px;
    color: #333;
}

.step-circle {
    width: 30px;
    height: 30px;
    background: #d61b1f;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 17px;
    font-family: 'AMX-Bold';
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px auto;
    padding-top: 3px;
}

h2 {
    text-align: center;
    margin: 0 0 10px;
    font-weight: bold;
    color: #444;
}

p.description {
    text-align: center;
    margin: 0 0 25px;
    font-size: 14px;
    color: #444;
}

input[type="text"] {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #ccc;
    padding: 0 12px;
    font-size: 14px;
    color: #888;
    box-sizing: border-box;
}

input[type="text"]::placeholder {
    color: #ccc;
}

/* Estilo para el select de tipo de identificación - GENERAL */
select[name="tipo_identificacion"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    outline: none;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 15px;
    box-sizing: border-box;
    height: 40px;
}

select[name="tipo_identificacion"]:focus {
    border-color: #d61b1f;
    box-shadow: 0 0 4px rgba(214, 27, 31, 0.5);
}

/* Opcional: placeholder / primera opción más tenue */
select[name="tipo_identificacion"] option[value=""] {
    color: #999;
}

button {
    width: 100%;
    background-color: #444444;
    color: white;
    font-size: 16px;
    padding: 12px 0;
    margin-top: 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #555555;
}

/* Contenedor para el contenido principal (todo menos footer) */
.main-content {
    flex: 1; /* Simplificado - solo ocupa el espacio restante */
}

/* Imagen antes del footer */
.image-footer {
    text-align: center;
    margin: 30px 0 0 0; /* Solo margen superior */
}

.image-footer img {
    max-width: 100%;
    height: auto;
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px 0;
    background-color: #222;
    color: #fff;
    width: 100%;
    margin: 0;
}

/* --- Media Query para celulares --- */
@media screen and (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .header {
        padding: 10px 0;
    }

    .header img {
        height: 45px;
    }

    .main-title {
        font-size: 20px;
        margin-top: 20px;
        margin-bottom: 5px;
        font-style: normal;
        font-weight: 600;
    }

    .logo-text {
        font-size: 24px;
        font-weight: 900;
        margin-top: 0;
        font-style: normal;
        color: #d61b1f;
        letter-spacing: 1px;
    }

    .logo-text .claro {
        color: #d61b1f;
    }

    .subtitle {
        font-size: 13px;
        margin-bottom: 25px;
        padding: 0 15px;
        color: white;
        text-align: center;
    }

    .form-wrapper {
        max-width: 90%;
        padding: 15px 15px;
        margin-bottom: 30px;
    }

    /* Imagen footer y footer para móvil */
    .image-footer {
        margin: 20px 0 15px 0;
    }

    .footer {
        padding: 15px 0;
    }

    /* Ajuste específico del select en móviles si es necesario */
    select[name="tipo_identificacion"] {
        border-radius: 8px;
    }
}

.btn-outline-blue {
    background-color: transparent;
    color: #418af8;          /* Azul hexa */
    border: 2px solid #418af8;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
}

.btn-outline-blue:hover {
    background-color: transparent;
    color: #418af8;
    border-radius: 30px;

}

/* Estilo para el select de tipo de identificación - GENERAL */
select[name="tipo-servicio"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    outline: none;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 15px;
    box-sizing: border-box;
    height: 40px;
}

select[name="tipo-servicio"]:focus {
    border-color: #d61b1f;
    box-shadow: 0 0 4px rgba(214, 27, 31, 0.5);
}

/* Opcional: placeholder / primera opción más tenue */
select[name="tipo-servicio"] option[value=""] {
    color: #999;
}

/* font-size:1.5rem; width:3rem; height:3rem; line-height:3rem; */

.input-codigo-otp {
    width: 3rem !important;
    height: 3rem !important;
    font-size: 1.5rem !important;
    line-height: 3rem !important;
}

.boder-radius-select {
    border-radius: .6rem;
}

.plan-pill {
    background-color: #C7F9FC;
    border-radius: 50rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-check-label {
    width: 100%;
    border-radius: 50rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border: 1px solid transparent; /* ← borde base */
    transition: all 0.3s ease;
    color: #028290;
    font-weight: 600;
}
/* Cuando el checkbox está activo */
.form-check-input:checked + .form-check-label {
    background-color: #FFE3E3; /* rojo Bootstrap */
    border-color: #DF4237;
    color: #DF4237;
    font-weight: 600;

}

.form-check-input {
    margin-left: 0;
}

/* Círculo exterior */
.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #979797;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

/* Punto rojo (inicialmente oculto) */
.custom-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

input[type="radio"]:checked + label .custom-radio {
    border-color: red;
}

input[type="radio"]:checked + label .custom-radio::after {
    opacity: 1;
}

input[type="radio"]:checked + label {
    border-color: red;
}



/* loader */
/* #global-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ddd;
    border-top: 5px solid red;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

*/

/* Loader full screen */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* fondo semitransparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Caja blanca donde va el GIF */
.gif-container {
    width: 80px;             /* tamaño del recuadro */
    height: 80px;
    background: #fff;         /* fondo blanco */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;       /* opcional, esquinas redondeadas */
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* El GIF centrado */
.loader-gif {
    width: 50px;
    height: 50px;
}

/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}