/* ============================================================
   Estilos Personalizados - ORIENTATE
   ============================================================ */

/* --- Tipografía --- */
body {
    font-family: 'Roboto', sans-serif;
    padding-top: 56px; /* Altura de la barra de navegación fija */
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

.marca-aisa {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    line-height: 1.1;
}

.marca-aisa__logo {
    display: block;
    width: 2.35rem;
    height: 2.35rem;
    max-width: 2.35rem;
    object-fit: contain;
}

.marca-aisa__texto {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
}

.marca-aisa__producto {
    font-size: 0.95rem;
    font-weight: 700;
}

.marca-aisa__entidad {
    color: #6c757d;
    font-size: 0.68rem;
    font-weight: 500;
}

.marca-aisa--oscura .marca-aisa__entidad {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 575.98px) {
    .marca-aisa__entidad {
        display: none;
    }
}

/* --- Carrusel (Hero Section) --- */
#hero-carousel .carousel-item {
    height: 90vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#hero-carousel .carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem;
    padding: 2rem;
    bottom: 50%;
    transform: translateY(50%);
    max-width: 80%;
    margin: 0 auto;
}

/* --- Tarjetas de Características --- */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* --- Página del Test --- */
.test-page {
    max-width: 1140px;
}

.test-intro {
    max-width: 760px;
    margin: 0 auto;
}

.test-intro__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: #e7f1ff;
    color: #0d6efd;
    font-size: 0.85rem;
    font-weight: 700;
}

.test-progress {
    padding: 1.15rem 1.25rem;
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.25rem 1rem rgba(33, 37, 41, 0.06);
}

.test-progress .progress {
    height: 0.65rem;
    border-radius: 999px;
    background-color: #e9ecef;
}

.test-progress .progress-bar {
    border-radius: inherit;
    background: linear-gradient(90deg, #0d6efd, #6f42c1);
    transition: width 0.35s ease;
}

.test-progress__answered {
    color: #6c757d;
    font-size: 0.875rem;
}

.question-card {
    overflow: hidden;
    border: 0;
    border-left: 5px solid #0d6efd; /* Borde azul primario de Bootstrap */
    border-radius: 1rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.question-card.is-active {
    animation: question-appear 0.28s ease-out;
}

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

.question-card .card-body {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.question-card--realista { border-left-color: #198754; }
.question-card--investigadora { border-left-color: #0dcaf0; }
.question-card--artistica { border-left-color: #ffc107; }
.question-card--social { border-left-color: #0d6efd; }
.question-card--emprendedora { border-left-color: #dc3545; }
.question-card--convencional { border-left-color: #6c757d; }

.question-icon {
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    background-color: #e7f1ff;
    color: #0d6efd;
}

.question-icon--realista { background-color: #d1e7dd; color: #198754; }
.question-icon--investigadora { background-color: #cff4fc; color: #087990; }
.question-icon--artistica { background-color: #fff3cd; color: #997404; }
.question-icon--social { background-color: #cfe2ff; color: #0d6efd; }
.question-icon--emprendedora { background-color: #f8d7da; color: #dc3545; }
.question-icon--convencional { background-color: #e2e3e5; color: #6c757d; }

.question-text {
    line-height: 1.45;
    padding-top: 0.2rem;
}

.question-number {
    color: #0d6efd;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.question-hint {
    color: #6c757d;
    font-size: 0.8rem;
}

.answer-scale {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
}

.answer-option__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.answer-option__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 7rem;
    padding: 0.7rem 0.4rem;
    border: 2px solid #dee2e6;
    border-radius: 0.85rem;
    background: #fff;
    color: #495057;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.answer-option__label i {
    margin-bottom: 0.55rem;
    font-size: 1.55rem;
}

.answer-option__label:hover {
    border-color: #86b7fe;
    background-color: #f5f9ff;
    color: #0d6efd;
    transform: translateY(-2px);
}

.answer-option__input:focus-visible + .answer-option__label {
    outline: 3px solid rgba(13, 110, 253, 0.35);
    outline-offset: 2px;
}

.answer-option__input:checked + .answer-option__label {
    border-color: #0d6efd;
    background: #e7f1ff;
    box-shadow: 0 0.35rem 0.75rem rgba(13, 110, 253, 0.16);
    color: #0a58ca;
}

.question-navigation {
    border-top: 1px solid #edf0f2;
}

.test-submit {
    box-shadow: 0 0.4rem 0.8rem rgba(13, 110, 253, 0.22);
}

.form-check-label {
    cursor: pointer;
}

@media (max-width: 575.98px) {
    .test-page {
        padding-top: 2rem !important;
    }

    .question-hint {
        display: none;
    }

    .answer-scale {
        grid-template-columns: 1fr;
    }

    .answer-option__label {
        flex-direction: row;
        justify-content: flex-start;
        min-height: auto;
        padding: 0.9rem 1rem;
        text-align: left;
    }

    .answer-option__label i {
        width: 2rem;
        margin: 0 0.6rem 0 0;
        font-size: 1.25rem;
        text-align: center;
    }
}

/* --- Iconos de Características (Página de Inicio) --- */
.feature-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
}