@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400");

/* 🎨 Paleta base */
:root {
    --color-bg: #f9f9f9;
    --color-text: #222;
    --color-accent: #000;
    --color-border: rgba(0, 0, 0, 0.2);
    --color-shadow: rgba(0, 0, 0, 0.15);
    --color-hover: #111;
}

/* 🔹 Reset general */
* {
    font-family: "Open Sans", sans-serif;
    box-sizing: border-box;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-y: auto; /* scroll si es necesario */
    display: flex;
    justify-content: center; /* centrado horizontal */
    align-items: flex-start; /* centrado vertical al inicio */
    background: var(--color-bg);
    color: var(--color-text);
}

/* 🔹 Sección principal */
.signupSection {
    background: linear-gradient(135deg, #ffffff, #eaeaea);
    width: 100%;
    max-width: 800px;
    min-height: 480px;
    margin: 40px 0; /* espacio arriba y abajo */
    text-align: center;
    display: flex;
    flex-direction: column;
    color: var(--color-text);
    box-shadow: 0 8px 25px var(--color-shadow);
    border-radius: 12px;
    padding: 30px;
}

/* 🔹 Columnas */
.columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.column {
    flex: 1;
}

/* 🔹 Información lateral (si la usas) */
.info {
    width: 45%;
    background: linear-gradient(to bottom right, #fff, #f2f2f2);
    padding: 30px 0;
    border-right: 3px solid var(--color-border);
    box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px 0 0 8px;
}

.info h2 {
    font-weight: 400;
}

.info p {
    font-size: 17px;
    color: #555;
}

.icon {
    font-size: 7em;
    padding: 20px 0;
    color: var(--color-accent);
    text-shadow: 0 3px 10px var(--color-shadow);
}

/* 🔹 Formulario principal */
.signupForm {
    width: 100%;
    padding: 40px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--color-shadow);
    transition: 0.3s;
}

.signupForm h2 {
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--color-accent);
}

