* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

/* Pantalla de inicio */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1000;
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#status-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

#start-ar-button {
    background: white;
    color: #667eea;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

#start-ar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.4);
}

#start-ar-button:active {
    transform: translateY(0);
}

#diagnostic-info {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* AR Overlay */
#ar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#actions-panel {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: auto;
}

.action-btn {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.action-btn:hover {
    transform: scale(1.1);
    background: white;
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Barra de captura */
#capture-progress {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    pointer-events: auto;
}

#capture-bar {
    width: 300px;
    height: 30px;
    margin-bottom: 1rem;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 10px;
    overflow: hidden;
}

/* Estilo barra progreso WebKit (Chrome, Safari) */
#capture-bar::-webkit-progress-bar {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

#capture-bar::-webkit-progress-value {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.1s linear;
}

/* Estilo barra progreso Firefox */
#capture-bar::-moz-progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

#capture-label {
    font-size: 1.2rem;
}

/* Mensaje de éxito */
#capture-success {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 200, 100, 0.95);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    pointer-events: auto;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.8); 
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
}

/* Animación pulso para botones */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.action-btn:hover:not(:disabled) {
    animation: pulse 0.6s ease-in-out infinite;
}

#capture-success h2 {
    font-size: 2rem;
}
