/* ================================================================
   ROI CALCULATOR — Dark Theme
   Interactive 2-column layout with SVG gauge and animated bar.
   ================================================================ */

.roi-container {
    background: #080c16;
    /* slightly lighter than --creo-dark */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 48px;
    margin-top: 48px;
    position: relative;
    overflow: hidden;
}

/* Subtle glow background */
.roi-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 106, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.roi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    position: relative;
    z-index: 1;
}

/* ─── LEFT COLUMN : INPUTS ─────────────────────────────────── */
.roi-col-header {
    margin-bottom: 32px;
}

.roi-col-header h3 {
    font-size: 24px;
    color: var(--creo-white);
    margin-bottom: 8px;
}

.roi-col-header p {
    font-size: 14px;
    color: rgba(239, 229, 207, 0.5);
    line-height: 1.6;
}

.roi-inputs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.roi-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.roi-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(239, 229, 207, 0.8);
    display: block;
}

/* Dark input style */
.roi-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--creo-white);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition-base);
}

.roi-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.roi-input:focus {
    outline: none;
    border-color: rgba(255, 106, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

/* Chrome, Safari, Edge, Opera: hide arrows on number input */
.roi-input::-webkit-outer-spin-button,
.roi-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.roi-input[type=number] {
    -moz-appearance: textfield;
}

/* ─── RIGHT COLUMN : RESULTS ───────────────────────────────── */
.roi-results-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* GAUGE CHART */
.roi-gauge-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.roi-gauge-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(239, 229, 207, 0.5);
    margin-bottom: 24px;
    font-weight: 700;
}

.roi-gauge-svg {
    width: 240px;
    height: 140px;
}

.roi-gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 12;
    stroke-linecap: round;
}

.roi-gauge-fill {
    fill: none;
    stroke: var(--creo-accent-hover);
    stroke-width: 12;
    stroke-linecap: round;
    /* length of half circle = pi * r = 3.14 * 100 = 314 */
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    /* 314 = 0%, 0 = 100% */
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.roi-gauge-center {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.roi-gauge-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--creo-white);
    line-height: 1;
    margin-bottom: 4px;
}

/* BAR CHART (Conversión) */
.roi-bar-section {
    width: 100%;
}

.roi-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.roi-bar-label {
    font-size: 13px;
    color: rgba(239, 229, 207, 0.6);
}

.roi-bar-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--creo-success);
}

.roi-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.roi-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--creo-success);
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* HIGHLIGHT STATS */
.roi-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.roi-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.roi-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--creo-white);
    margin-bottom: 4px;
}

.roi-stat-label {
    font-size: 12px;
    color: rgba(239, 229, 207, 0.5);
}

/* NOTE */
.roi-note {
    font-size: 11px;
    color: rgba(239, 229, 207, 0.3);
    text-align: center;
    line-height: 1.5;
    margin-top: 16px;
}

/* ─── CTA FOOTER ───────────────────────────────────────────── */
.roi-cta-footer {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(11, 23, 61, 0.8), rgba(11, 23, 61, 0.2));
    border: 1px solid rgba(255, 106, 0, 0.2);
    border-radius: 16px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.roi-cta-text h4 {
    font-size: 20px;
    color: var(--creo-white);
    margin-bottom: 8px;
}

.roi-cta-text p {
    font-size: 14px;
    color: rgba(239, 229, 207, 0.7);
    line-height: 1.6;
    max-width: 500px;
}

.roi-cta-btn {
    flex-shrink: 0;
}

/* ─── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .roi-grid {
        grid-template-columns: 1fr;
    }

    .roi-cta-footer {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
}

@media (max-width: 600px) {
    .roi-container {
        padding: 32px 20px;
    }

    .roi-results-panel {
        padding: 32px 20px;
    }

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