/* 🔹 Campos de entrada */
.inputFields {
    margin: 15px 0;
    font-size: 16px;
    padding: 12px;
    width: 100%;
    max-width: 300px;
    border: none;
    border-bottom: 2px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.inputFields:focus {
    border-color: var(--color-accent);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 🔹 Botón principal */
.join-btn {
    border: 2px solid var(--color-accent);
    background: linear-gradient(145deg, #f2f2f2, #f0f0f0);
    font-size: 18px;
    color: var(--color-accent);
    margin-top: 20px;
    padding: 12px 40px;
    cursor: pointer;
    border-radius: 30px;
    box-shadow: 0 4px 12px var(--color-shadow);
    transition: all 0.3s ease;
}

.join-btn2 {
    width: 100px;
    height: 100px;
    padding: 0;
    border: 2px solid var(--color-accent);
    background: linear-gradient(145deg, #fff, #f0f0f0);
    font-size: 18px;
    color: var(--color-accent);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 4px 12px var(--color-shadow);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center; /* centra el texto dentro */
    font-weight: bold;
}

.join-btn:hover {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.join-btn2:hover {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.join-btn2.activo-tab {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Estilos para los botones de SweetAlert2 (confirmar y cancelar) */
.swal2-popup .swal2-confirm,
.swal2-popup .swal2-cancel {
    border: 2px solid var(--color-accent);
    background: linear-gradient(145deg, #fff, #f0f0f0);
    font-size: 18px;
    color: var(--color-accent);
    margin-top: 20px;
    padding: 12px 40px;
    cursor: pointer;
    border-radius: 30px;
    box-shadow: 0 4px 12px var(--color-shadow);
    transition: all 0.3s ease;
}

/* Efecto Hover para los botones */
.swal2-popup .swal2-confirm:hover,
.swal2-popup .swal2-cancel:hover {
    background: var(--color-accent); /* Fondo en hover */
    color: #fff; /* Texto blanco */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25); /* Sombra más fuerte */
    transform: translateY(-2px); /* Efecto de "levantamiento" */
}

/* 🔹 Pestañas */
.tabs {
    width: 70%;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: space-between;
    align-items: center; /* ← Esto evita que la imagen estire los botones */
    gap: 12px;
}

.tab-btn {
    padding: 10px 30px;
    cursor: pointer;
    border: none;
    background: #e5e5e5;
    color: #333;
    font-size: 16px;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.tab-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 220px; /* ← Área reservada para el logo */
}

.logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.tab-logo label {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.tab-btn.active {
    background: #000;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tab-btn:hover {
    background: #222;
    color: #fff;
}

/* 🔹 Sin viñetas */
.noBullet {
    list-style-type: none;
    padding: 0;
}

.signupForm {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Columnas */
.columns {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.column {
    width: 48%;
}

/* Labels alineados con el campo */
.signupForm li {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinea el label e input al borde derecho */
    margin-bottom: 15px;
}

/* Label justo encima del campo, alineado con el input */
.signupForm label {
    width: 100%;
    text-align: left;
    font-weight: 600;
    color: black;
    margin-bottom: 5px;
    padding-right: 5px;
    box-sizing: border-box;
}

/* Campos con ancho completo dentro del contenedor */
.inputFields {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

#center-btn {
    display: flex !important; /* Usa flex para alinear en fila */
    justify-content: center !important; /* Centra los botones horizontalmente */
    align-items: center !important; /* Centra verticalmente los botones */
    margin-top: 20px;
    gap: 10px; /* Añadir espacio entre los botones */
}

/* switch de tipo de persona*/
.tipo-cliente-container {
    margin-top: 5%;
    display: flex;
    gap: 15px;
    margin-bottom: 7%;
}

.cliente-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
    font-weight: 600;
    user-select: none;
}

/* Ocultar el radio real */
.cliente-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Crear el círculo visual */
.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #ccc;
    border-radius: 50%;
    transition: background-color 0.3s;
}

/* Color al seleccionar */
.cliente-option input:checked ~ .checkmark {
    background-color: #007bff;
}

/* Punto blanco interior */
.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.cliente-option input:checked ~ .checkmark::after {
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

.loading-bar {
    display: none;
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.loading-bar::after {
    content: "";
    position: absolute;
    left: -40%;
    width: 40%;
    height: 100%;
    background-color: #007bff;
    animation: loadingAnim 1s linear infinite;
    border-radius: 4px;
}

@keyframes loadingAnim {
    0% {
        left: -40%;
    }

    50% {
        left: 60%;
    }

    100% {
        left: 100%;
    }
}

.mensaje {
    position: relative;
    /* relativo al flujo normal */
    margin-top: 6px;
    /* espacio debajo del input */
    width: 100%;
    text-align: center;
    font-weight: 600;
    color: black;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mensaje.visible {
    opacity: 1;
}

.popup {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}
.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    margin: 15% auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.popup-content button {
    margin-top: 10px;
    background: #d33;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}
.info-icon {
    margin-left: 6px;
    cursor: pointer;
    color: #007bff;
    font-weight: bold;
    border: 1px solid #007bff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: relative;
}

/* Tooltip */
.info-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 12px;
    top: -35px;
    left: 25px;
    white-space: nowrap;
    z-index: 10;
}
.info-icon {
    margin-right: 6px; /* 👈 separa el ícono del texto */
}

.inputFields:invalid {
    border: 2px solid red;
}

.inputFields:required:invalid {
    border: 2px solid red;
}

.rfc-search-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Contenedor del input + botón */
.search-input-group {
    display: flex;
    align-items: center; /* 👈 centra verticalmente ambos */
    width: 100%;
    margin-top: 2px; /* opcional, separa del label */
}

/* Input */
.search-input-group .inputFields {
    flex: 1;
    border: 2px solid #ccc;
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 8px 12px;
    font-size: 14px;
    height: 38px;
    line-height: 1.2; /* 👈 ayuda a que el texto no suba visualmente */
    box-sizing: border-box;
    vertical-align: middle;
}

.search-input-group .inputFields:focus {
    border-color: #3085d6;
    outline: none;
}

/* Botón */
.btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3085d6;
    border: 2px solid #3085d6;
    border-radius: 0 6px 6px 0;
    color: #fff;
    cursor: pointer;
    padding: 0 14px;
    font-size: 16px;
    transition: all 0.2s ease;
    height: 38px; /* 👈 igual al input */
    line-height: 1; /* elimina desajuste por herencia */
    box-sizing: border-box;
}

.btn-search:hover {
    background-color: #2563b0;
    border-color: #2563b0;
}

/* Ícono */
.btn-search i {
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
}

/* Personaliza los botones de SweetAlert2 para que coincidan con tus botones */
.swal2-confirm,
.swal2-cancel {
    font-size: 14px; /* Tamaño de la fuente */
    font-weight: bold; /* Peso de la fuente */
    padding: 10px 20px; /* Espaciado interno */
    border-radius: 5px; /* Borde redondeado */
    border: none; /* Sin borde */
    cursor: pointer; /* Aparece como un puntero */
    margin-top: 10px; /* Espacio entre los botones */
    transition: background-color 0.3s ease; /* Animación para el cambio de color */
}

/* Estilo para el botón de confirmación */
.swal2-confirm {
    background-color: #28a745; /* Verde (el color de tus botones como "validar" y "timbrar") */
    color: white;
}

/* Estilo para el botón de cancelación */
.swal2-cancel {
    background-color: #dc3545; /* Rojo (para el botón de "Cancelar") */
    color: white;
}

/* Estilo para el hover del botón de confirmación */
.swal2-confirm:hover {
    background-color: #218838; /* Cambio a un verde más oscuro */
}

/* Estilo para el hover del botón de cancelación */
.swal2-cancel:hover {
    background-color: #c82333; /* Cambio a un rojo más oscuro */
}

.inputFields,
select,
input[type="date"] {
    height: 40px; /* Ajusta la altura según tus necesidades */
    line-height: 40px; /* Centra el texto verticalmente */
    padding: 0 10px; /* Ajusta el relleno a tu gusto */
    font-size: 16px; /* Asegura que el texto sea legible */
    box-sizing: border-box; /* Asegura que el padding no afecte el tamaño total */
}

.strong-line {
    border: none !important;
    background-color: #000000 !important;
    height: 1px !important;
    display: block !important;
    opacity: 1 !important;
    width: 100%;
}

/* ============================= */
/*  RESPONSIVE: TABLET Y MÓVIL   */
/* ============================= */

/* Hasta 768px (tablet y móviles grandes) */
/* ============================= */
/*  RESPONSIVE: TABLET Y MÓVIL   */
/* ============================= */

/* ============================= */
/*  RESPONSIVE: TABLET Y MÓVIL   */
/* ============================= */

@media (max-width: 768px) {
    body {
        align-items: stretch;
        padding: 10px;
    }

    .signupSection {
        margin: 20px 0;
        padding: 20px 15px;
        max-width: 100%;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    /* Pestañas superiores */
    .tabs {
        width: 100%;
        margin-bottom: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .join-btn2 {
        width: 70px;
        height: 70px;
        font-size: 14px;
    }

    .tab-logo {
        width: auto;
        max-width: 50%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .logo-img {
        width: 60px;
        height: 60px;
        object-fit: contain;
    }

    .tab-logo label {
        font-size: 14px;
        text-align: center;
        line-height: 1.1;
        word-wrap: break-word;
    }

    /* Formulario más compacto */
    .signupForm {
        padding: 20px 10px;
        box-shadow: none;
    }

    /* Columnas se apilan una debajo de la otra */
    .columns {
        flex-direction: column;
        gap: 10px;
    }

    .column {
        width: 100%;
    }

    /* Inputs y selects a ancho completo */
    .signupForm li {
        width: 100%;
    }

    .inputFields,
    .signupForm select,
    .signupForm input[type="date"] {
        max-width: 100%;
        font-size: 14px;
        height: 38px;
        line-height: 38px;
    }

    /* Contenedor de botones principales */
    #center-btn,
    .signupSection > form > div:last-child {
        display: flex;
        flex-direction: column !important;
        gap: 10px;
    }

    .join-btn {
        width: 100%;
        padding: 10px 0;
        font-size: 16px;
    }

    /* Input + botón buscar (RFC y Recibo) en móviles */
    .search-input-group {
        flex-direction: row;
        align-items: stretch;
    }

    .search-input-group .inputFields {
        border-radius: 6px 0 0 6px;
    }

    .btn-search {
        padding: 0 12px;
        font-size: 14px;
        height: 38px;
    }

    /* Mensaje superior (validaciones) */
    .mensaje {
        font-size: 13px;
    }

    /* Popup centrado mejor en móviles */
    .popup-content {
        width: 90%;
        margin: 40% auto;
    }

    .search-input-group {
        display: flex;
        align-items: center; /* centra verticalmente ambos */
        margin-top: 4px;
    }

    .search-input-group .inputFields,
    .search-input-group .btn-search {
        height: 40px; /* misma altura para los dos */
        line-height: 40px;
        padding-top: 0;
        padding-bottom: 0;
        box-sizing: border-box;
    }

    .search-input-group .inputFields {
        border-radius: 6px 0 0 6px;
        border-width: 1px; /* si prefieres, pon 2px pero igual en ambos */
    }

    .search-input-group .btn-search {
        border-radius: 0 6px 6px 0;
        border-width: 1px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-input-group .btn-search i {
        line-height: 1; /* evita que el ícono empuje el botón raro */
    }
}

/* ============================= */
/*      MÓVIL MUY PEQUEÑO        */
/* ============================= */

@media (max-width: 480px) {

    .lineaInferior {
        margin-top: -50px !important;
    }
    .lineaSuperior {
        margin-top: -26px !important;
    }
    .BotonDescargar {
        margin-top: -20px !important;
    }



    .formaPago {
        margin-bottom: -15px !important;
    }
    .DatosCliente{
    margin-top: 5% !important;
    }
    .signupSection {
        padding: 15px 10px;
    }

    .tabs {
        gap: 8px;
    }

    .join-btn2 {
        width: 70px;
        height: 70px;
        font-size: 14px;
    }

    .logo-img {
        width: 60px;
        height: 60px;
    }

    .tab-logo label {
        font-size: 14px;
    }

    .signupForm label {
        font-size: 13px;
    }

    .inputFields,
    .signupForm select,
    .signupForm input[type="date"] {
        font-size: 13px;
        padding: 0 8px;
        height: 36px;
        line-height: 36px;
    }

    .btn-search {
        font-size: 13px;
        padding: 0 10px;
        height: 36px;
    }

    .info-icon {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .join-btn {
        font-size: 15px;
        padding: 8px 0;
    }

    .popup-content {
        margin: 50% auto;
        padding: 15px;
    }
}

label[style*="text-align: center"] {
    margin-top: -40px;
    display: block;
}

.texto-30min {
    margin-top: -15px;
    font-size: 12px;
    color: red;
    font-weight: bold;
}

.aviso-container {
    text-align: right;
    font-size: 12px;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 0;
}

.aviso-link {
    color: #007bff;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    line-height: 1;
    display: inline-block;
    margin-top: 8px;
}


/* Reduce el espacio entre label e input/select */
.signupForm label {
    display: block;
    margin-bottom: 3px !important; /* antes suele ser 10px-15px */
    font-weight: bold;
}

/* Opcional: reduce margen superior de los inputs/selects */
.signupForm .inputFields,
.signupForm select {
    margin-top: 2px !important;
}


.noBullet li {
    margin-bottom: 10px;
}


.search-input-group .btn-search {
    height: 38px; /* mismo alto del input */
     margin-bottom: 12px;
}

