/* /public/css/onboarding.css */

/* ===========================
   SPLASH SCREEN
   =========================== */

   .splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000428; /* fallback for old browsers */
    background: -webkit-linear-gradient(to bottom, #000428, #004e92); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to bottom, #000428, #004e92); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.splash-screen.active {
    opacity: 1;
}

.splash-screen.leaving {
    opacity: 0;
}

.splash-content {
    text-align: center;
    color: white;
}

.splash-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.splash-logo i {
    font-size: 3.5rem;
    color: var(--primary-green);
    animation: dropBounce 1.5s infinite ease-in-out;
}

.splash-logo h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.splash-slogan {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
    margin-bottom: 50px;
    font-weight: 300;
}

.splash-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes dropBounce {
    0%, 100% { 
        transform: translateY(0) scale(1); 
    }
    50% { 
        transform: translateY(-12px) scale(1.05); 
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===========================
   WELCOME SCREEN
   =========================== */

.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000428; /* fallback for old browsers */
  background: -webkit-linear-gradient(to bottom, #000428, #004e92); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to bottom, #000428, #004e92); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.welcome-screen.active {
    opacity: 1;
    transform: translateY(0);
}

.welcome-container {
    max-width: 480px;
    width: 90%;
    padding: 20px;
}

.welcome-content {
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
}

.welcome-logo {
    margin-bottom: 30px;
}

.welcome-logo i {
    font-size: 4rem;
    color: var(--primary-green);
    filter: drop-shadow(0 10px 20px rgba(52, 211, 153, 0.3));
}

.welcome-content h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.welcome-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 40px;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-welcome-new,
.btn-welcome-login {
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-welcome-new {
    background: var(--primary-green);
    color: white;
}

.btn-welcome-new:hover {
    background: #2bb885;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 211, 153, 0.3);
}

.btn-welcome-login {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-welcome-login:hover {
    background: var(--surface-secondary);
    border-color: var(--text-muted);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .welcome-content {
        padding: 40px 30px;
    }
    
    .welcome-content h1 {
        font-size: 1.6rem;
    }
    
    .welcome-description {
        font-size: 0.95rem;
    }
}

/* ===========================
   WIZARD
   =========================== */

.wizard-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000428; /* fallback for old browsers */
  background: -webkit-linear-gradient(to bottom, #000428, #004e92); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to bottom, #000428, #004e92); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.wizard-step {
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.wizard-step.active {
    opacity: 1;
    transform: translateY(0);
}

.wizard-header {
    padding: 30px 40px 20px;
    border-bottom: 1px solid var(--border-color);
}

.wizard-progress {
    width: 100%;
    height: 4px;
    background: rgba(222, 224, 227, 0.2);
    border-radius: 2px;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: var(--primary-green);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.step-indicator {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.wizard-content {
    padding: 40px;
}

.wizard-content h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.wizard-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}

.form-group.has-error input,
.form-group.has-error select {
    border-color: #ef4444;
}

.form-error {
    font-size: 0.8rem;
    color: #ef4444;
    min-height: 18px;
}

.form-help {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.wizard-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.wizard-actions .btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wizard-actions .btn-primary {
    background: var(--primary-green);
    color: white;
}

.wizard-actions .btn-primary:hover:not(:disabled) {
    background: #2bb885;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(52, 211, 153, 0.3);
}

.wizard-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wizard-actions .btn-secondary {
    background: white;
    color: var(--text-muted);
    border: 2px solid var(--border-color);
}

.wizard-actions .btn-secondary:hover {
    background: var(--surface-secondary);
    border-color: var(--text-muted);
}

.btn-back {
    flex: 0.8;
}

.btn-next {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-next:hover {
    background: #2bb885;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(52, 211, 153, 0.3);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .wizard-content {
        padding: 30px 25px;
    }
    
    .wizard-content h2 {
        font-size: 1.5rem;
    }
    
    .wizard-actions {
        flex-direction: column;
    }
    
    .btn-back {
        order: 2;
        flex: 1;
    }
}

/* ===========================
   CONFIRMATION SCREEN
   =========================== */

.confirmation-screen {
    position: fixed;
    background: #000428; /* fallback for old browsers */
    background: -webkit-linear-gradient(to bottom, #000428, #004e92); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to bottom, #000428, #004e92); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.confirmation-screen.active {
    opacity: 1;
    transform: scale(1);
}

.confirmation-container {
    max-width: 480px;
    width: 90%;
    padding: 20px;
}

.confirmation-content {
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
}

.confirmation-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    animation: celebration 0.6s ease;
}

@keyframes celebration {
    0% { 
        transform: scale(0) rotate(0deg); 
        opacity: 0;
    }
    50% { 
        transform: scale(1.2) rotate(10deg); 
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1;
    }
}

.confirmation-content h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.confirmation-message {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
}

.btn-enter {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-enter:hover {
    background: #2bb885;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 211, 153, 0.3);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .confirmation-content {
        padding: 50px 30px;
    }
    
    .confirmation-content h1 {
        font-size: 1.6rem;
    }
    
    .confirmation-icon {
        font-size: 4rem;
    }
}



/* Badge opcional */
.optional-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--surface-secondary);
    color: var(--text-muted);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* Botón saltar */
.btn-skip {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-skip:hover {
    background: var(--surface-secondary);
    color: var(--text-primary);
}

/* Botón texto (para "atrás") */
.btn-text {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 12px 16px;
}

.btn-text:hover {
    color: var(--text-primary);
    background: var(--surface-secondary);
}

/* Form help mejorado */
.form-help {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.form-help i {
    font-size: 12px;
}


/* Location input wrapper */
.location-input-wrapper {
    position: relative;
}

/* Sugerencias de ubicación */
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color:aliceblue;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: none;
}

.location-suggestions.active {
    display: block;
}

.location-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.location-suggestion-item:last-child {
    border-bottom: none;
}

.location-suggestion-item:hover {
    background: var(--surface-secondary);
}

.location-suggestion-item i {
    color: var(--primary-green);
    font-size: 14px;
}

.location-suggestion-item span {
    color: var(--bg-dark);
    font-size: 14px;
}

.no-results {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Scrollbar para sugerencias */
.location-suggestions::-webkit-scrollbar {
    width: 6px;
}

.location-suggestions::-webkit-scrollbar-track {
    background: var(--surface-secondary);
    border-radius: 12px;
}

.location-suggestions::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 12px;
}

.location-suggestions::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==================== EMAIL FEEDBACK ==================== */
.form-success {
    display: block;
    color: #34d399;
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 500;
}

.form-group input.has-success {
    border-color: #34d399;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2334d399'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
    padding-right: 40px;
}

.form-group input.has-error {
    border-color: #ef4444;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
    padding-right: 40px;
}

#app {
    opacity: 0;
    visibility: hidden;
}

#app.ready {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}