* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --amarillo: #F9ED32;
    --negro: #000000;
    --gris-oscuro: #3A3A3A;
    --gris-medio: #666666;
    --blanco: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--negro);
    color: var(--blanco);
    min-height: 100vh;
    overflow-x: hidden;
}

@media (min-width: 769px) {
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--negro);
        z-index: 9999;
    }
    body::after {
        content: '📱 Esta aplicación solo está disponible en dispositivos móviles';
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10000;
        font-size: 1.5rem;
        font-weight: 700;
        text-align: center;
        padding: 2rem;
        max-width: 500px;
        color: var(--blanco);
    }
    .screen { display: none !important; }
}

.screen {
    display: none;
    min-height: 100vh;
    flex-direction: column;
    background: var(--negro);
}

.screen.active {
    display: flex;
}

.logo-header {
    padding: 2rem 0 1.5rem;
    text-align: center;
}

.logo {
    max-width: 350px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0 1rem;
    padding: 0 1rem;
}

.avatar-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem;
    padding: 15px;
}

.avatar {
    width: 180%;
    height: 180%;
    object-fit: contain;
}

.welcome-badge,
.success-badge {
    background: var(--amarillo);
    color: var(--negro);
    padding: 0.75rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* BARRA DE PROGRESO - CORRECTA */
.progress-bar {
    padding: 1.25rem 1.5rem;
    background: var(--gris-oscuro);
}

.progress-text {
    color: var(--blanco);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: visible;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--amarillo);
    background: linear-gradient(90deg, 
        rgba(249, 237, 50, 0.9) 0%, 
        rgba(249, 237, 50, 1) 100%);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(249, 237, 50, 0.6);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--amarillo);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(249, 237, 50, 0.8);
}

.section-badge {
    background: var(--amarillo);
    color: var(--negro);
    padding: 0.7rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.form-section {
    flex: 1;
    padding: 2rem 1.5rem 1.5rem;
}

.input-label {
    color: var(--blanco);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
    display: block;
}

.input-field,
.textarea-field {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--blanco);
    border: 2px solid #F5F5F5;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--negro);
    margin-bottom: 1rem;
    outline: none;
    font-family: inherit;
}

.input-field:focus,
.textarea-field:focus {
    border-color: var(--amarillo);
}

.textarea-field {
    min-height: 130px;
    resize: vertical;
}

.helper-text {
    color: var(--blanco);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* BOTONES - MÁS PEQUEÑOS PARA MÓVIL */
.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--amarillo);
    color: var(--negro);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    background: transparent;
    color: var(--amarillo);
    border: 2px solid var(--amarillo);
}

.btn-secondary:active {
    background: rgba(249, 237, 50, 0.1);
}

/* BOTONES LADO A LADO - GARANTIZADO Y COMPACTOS */
.btn-group {
    display: flex;
    gap: 0.65rem;
    margin-top: 0;
}

.btn-group .btn-primary,
.btn-group .btn-secondary {
    flex: 1;
    min-width: 0;
    padding: 0.8rem 0.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
}

.success-message {
    padding: 1rem 1.5rem 1.5rem;
}

.success-text {
    color: var(--blanco);
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

.success-text strong {
    color: var(--amarillo);
}

.info-card {
    background: rgba(58, 58, 58, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 1.5rem 1.5rem;
    padding: 1.3rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 1.7rem;
    color: var(--amarillo);
    flex-shrink: 0;
}

.info-text {
    color: var(--blanco);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* FOOTER ABAJO */
.footer-bottom {
    margin-top: auto;
    width: 100%;
}

.footer-img {
    width: 100%;
    height: auto;
    display: block;
}

/* RESPONSIVE */
@media (max-width: 360px) {
    .logo {
        max-width: 300px;
    }
    
    .avatar-circle {
        width: 250px;
        height: 250px;
        padding: 12px;
    }
    
    .btn-group .btn-primary,
    .btn-group .btn-secondary {
        padding: 0.75rem 0.35rem;
        font-size: 0.72rem;
    }
    
    .btn-group {
        gap: 0.5rem;
    }
}

@media (min-width: 361px) and (max-width: 400px) {
    .avatar-circle {
        width: 265px;
        height: 265px;
    }
    
    .btn-group .btn-primary,
    .btn-group .btn-secondary {
        padding: 0.78rem 0.38rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 401px) and (max-width: 480px) {
    .btn-group .btn-primary,
    .btn-group .btn-secondary {
        padding: 0.8rem 0.45rem;
        font-size: 0.78rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .logo {
        max-width: 380px;
    }
    
    .avatar-circle {
        width: 300px;
        height: 300px;
    }
    
    .btn-group .btn-primary,
    .btn-group .btn-secondary {
        padding: 0.85rem 0.5rem;
        font-size: 0.82rem;
    }
}

@media (max-height: 650px) {
    .avatar-circle {
        width: 230px;
        height: 230px;
    }
    
    .logo-header {
        padding: 1.5rem 0 1rem;
    }
}

/* PANTALLAS MUY PEQUEÑAS - GARANTÍA ABSOLUTA */
@media (max-width: 280px) {
    .btn-group .btn-primary,
    .btn-group .btn-secondary {
        padding: 0.7rem 0.3rem;
        font-size: 0.68rem;
    }
    
    .btn-group {
        gap: 0.45rem;
    }
}

/* ULTRA PEQUEÑAS */
@media (max-width: 240px) {
    .btn-group .btn-primary,
    .btn-group .btn-secondary {
        padding: 0.65rem 0.25rem;
        font-size: 0.65rem;
    }
    
    .btn-group {
        gap: 0.4rem;
    }
}