﻿/* =====================================================
   VARIABLES GLOBALES
===================================================== */
:root {
    --color-primary: #22c55e;
    --color-primary-dark: #16a34a;
    --color-bg-top: #0f172a;
    --color-bg-dark: #020617;
    --color-text-light: #e5e7eb;
    --color-text-muted: #94a3b8;
}

/* =====================================================
   FONDO GLOBAL
===================================================== */
body {
    background: radial-gradient( circle at top, var(--color-bg-top), var(--color-bg-dark) 70% );
    color: var(--color-text-light);
}

/* =====================================================
   HEADINGS & TEXTO
===================================================== */
h2, h3, h4, h5 {
    color: #f8fafc;
}

.text-muted {
    color: var(--color-text-muted) !important;
}

/* =====================================================
   ANIMACIONES
===================================================== */
@keyframes focusPulse {
    from {
        box-shadow: 0 0 0 rgba(34,197,94,0);
        transform: scale(1);
    }

    to {
        box-shadow: 0 0 30px rgba(34,197,94,.6);
        transform: scale(1.03);
    }
}

.focus-medida {
    animation: focusPulse 1.2s ease-in-out infinite alternate;
    border-radius: 12px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   HINT FLOTANTE
===================================================== */
.hint-usuario {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient( 135deg, var(--color-primary), var(--color-primary-dark) );
    color: white;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 0 30px rgba(34,197,94,.45);
    z-index: 9999;
    animation: fadeInUp .4s ease;
}

/* =====================================================
   EFECTOS VISUALES
===================================================== */
.fly-item {
    position: fixed;
    width: 60px;
    height: 60px;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.7s cubic-bezier(.22,1,.36,1);
    border-radius: 12px;
}

.pop-preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 140px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

    .pop-preview.show {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

/* =====================================================
   BOTONES OUTLINE EN FONDO OSCURO
===================================================== */
.btn-outline-dark,
.btn-outline-secondary {
    color: #f8fafc !important;
    border-color: rgba(255,255,255,0.5) !important;
}

    .btn-outline-dark:hover,
    .btn-outline-secondary:hover {
        background: rgba(255,255,255,0.08) !important;
        color: #ffffff !important;
        border-color: var(--color-primary) !important;
    }

/* =====================================================
   MODALES (FONDO CLARO GLOBAL)
===================================================== */
.modal-content {
    background: #ffffff;
    color: #020617;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0,0,0,.4);
}

    /* Texto dentro del modal */
    .modal-content h1,
    .modal-content h2,
    .modal-content h3,
    .modal-content h4,
    .modal-content h5,
    .modal-content h6,
    .modal-content label,
    .modal-content p,
    .modal-content span,
    .modal-content small {
        color: #020617;
    }

    /* Inputs dentro del modal */
    .modal-content input,
    .modal-content select {
        color: #020617;
    }

    /* Botones dentro del modal */
    .modal-content .btn {
        font-weight: 600;
    }

    .modal-content .btn-outline-dark,
    .modal-content .btn-outline-secondary {
        color: #020617 !important;
        border: 1px solid rgba(2,6,23,.3) !important;
    }

        .modal-content .btn-outline-dark:hover,
        .modal-content .btn-outline-secondary:hover {
            background: var(--color-primary) !important;
            color: #ffffff !important;
            border-color: var(--color-primary) !important;
        }

/* =====================================================
   WIZARD GLOBAL
===================================================== */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    margin: 2rem 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #cbd5e1;
    transition: all .3s ease;
}

.wizard-line {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.15);
    margin: 0 10px;
}

/* ACTIVO */
.wizard-step.active .step-circle {
    background: linear-gradient( 135deg, var(--color-primary), var(--color-primary-dark) );
    color: white;
}

/* COMPLETADO */
.wizard-step.completed .step-circle {
    background: var(--color-primary);
    color: white;
}
@media (max-width: 768px) {

    .wizard-progress {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 15px;
        padding-bottom: 10px;
    }

    .wizard-step {
        min-width: 70px;
    }
}

/* TEXTO OSCURO DENTRO DE TARJETAS BLANCAS */
.card {
    color: #020617;
}

    .card h5,
    .card h6,
    .card label,
    .card span,
    .card p {
        color: #020617;
    }

#resultado {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

/* =========================================
   TARJETAS DE MATERIAL (MODALES PREMIUM)
========================================= */

.modal-pre-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.material-select-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

    .material-select-card:hover {
        border-color: #10b981; /* Verde de E&E Aluminios */
        box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.15);
        transform: translateY(-2px);
    }

.card-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

    /* Colores para los iconos según el material */
    .card-icon-wrapper.alum {
        background: #f1f5f9;
        color: #3b82f6; /* Azulito / Gris para aluminio */
    }

    .card-icon-wrapper.steel {
        background: #f8fafc;
        color: #64748b; /* Gris oscuro para acero */
    }

.material-select-card:hover .card-icon-wrapper {
    background: #ecfdf5;
    color: #10b981; /* Se pinta de verde al pasar el mouse */
}

.card-content {
    flex-grow: 1;
}

    .card-content strong {
        display: block;
        color: #1e293b;
        font-size: 1.05rem;
        margin-bottom: 0.25rem;
    }

    .card-content small {
        color: #64748b;
        font-size: 0.85rem;
        line-height: 1.3;
    }

.card-arrow {
    color: #cbd5e1;
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.material-select-card:hover .card-arrow {
    color: #10b981;
    transform: translateX(5px);
}