﻿/* ============================================
   CRAEST - ESTILOS ESPACIALES
   ============================================ */

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.craest-container {
    margin-top: 68px;
    padding: 2rem 4%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   HERO
   ============================================ */
.craest-hero {
    text-align: center;
    padding: 2rem 0;
    position: relative;
}

.craest-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.craest-hero-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   TARJETA PRINCIPAL
   ============================================ */
.craest-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================
   CONTROLES SUPERIORES
   ============================================ */
.craest-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.craest-selector {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}

    .craest-selector label {
        color: var(--text-main);
        font-size: 0.95rem;
    }

        .craest-selector label i {
            color: var(--neon-cyan);
            margin-right: 6px;
        }

.craest-select {
    background: rgba(4, 7, 18, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 8px 16px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .craest-select:focus {
        outline: none;
        border-color: var(--neon-cyan);
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    }

.craest-btn-theme {
    background: rgba(4, 7, 18, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

    .craest-btn-theme:hover {
        border-color: var(--neon-cyan);
        color: var(--neon-cyan);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    }

/* ============================================
   INFORMACIÓN
   ============================================ */
.craest-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 1rem;
    background: rgba(0, 240, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--neon-cyan);
    margin-bottom: 1.5rem;
}

    .craest-info i {
        color: var(--neon-cyan);
        margin-right: 8px;
    }

/* ============================================
   TABLA
   ============================================ */
.craest-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.craest-table {
    width: 100%;
    border-collapse: collapse;
}

    .craest-table thead th {
        padding: 12px 16px;
        text-align: left;
        font-weight: 700;
        color: var(--neon-cyan);
        border-bottom: 2px solid var(--glass-border);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .craest-table tbody td {
        padding: 10px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: var(--text-main);
    }

    .craest-table tbody tr:hover {
        background: rgba(0, 240, 255, 0.03);
    }

    .craest-table input {
        width: 100px;
        padding: 8px 12px;
        background: rgba(4, 7, 18, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        color: var(--text-main);
        font-family: 'Outfit', sans-serif;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

        .craest-table input:focus {
            outline: none;
            border-color: var(--neon-cyan);
            box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
        }

        .craest-table input::placeholder {
            color: var(--text-muted);
            opacity: 0.5;
        }

/* ============================================
   BOTONES
   ============================================ */
.craest-actions {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.craest-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    color: var(--space-dark);
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .craest-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
    }

.craest-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .craest-btn-secondary:hover {
        border-color: var(--neon-cyan);
        color: var(--neon-cyan);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    }

/* ============================================
   RESULTADO
   ============================================ */
.craest-result {
    text-align: center;
    padding: 1.5rem;
    margin: 1rem 0;
    background: rgba(0, 240, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

    .craest-result p {
        margin: 0.5rem 0;
        color: var(--text-muted);
    }

#result {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    margin: 0.5rem 0;
}

    #result.good {
        color: #34d399;
        text-shadow: 0 0 30px rgba(52, 211, 153, 0.3);
    }

    #result.mid {
        color: #fbbf24;
        text-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
    }

    #result.bad {
        color: #f87171;
        text-shadow: 0 0 30px rgba(248, 113, 113, 0.3);
    }

.craest-last {
    text-align: center;
    padding: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

    .craest-last b {
        color: var(--neon-cyan);
    }

/* ============================================
   DETALLES
   ============================================ */
.craest-details {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

    .craest-details summary {
        cursor: pointer;
        color: var(--text-muted);
        font-weight: 600;
        padding: 0.5rem;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .craest-details summary:hover {
            color: var(--neon-cyan);
        }

        .craest-details summary i {
            color: var(--neon-cyan);
        }

.craest-details-content {
    padding: 1rem 0.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

    .craest-details-content p {
        margin: 0.5rem 0;
    }

    .craest-details-content strong {
        color: var(--text-main);
    }

.craest-note {
    background: rgba(0, 240, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--neon-cyan);
    margin-top: 1rem;
}

    .craest-note i {
        color: var(--neon-cyan);
        margin-right: 8px;
    }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .craest-container {
        padding: 1rem 3%;
    }

    .craest-hero-title {
        font-size: 2rem;
    }

    .craest-card {
        padding: 1.5rem;
    }

    .craest-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .craest-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .craest-table input {
        width: 100%;
    }

    .craest-table thead {
        display: none;
    }

    .craest-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        padding: 0.5rem;
        background: rgba(4, 7, 18, 0.3);
        border-radius: 10px;
    }

    .craest-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

        .craest-table tbody td:first-child {
            font-weight: 600;
            color: var(--text-main);
        }

        .craest-table tbody td:last-child {
            border-bottom: none;
        }

    .craest-actions {
        flex-direction: column;
    }

    .craest-btn-primary,
    .craest-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    #result {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .craest-hero-title {
        font-size: 1.5rem;
    }

    .craest-card {
        padding: 1rem;
    }

    .craest-btn-theme {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
