/* === ESTILOS DEL DIAGNÓSTICO DE DESORDEN TECNOLÓGICO === */
:root {
    --primary-color: #00e5ff;       /* Cyan brillante */
    --secondary-color: #b0e0ff;     /* Celeste */
    --dark-bg: #020710;             /* Navy de fondo */
    --card-bg: rgba(0, 18, 36, 0.65); /* Vidrio oscuro */
    --border-color: rgba(0, 229, 255, 0.2);
    --text-primary: #e0e6f0;
    --text-muted: #8fa0b5;
    --font-family: 'Poppins', sans-serif;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-image: radial-gradient(circle at 50% 50%, #061f3d 0%, #020710 100%);
}

.diagnostic-container {
    width: 100%;
    max-width: 950px;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 35px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Encabezado */
.card-header {
    text-align: center;
    margin-bottom: 22px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.logo i, .logo span {
    color: var(--primary-color);
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 650px;
    margin: 0 auto 14px auto;
}

/* Barra de progreso */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b8ff 0%, #00e5ff 100%);
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 0.4s ease;
}

/* Panel de Pasos */
.step-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-pane.active {
    display: block;
}

.step-num {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.step-pane h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.instruction-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

/* Rejilla de Opciones (Checkboxes) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    background: rgba(0, 229, 255, 0.03);
    border-color: rgba(0, 229, 255, 0.3);
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.custom-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked + .custom-box {
    background: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.opt-details {
    display: flex;
    flex-direction: column;
}

.opt-details strong {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 4px;
}

.opt-details small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Campos de entrada (Paso 6) */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.input-group select {
    width: 100%;
    background-color: #0a1628;
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 10px;
    padding: 12px 40px 12px 16px;
    color: #e0e6f0;
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300e5ff' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

.input-group select option {
    background-color: #0a1628;
    color: #e0e6f0;
    padding: 10px 14px;
    font-size: 0.92rem;
}

.input-group select option:hover,
.input-group select option:checked {
    background-color: rgba(0, 229, 255, 0.15);
    color: #ffffff;
}

.input-group select:hover {
    border-color: rgba(0, 229, 255, 0.4);
    background-color: #0d1d35;
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

/* Botones de navegación */
.form-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 18px;
}

.button {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-back {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-back:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-next {
    background: var(--primary-color);
    color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-next:hover {
    background: #00b8ff;
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
    transform: translateY(-1px);
}

.btn-submit {
    background: linear-gradient(135deg, #00b8ff 0%, #00e5ff 100%);
    color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.6);
}

/* === PANEL DE RESULTADOS — DISEÑO PREMIUM === */
.results-dashboard {
    animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    padding-top: 10px;
}

.results-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 35px;
}

/* ── Columna de Métricas (Izquierda) ── */
.results-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* Score Ring animado con glow */
.score-ring-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.score-ring-wrapper::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
    animation: ringPulse 3s ease-in-out infinite;
}

.score-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    position: relative;
    z-index: 2;
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 8;
}

.ring-bar {
    fill: none;
    stroke: url(#ring-gradient);
    stroke-width: 9;
    stroke-dasharray: 314.16;
    stroke-linecap: round;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.5));
    transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.score-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.score-percent {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.score-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-color);
    font-weight: 600;
}

/* Tarjetas de métricas */
.metric-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, rgba(2, 7, 16, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 22px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.metric-card h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.money-stat {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.money-stat.positive {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(46, 204, 113, 0.25));
}

.caption-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.metric-card.highlight {
    border-color: rgba(46, 204, 113, 0.25);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.04) 0%, rgba(2, 7, 16, 0.5) 100%);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.06);
}

.metric-card.highlight:hover {
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.1);
}

/* ── Columna de Acciones (Derecha) ── */
.results-cta {
    display: flex;
    flex-direction: column;
}

.cta-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--dark-bg);
    background: linear-gradient(135deg, #00b8ff, #00e5ff);
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
    text-transform: uppercase;
    box-shadow: 0 2px 12px rgba(0, 229, 255, 0.25);
    animation: badgePulse 2.5s ease-in-out infinite;
}

.results-cta h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.cta-intro-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Bifurcación de opciones */
.cta-bifurcation {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.cta-path-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-path-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.025);
    transform: translateY(-2px);
}

.cta-path-card.primary-path {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.04) 0%, rgba(2, 7, 16, 0.5) 100%);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.04);
}

.cta-path-card.primary-path:hover {
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 12px 35px rgba(0, 229, 255, 0.08);
}

.path-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    text-align: center;
}

.path-num {
    font-size: 0.62rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.primary-path .path-num {
    background: linear-gradient(135deg, #00b8ff, #00e5ff);
    color: var(--dark-bg);
    box-shadow: 0 2px 8px rgba(0, 229, 255, 0.2);
}

.path-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.cta-path-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
}

.cta-path-button {
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #00b8ff 0%, #00e5ff 100%);
    color: var(--dark-bg);
    border: none;
    box-shadow: 0 4px 18px rgba(0, 229, 255, 0.3);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 20px;
    transition: all 0.3s ease;
}

.cta-path-button:hover {
    box-shadow: 0 6px 25px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

.calendar-wrapper {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: 12px;
}

/* ── Animaciones ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes ringPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.04); }
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(0, 229, 255, 0.25); }
    50% { box-shadow: 0 2px 20px rgba(0, 229, 255, 0.45); }
}

/* ── Responsivo ── */
@media (max-width: 991px) {
    .results-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .glass-card {
        padding: 20px;
    }
    .card-header h2 {
        font-size: 1.3rem;
    }
    .score-ring-wrapper {
        width: 130px;
        height: 130px;
    }
    .score-percent {
        font-size: 1.8rem;
    }
    .results-cta h3 {
        font-size: 1.2rem;
    }
}
