:root {
    --bg: #ffffff;
    /* Fondo principal blanco */
    --card: #e8e8e885;
    /* Color de las tarjetas, muy claro con un toque cálido */
    --ink: #000000;
    /* Texto negro */
    --muted: #555555;
    /* Texto secundario gris oscuro */
    --accent: #FF8E1C;
    /* Color naranja brillante */
    --line: rgba(0, 0, 0, .2);
    /* Líneas sutiles para bordes y separadores */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    /* background:
        radial-gradient(circle at bottom left, rgba(255, 166, 102, 0.2) 0%, transparent 60%),
        radial-gradient(circle at bottom right, rgba(255, 204, 153, 0.15) 0%, transparent 60%),
        linear-gradient(to bottom, #ffffff 0%, #fff8f2 100%); */
    background-color: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wrap {
    max-width: 980px;
    margin: 48px auto;
    padding: 0 20px;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .9));
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    padding: 1rem;
    backdrop-filter: blur(6px);
}

h1 {
    margin: 0 0 8px;
    font-size: 26px;
    letter-spacing: .2px;
    color: var(--ink);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.full {
    grid-column: 1 / -1;
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 6px;
}

.helper {
    display: block;
    font-size: 12px;
    color: var(--muted);
    opacity: .9;
    margin-top: 4px;
}

.title_parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    margin-top: 12px;
}

.dc_logo {
    width: 50%;
}

input[type=number],
select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    outline: none;
}

input[type=number]:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, .2);
}

.results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.pill {
    padding: 16px;
    border-radius: 14px;
    border: 1px dashed var(--line);
    background: rgba(255, 102, 0, .05);
    color: var(--ink);
}

.label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.value {
    font-size: 28px;
    font-weight: 700;
    min-height: 32px;
}

.row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

button {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

button.secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.two_buttons {
    display: flex;
    gap: .5rem;
    padding: 0px;
    margin: 0px;
    padding-right: 1rem;
    padding-left: .8rem;
}

details {
    background: rgba(255, 102, 0, .05);
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 12px;
    margin-top: 12px;
}

details summary {
    cursor: pointer;
    color: var(--muted);
    margin: -12px;
    padding: 12px;
}

.hidden_panel {
    display: none;
    margin-top: 12px;
    width: 100%;
    margin-left: .2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hid_panel_parent {
    padding: 0px;
}

.hid_inpt {
    width: 50% !important;
    text-align: center;
}

.chips {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    grid-column: span 2;
}

.chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--muted);
    font-size: 12px;
}

.tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    cursor: help;
}

.tip::after {
    content: attr(data-title);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 130%;
    background: #ffffff;
    color: #000;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    min-width: 220px;
    max-width: 320px;
    opacity: 0;
    pointer-events: none;
    transition: .15s;
    white-space: normal;
    line-height: 1.35;
}

.tip:hover::after,
.tip:focus::after {
    opacity: 1;
}

.results_muted {
    padding: 15px;
    background-color: rgba(147, 147, 147, 0.40);
    border-radius: 10px;
    cursor: not-allowed;
}

.results_done {
    padding: 15px;
    background-color: #f8dec85a;
    border-radius: 10px;
    cursor: default;
}

.extended-label {
    display: inline-block;
    background: linear-gradient(90deg, #ff7a00, #ff9100);
    /* naranja llamativo */
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform .08s ease, box-shadow .12s ease;
    margin-bottom: 6px;
}

.extended-label:hover,
.extended-label:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    outline: none;
}

/* Si quieres que el texto 'i' tip mantenga su estilo */
.extended-label .tip {
    margin-left: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 2px 6px;
    border-radius: 50%;
}

.emailPanel,
.codePanel {
    background-color: #ff8e1c58;
    padding: 10px;
    border-radius: 10px;
}

.more_information_dc_btn {
    background-color: #ff8e1c;
    border-style: none;
    transition: all .5s;
}

.more_information_dc_btn:hover {
    background-color: #e27d19;
}

.version_div {
    position: fixed;
    right: 10px;
    bottom: 0px;
    color: rgba(128, 128, 128, 0.5);
    cursor: default;
    font-size: 12px;
}

.modal-welcome {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-content-welcome {
    background: white;
    padding: 30px 60px;
    border-radius: 10px;
    max-width: 60%;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.btn-close-welcome {
    background: #FF8E1C;
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: all .5s;
}

.btn-close-welcome:hover {
    background: #d47517;
}

@media (max-width:760px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .results {
        grid-template-columns: 1fr;
    }
}

/* Print for PDF */
@media print {
    body {
        background: #fff;
    }

    .card {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        border: none !important;
    }

    .wrap {
        margin: 0;
        padding: 0;
        max-width: 100%;
    }

    button,
    details,
    .chips {
        display: none !important;
    }

    .label {
        color: #333 !important;
    }

    .value {
        color: #000 !important;
    }
}