:root {
    --cfdi-verde: #7ac943;
    --cfdi-verde-2: #8cd04a;
    --cfdi-verde-amarillo: #c5e550;
    --cfdi-verde-claro: #f1fbea;
    --cfdi-azul: #0b1a3a;
}

.cfdi-gratis-page {
    padding-top: 130px;
    padding-bottom: 60px;
    min-height: 70vh;
}

.cfdi-gratis-page h1 span,
.cfdi-gratis-page h2 span {
    font-size: 1em;
}

.cfdi-inicio,
.cfdi-validar {
    font-family: "Encode Sans";
    color: var(--cfdi-azul);
}

.cfdi-inicio {
    overflow-x: hidden;
}

.cfdi-text-verde { color: var(--cfdi-verde) !important; }
.cfdi-text-azul { color: var(--cfdi-azul) !important; }
.cfdi-text-naranja { color: #f08c00 !important; }
.cfdi-text-rojo { color: #e11d48 !important; }
.cfdi-bg-verde { background-color: var(--cfdi-verde) !important; }
.cfdi-bg-azul { background-color: var(--cfdi-azul) !important; }
.cfdi-bg-verde-claro { background-color: var(--cfdi-verde-claro) !important; }
.cfdi-bg-naranja-claro { background-color: #fff1db !important; }
.cfdi-bg-rojo-claro { background-color: #fde2e2 !important; }
.cfdi-border-verde { border-color: var(--cfdi-verde) !important; }
.cfdi-border-azul { border-color: var(--cfdi-azul) !important; }

.cfdi-rounded { border-radius: 24px !important; }
.cfdi-rounded-md { border-radius: 16px !important; }

.cfdi-circulo {
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cfdi-gratis-btn {
    background: var(--ct-blue);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    padding: .7rem 2rem;
    border: none;
}

    .cfdi-gratis-btn:hover,
    .cfdi-gratis-btn:focus {
        background: var(--ct-primary);
        color: #fff;
    }

    .cfdi-gratis-btn:disabled {
        opacity: .6;
    }

.cfdi-validar .cfdi-gratis-btn {
    background: linear-gradient(90deg, var(--cfdi-verde), var(--cfdi-verde-2));
}

    .cfdi-validar .cfdi-gratis-btn:hover,
    .cfdi-validar .cfdi-gratis-btn:focus {
        background: var(--cfdi-azul);
    }

.cfdi-gratis-btn-outline {
    border: 2px solid var(--ct-blue);
    color: var(--ct-blue);
    border-radius: 999px;
    font-weight: 700;
    padding: .6rem 1.5rem;
    background: transparent;
}

    .cfdi-gratis-btn-outline:hover {
        background: var(--ct-blue);
        color: #fff;
    }

/*** Dropzone (el CSS de la plantilla no se carga en las vistas públicas) ***/
.cfdi-dropzone {
    border: 2px dashed var(--ct-primary);
    border-radius: 20px;
    background: #fafdf8;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    padding: 2rem 1rem;
    transition: background .2s ease;
}

    .cfdi-dropzone.dz-drag-hover {
        background: #f0ffeb;
    }

    .cfdi-dropzone .dz-message {
        margin: 0;
    }

    .cfdi-dropzone .dz-preview {
        display: none;
    }

.cfdi-dropzone-icon {
    font-size: 3rem;
    color: var(--ct-primary);
}

.cfdi-muy-bien {
    color: var(--cfdi-verde) !important;
    font-size: clamp(3rem, 8vw, 5.5rem);
    letter-spacing: -.02em;
}

.cfdi-mw-input {
    max-width: 560px;
}

.cfdi-gratis-rfc {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 1.25rem;
    border: 2px solid #cfd4dc;
    border-radius: 16px;
    padding: 1rem 1.25rem;
}

    .cfdi-gratis-rfc::placeholder {
        text-transform: none;
        letter-spacing: normal;
        color: #9aa1ab;
    }

    .cfdi-gratis-rfc:focus {
        border-color: var(--cfdi-verde);
        box-shadow: 0 0 0 .25rem rgba(122, 201, 67, .2);
    }

.cfdi-opcion {
    min-height: 130px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
    .cfdi-opcion:focus-visible {
        outline: 3px solid var(--cfdi-verde);
        outline-offset: 3px;
    }

    .cfdi-opcion:disabled {
        cursor: default;
        opacity: .7;
    }

    .cfdi-opcion[aria-busy="true"] {
        opacity: 1;
    }

.cfdi-hero {
    height: 600px;
}

.cfdi-hero-circulo {
    right: -10%;
    top: 12%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at 30% 70%, #ffffff 0%, #d9f2c4 35%, var(--cfdi-verde) 85%);
}

.cfdi-hero-telefono {
    right: 4%;
    top: 0;
    height: 92%;
    z-index: 3;
}

.cfdi-hero-flotante-1 {
    left: 4%;
    top: 20%;
    z-index: 2;
}

.cfdi-hero-flotante-2 {
    left: -8%;
    top: 45%;
    max-width: 260px;
    z-index: 2;
}

.cfdi-barras {
    gap: 5px;
    height: 56px;
}

    .cfdi-barras span {
        width: 18px;
        border-radius: 5px;
    }

.drops-free {
    width: 1em;
    vertical-align: 0.3em;
    position: absolute;
    left: 90%;
    bottom: 75%;
}

        .cfdi-barras span:nth-child(1) { height: 45%; background: #b7e39a; }
        .cfdi-barras span:nth-child(2) { height: 70%; background: var(--cfdi-verde); }
        .cfdi-barras span:nth-child(3) { height: 100%; background: var(--cfdi-azul); }

@media (max-width: 1399.98px) {
    .cfdi-hero-flotante-1 {
        left: revert;
        right: 66%;
    }

    .cfdi-hero-flotante-2 {
        left: revert;
        right: 72%;
        width: 54%;
    }

    .cfdi-hero-circulo {
        right: -14%;
    }
}

@media (max-width: 1199.98px) {
    .cfdi-hero { height: 500px; }
    .cfdi-hero-circulo { width: 400px; height: 400px; }
}

.cfdi-segmentos {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

    .cfdi-segmentos span {
        height: 10px;
        border-radius: 999px;
        background: #e5e7eb;
    }

        .cfdi-segmentos span.activo {
            background: linear-gradient(90deg, #2e7d32, var(--cfdi-verde), var(--cfdi-verde-amarillo));
        }

.cfdi-select {
    min-width: 120px;
    border-radius: 10px;
    color: #fff;
    background-color: var(--cfdi-verde);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    cursor: pointer;
}

    .cfdi-select:focus {
        box-shadow: 0 0 0 .25rem rgba(122, 201, 67, .3);
    }

    .cfdi-select option {
        color: var(--cfdi-azul);
        background: #fff;
    }

.cfdi-resultados-table > :not(caption) > * > * {
    padding: .9rem .6rem;
}

.cfdi-resultados-table .badge {
    font-size: .85rem;
}

.cfdi-col-texto {
    min-width: 150px;
    max-width: 240px;
}

.cfdi-btn-continuar {
    background: linear-gradient(90deg, var(--cfdi-verde), var(--cfdi-verde-amarillo));
    box-shadow: 0 8px 20px rgba(122, 201, 67, .35);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .cfdi-btn-continuar:hover,
    .cfdi-btn-continuar:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(122, 201, 67, .45);
    }

    .cfdi-btn-continuar:focus-visible {
        outline: 3px solid var(--cfdi-azul);
        outline-offset: 3px;
    }
