/* Calculadora Protectores */
.cprot {
    max-width: 520px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--cprot-text, #2d3748);
}

/* Aviso informativo (medir pantalla / enviar foto) */
.cprot-notice-info {
    background: var(--cprot-bg, #f8f9fa);
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--cprot-accent, #e94560);
    border-radius: 8px;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    font-size: .85rem;
    line-height: 1.5;
    color: var(--cprot-text, #2d3748);
}

/* Cards */
.cprot-card {
    background: var(--cprot-card, #fff);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    overflow: hidden;
}
.cprot-card--result {
    border-color: var(--cprot-accent, #e94560);
    box-shadow: 0 0 0 2px var(--cprot-accent-rgb-fade, rgba(233,69,96,.1)), 0 2px 8px rgba(0,0,0,.06);
}
.cprot-card__header {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.15rem;
    background: var(--cprot-bg, #f8f9fa);
    border-bottom: 1px solid #e2e8f0;
}
.cprot-card__header h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.cprot-icon { font-size: 1.2rem; }
.cprot-card__body { padding: 1.15rem; }

/* Medidas */
.cprot-measures {
    display: flex;
    align-items: flex-end;
    gap: .75rem;
}
.cprot-field { flex: 1; }
.cprot-field label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #718096;
    margin-bottom: .3rem;
}
.cprot-field input {
    width: 100%;
    padding: .6rem .8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.cprot-field input:focus {
    outline: none;
    border-color: var(--cprot-accent, #e94560);
    box-shadow: 0 0 0 3px var(--cprot-accent-rgb-fade, rgba(233,69,96,.1));
}
.cprot-sep {
    font-size: 1.4rem;
    font-weight: 300;
    color: #a0aec0;
    padding-bottom: .45rem;
}

/* Preview */
.cprot-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    margin-top: 1rem;
}
.cprot-preview__rect {
    border: 2px dashed var(--cprot-accent, #e94560);
    border-radius: 4px;
    background: var(--cprot-accent-rgb-fade2, rgba(233,69,96,.03));
    transition: width .2s, height .2s;
}
.cprot-preview__label {
    font-size: .78rem;
    color: #a0aec0;
}

/* Resultado */
.cprot-row {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    padding: .2rem 0;
}
.cprot-row--muted { font-size: .8rem; color: #718096; }
.cprot-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .6rem;
    padding-top: .7rem;
    border-top: 2px solid var(--cprot-header, #1a1a2e);
    font-size: 1.05rem;
}
.cprot-price {
    font-size: 1.5rem;
    color: var(--cprot-accent, #e94560);
    font-weight: 800;
}

/* Cantidad */
.cprot-cart-section { margin-top: 1rem; }
.cprot-qty {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .85rem;
    font-size: .9rem;
}
.cprot-qty__ctrl {
    display: inline-flex;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.cprot-qty__ctrl button {
    width: 34px;
    height: 34px;
    border: none;
    background: #f8f9fa;
    font-size: 1.1rem;
    cursor: pointer;
    color: #2d3748;
}
.cprot-qty__ctrl button:hover { background: #e2e8f0; }
.cprot-qty__ctrl input {
    width: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    font-size: .9rem;
    -moz-appearance: textfield;
}
.cprot-qty__ctrl input::-webkit-inner-spin-button { display: none; }

/* Botón */
.cprot-btn {
    display: block;
    width: 100%;
    padding: .8rem;
    background: var(--cprot-accent, #e94560);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.cprot-btn:hover { background: var(--cprot-accent-hover, #ff6b81); }
.cprot-btn:active { transform: scale(.98); }
.cprot-btn:disabled { opacity: .4; cursor: not-allowed; }
.cprot-btn--loading { pointer-events: none; opacity: .6; }

/* Avisos */
.cprot-notice {
    margin-top: .6rem;
    padding: .5rem .8rem;
    border-radius: 6px;
    font-size: .83rem;
    display: none;
}
.cprot-notice--ok {
    display: block;
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #c6f6d5;
}
.cprot-notice--err {
    display: block;
    background: #fff5f5;
    color: #e53e3e;
    border: 1px solid #fed7d7;
}
.cprot-error {
    text-align: center;
    padding: .5rem;
    color: #e53e3e;
    font-size: .85rem;
}

/* Responsive */
@media (max-width: 480px) {
    .cprot { margin: 1rem; }
    .cprot-measures { flex-direction: column; }
    .cprot-sep { text-align: center; padding: 0; }
}
