/* --- LAYOUT GLOBAL & ESTRUCTURA --- */

/* --- GUÍA DE INICIO COMPACTA --- */
.onboarding-guide.compact {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 15px;
    flex-wrap: wrap;
    background: var(--panel-bg);
    padding: 5px 15px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    max-width: 750px;
}

.onboarding-guide.compact .step {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 140px;
    background: transparent;
    border: none;
    padding: 4px 0;
    max-width: none;
    transition: none;
}

@media (min-width: 600px) {
    .onboarding-guide.compact .step {
        border-right: 1px solid rgba(0, 0, 0, 0.05);
    }

    .onboarding-guide.compact .step:last-child {
        border-right: none;
    }
}

.step-icon-small {
    font-size: 0.9rem;
}

.onboarding-guide.compact p {
    font-size: 0.72rem;
    margin: 0;
    color: var(--text-gray);
    line-height: 1.1;
    text-align: left;
}

.onboarding-guide.compact p strong {
    color: var(--google-blue);
    font-weight: 600;
}

/* --- SECCIÓN PRINCIPAL DE CONSULTA --- */
.main-query-section {
    max-width: 600px;
    margin: 0 auto 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- FOOTER --- */
.app-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-family: 'Raleway', sans-serif;
    color: var(--text-gray);
}

.footer-content p {
    margin: 0 0 10px 0;
    font-size: 0.85rem;
}

.footer-content strong {
    color: var(--google-blue);
    font-weight: 600;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--google-blue);
}

/* --- CAJA DE DATOS Y HINTS --- */
.user-data-box {
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 20px 25px;
    background: var(--panel-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

.field-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 4px;
}

.field-hint {
    font-size: 0.72rem;
    color: var(--google-blue);
    margin-left: 5px;
    line-height: 1.2;
    margin-bottom: 5px;
}

.astro-info-hint {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 15px;
    border-top: 1px dashed var(--border-light);
    padding-top: 10px;
}

.optional-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 15px;
    font-weight: 600;
}

/* --- DISEÑO DE LA CÁMARA --- */
#camera-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 380px;
    margin: 0 auto 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.3);
    border: 3px solid var(--google-blue);
    background: #000;
}

#videoFeed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scaleX(-1);
    filter: sepia(0.1) contrast(1.1);
}

.face-guide {
    position: absolute;
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 170px;
    height: 230px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    border: 2px dashed rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10;
}

.camera-footer {
    position: absolute;
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 80%, transparent 100%);
    padding: 20px 10px 30px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 11;
}

.camera-instructions {
    color: white;
    font-size: 0.8rem;
    text-align: center;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    max-width: 80%;
}