.roi-hero {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 1.5rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.roi-hero h1 {
    font-weight: 700;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.roi-hero .lead {
    font-size: 1.1rem;
    opacity: 0.95;
    color: #ffffff !important;
}

.roi-form-card {
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.roi-form-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.roi-form-card .card-body {
    padding: 2rem;
}

.roi-form-card h4 {
    color: #2d5a27;
    font-weight: 700;
    font-size: 1.25rem;
}

.roi-form-card .form-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.roi-form-card .form-control,
.roi-form-card .form-select {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.roi-form-card .form-control:focus,
.roi-form-card .form-select:focus {
    border-color: #2d5a27;
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.15);
}

.roi-form-card small.text-muted {
    font-size: 0.8rem;
    display: block;
    margin-top: 0.2rem;
}

.roi-radio-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.roi-radio-card {
    cursor: pointer;
    position: relative;
}

.roi-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.roi-radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 0.5rem;
    border: 2px solid #dee2e6;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    text-align: center;
}

.roi-radio-card:hover .roi-radio-card-content {
    border-color: #2d5a27;
    background-color: rgba(45, 90, 39, 0.03);
}

.roi-radio-card input[type="radio"]:checked + .roi-radio-card-content {
    border-color: #2d5a27;
    background-color: rgba(45, 90, 39, 0.08);
    box-shadow: 0 0 0 1px #2d5a27;
}

.roi-radio-card-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1a1a2e;
    display: block;
}

.roi-radio-card-desc {
    font-size: 0.75rem;
    color: #6c757d;
    display: block;
    margin-top: 0.1rem;
}

.roi-btn-calcular {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.roi-btn-calcular:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.3);
    color: #ffffff;
}

.roi-btn-calcular:active {
    transform: translateY(0);
}

.roi-perdida-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(45, 90, 39, 0.18);
}

.roi-perdida-card .card-body {
    background: linear-gradient(135deg, #2d5a27 0%, #3a7a32 55%, #1f6f5c 100%);
    padding: 1.5rem;
    text-align: center;
    color: #ffffff;
}

.roi-perdida-card .roi-label-small {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.roi-perdida-card h2 {
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
    color: #ffffff;
}

.roi-desglose-card {
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.roi-desglose-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.roi-desglose-card .card-body {
    padding: 1.25rem;
    text-align: center;
}

.roi-desglose-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.roi-desglose-noshow .roi-desglose-icon {
    color: #2d5a27;
}

.roi-desglose-vacios .roi-desglose-icon {
    color: #1e3a8a;
}

.roi-desglose-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.35rem;
}

.roi-desglose-monto {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.roi-desglose-detalle {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0.25rem 0 0;
}

.roi-recuperable-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.12);
    height: 100%;
}

.roi-recuperable-card .card-body {
    background: linear-gradient(135deg, #2d5a27 0%, #3a7a32 100%);
    padding: 1.25rem;
    color: #ffffff;
}

.roi-recuperable-card .roi-label-small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.roi-recuperable-card h4 {
    font-weight: 700;
    font-size: 1.35rem;
    margin: 0;
    color: #ffffff;
}

.roi-anual-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.12);
    height: 100%;
}

.roi-anual-card .card-body {
    background: linear-gradient(135deg, #eef4ff 0%, #f7fbff 100%);
    border: 1px solid rgba(30, 58, 138, 0.08);
    padding: 1.25rem;
}

.roi-anual-card .roi-label-small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.roi-anual-card h4 {
    font-weight: 700;
    font-size: 1.35rem;
    margin: 0;
    color: #1e3a8a;
}

.roi-cta-card {
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.roi-cta-card .card-body {
    padding: 2rem;
}

.roi-cta-card h5 {
    color: #2d5a27;
    font-weight: 700;
    font-size: 1.15rem;
}

.roi-cta-card ul li {
    padding: 0.35rem 0;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
}

.roi-cta-card .btn-success {
    background: linear-gradient(135deg, #2d5a27 0%, #3a7a32 100%);
    border: none;
    border-radius: 50px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.roi-cta-card .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.3);
}

.roi-lead-card {
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid #2d5a27;
}

.roi-lead-card .card-body {
    padding: 1.5rem 2rem;
}

.roi-lead-card h5 {
    color: #2d5a27;
    font-weight: 700;
    font-size: 1.1rem;
}

.roi-lead-card .form-control {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.roi-lead-card .form-control:focus {
    border-color: #2d5a27;
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.15);
}

.roi-btn-enviar {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    border: none;
    border-radius: 0.5rem;
    color: #ffffff;
    padding: 0.55rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 38px;
}

.roi-btn-enviar:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
    color: #ffffff;
}

.roi-btn-enviar:disabled {
    opacity: 0.7;
    transform: none;
}

.roi-disclaimer {
    font-size: 0.78rem;
    color: #6c757d;
    line-height: 1.4;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.roi-placeholder {
    padding: 4rem 2rem;
    text-align: center;
}

.roi-placeholder i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.roi-placeholder p {
    color: #adb5bd;
    font-size: 1rem;
    max-width: 320px;
    margin: 0 auto;
}

.roi-fade-in {
    animation: roiFadeIn 0.4s ease-out;
}

@keyframes roiFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .roi-hero {
        padding: 2rem 0;
        border-radius: 0 0 1rem 1rem;
    }

    .roi-hero h1 {
        font-size: 1.5rem;
    }

    .roi-hero .lead {
        font-size: 0.95rem;
    }

    .roi-form-card .card-body {
        padding: 1.5rem;
    }

    .roi-perdida-card h2 {
        font-size: 1.5rem;
    }

    .roi-radio-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }

    .roi-radio-card-title {
        font-size: 0.8rem;
    }

    .roi-radio-card-desc {
        font-size: 0.7rem;
    }

    .roi-desglose-monto {
        font-size: 1.15rem;
    }

    .roi-cta-card .card-body {
        padding: 1.5rem;
    }

    .roi-cta-card .btn-success {
        width: 100%;
    }

    .roi-lead-card .card-body {
        padding: 1.25rem;
    }

    .roi-lead-card .row.g-2 > .col-sm-2 {
        margin-top: 0.5rem;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .roi-lead-card .row.g-2 > .col-sm-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .roi-hero {
        padding: 1.5rem 0;
    }

    .roi-hero h1 {
        font-size: 1.3rem;
    }

    .roi-form-card .card-body {
        padding: 1.25rem;
    }

    .roi-form-card h4 {
        font-size: 1.1rem;
    }

    .roi-radio-cards {
        grid-template-columns: 1fr 1fr;
    }

    .roi-lead-card .card-body {
        padding: 1rem;
    }

    .roi-lead-card h5 {
        font-size: 1rem;
    }
}
