/* ===== ESTILOS CALCULADORA COSTOS DE REGISTRO CAMERAL 2026 ===== */
.registro-hero {
    background: linear-gradient(135deg, #182848 0%, #29487d 50%, #3b6998 100%);
    padding: 150px 0 70px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.registro-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(248, 130, 41, 0.12);
    right: -100px;
    top: -100px;
    pointer-events: none;
}

.registro-wrap {
    padding: 60px 0 90px;
    background: #f8fafc;
}
.registro-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    gap: 28px;
    align-items: start;
}
.registro-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
    padding: 34px;
}
.registro-step {
    display: flex;
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 22px;
}
.registro-step-badge {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #fff7ed;
    color: var(--secondary);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1rem;
    flex-shrink: 0;
}
.reg-field {
    display: block;
    margin-bottom: 20px;
}
.reg-field > label, .reg-field > span {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}
.reg-field small {
    display: block;
    color: #64748b;
    font-size: 0.74rem;
    margin-top: 5px;
    line-height: 1.4;
}
.reg-select {
    width: 100%;
    height: 48px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    padding: 0 14px;
    font-weight: 600;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.reg-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(248, 130, 41, 0.18);
}
.reg-money-input {
    display: flex;
    align-items: center;
    height: 48px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    padding: 0 14px;
    gap: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.reg-money-input:focus-within {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(248, 130, 41, 0.18);
}
.reg-money-input b {
    color: #64748b;
    font-size: 0.95rem;
}
.reg-money-input input {
    border: none;
    outline: none;
    width: 100%;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
}
.quick-cap-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    color: #334155;
    transition: all 0.15s ease;
}
.quick-cap-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: #fff7ed;
}

/* TOGGLES EN CASILLA */
.toggle-card-option {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.toggle-card-option.checked {
    border-color: var(--secondary);
    background: #fffaf5;
}
.toggle-card-option-info {
    max-width: 80%;
}
.toggle-card-option-info h4 {
    margin: 0 0 3px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
}
.toggle-card-option-info p {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

/* SWITCH ESTILO iOS */
.switch-reg {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.switch-reg input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider-reg {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: 0.2s ease;
    cursor: pointer;
}
.slider-reg::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    left: 3px;
    top: 3px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: 0.2s ease;
}
.switch-reg input:checked + .slider-reg {
    background: var(--secondary);
}
.switch-reg input:checked + .slider-reg::after {
    transform: translateX(20px);
}

/* SUMMARY CARD */
.summary-reg-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 90px;
    overflow: hidden;
    border-top: 5px solid var(--secondary);
}
.summary-reg-top {
    padding: 24px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
}
.summary-reg-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent);
}
.summary-reg-total {
    font-size: clamp(2.2rem, 3.5vw, 2.8rem);
    font-weight: 900;
    margin: 6px 0;
    line-height: 1.1;
    color: #ffffff;
}
.summary-reg-body {
    padding: 24px;
}
.lines-breakdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.line-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.8rem;
}
.line-breakdown-item:last-child {
    border-bottom: none;
}
.line-item-desc {
    display: flex;
    flex-direction: column;
}
.line-item-desc span {
    font-weight: 700;
    color: #1e293b;
}
.line-item-desc small {
    font-size: 0.72rem;
    color: #64748b;
}
.line-item-price {
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}
.line-item-price.discounted {
    color: #059669;
}

@media (max-width: 900px) {
    .registro-grid {
        grid-template-columns: 1fr;
    }
    .summary-reg-card {
        position: static;
    }
}
@media (max-width: 600px) {
    .registro-card {
        padding: 20px 16px;
    }
}
