/* =========================
   BASE – MOBILE FIRST
========================= */

.hc-calculator {
    border: 1px solid #20263A;
    border-radius: 20px;
    padding: 20px 20px;
    width: 100%;
    background: #141A2B;
    color: #fff;
    margin: 0 auto;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-calculator h2 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.hc-calculator p {
    font-size: 16px;
    font-weight: 400;
}

.hc-calculator label {
    display: block;
    margin: 15px 0px;
    font-size: 14px;
}

.hc-total {
    /* float: right; */
    border: 1px solid #20263A;
    float: inline-start;
    display: inline;
    text-align: center;
    width: 100%;
    font-size: 20px;
    font-weight: 700;
    background: #101522;
    padding: 20px 0px;
    border-radius: 10px;
}

#hc-plan {
    appearance: none;              /* quitamos estilo nativo */
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 100%;
    max-width: 100%;
    border: 1px solid #20263A;
    border-radius: 10px;
    background-color: #101522;
    color: #fff;

    font-size: 18px;
    font-weight: 500;

    padding: 16px 56px 16px 18px;   /* espacio extra a la derecha */
    cursor: pointer;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235AF3FF'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 20px;        /* ícono más grande */

    transition: all .2s ease;
}

#hc-plan:hover {
    border-color: #5AF3FF;
}

#hc-plan:focus {
    outline: none;
    border-color: #5AF3FF;
    box-shadow: 0 0 0 3px rgba(90,243,255,.25);
}

#hc-plan option {
    background: #101522;
    color: #fff;
    padding: 10px;
}


/* Contenedor opcional */
.hc-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Ocultamos el checkbox nativo */
.hc-extra {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Caja visual */
.hc-checkbox span {
    width: 20px;
    height: 20px;
    border: 2px solid #20263A;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    background: transparent;
    margin-right: 6px;
}

/* Check */
.hc-checkbox span::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #5AF3FF;
    border-radius: 3px;
    transform: scale(0);
    transition: transform .15s ease;
}

/* Estado activo */
.hc-extra:checked + span {
    background: rgba(90, 243, 255, 0.15);
    border-color: #5AF3FF;
}

.hc-extra:checked + span::after {
    transform: scale(1);
}

/* Hover */
.hc-checkbox:hover span {
    border-color: #7ff7ff;
}

/* Focus accesible */
.hc-extra:focus + span {
    box-shadow: 0 0 0 3px rgba(90, 243, 255, 0.3);
}


/* =========================
   TABLET
========================= */
@media (min-width: 768px) {

    .hc-calculator {
        padding: 20px;
        border-radius: 18px;
    }

    .hc-calculator h2 {
        font-size: 20px;
    }

    .hc-calculator label {
        font-size: 15px;
        margin: 20px 0;
    }

    .hc-total {
        font-size: 22px;
    }

    #hc-plan {
        padding: 10px 12px;
    }
}

/* =========================
   DESKTOP
========================= */
@media (min-width: 1024px) {

    .hc-calculator {
        max-width: 1200px;
        margin: 0 auto;
        padding: 24px 28px;
        border-radius: 20px;
    }

    .hc-calculator h2 {
        font-size: 22px;
    }

    .hc-calculator label {
        font-size: 16px;
        margin: 20px 0px;
    }

    .hc-total {
        font-size: 24px;
    }

    #hc-plan {
        font-size: 20px;
        padding: 18px 60px 18px 20px;
        background-size: 22px;
    }
}

/* =========================
   LARGE SCREENS
========================= */
@media (min-width: 1400px) {

    .hc-calculator {
        max-width: 1400px;
        padding: 28px 32px;
    }

    .hc-calculator h2 {
        font-size: 24px;
    }

    .hc-total {
        font-size: 26px;
    }
}
