@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #2d3748;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 100%;
    max-width: 480px;
    z-index: 10;
}

.card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 0;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card-header {
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo-imagen {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    max-width: 300px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-text .subtitle {
    color: #718096;
    font-size: 0.88em;
    font-weight: 400;
}

.card-content {
    padding: 28px 24px;
}

.welcome-section {
    margin-bottom: 28px;
}

.welcome-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.7em;
    margin: 0 auto 18px;
    box-shadow: 0 8px 22px rgba(102, 126, 234, 0.3);
}

.welcome-section h2 {
    font-size: 1.4em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.info-text {
    color: #718096;
    font-size: 0.92em;
    line-height: 1.5;
}

/* ===== NUEVOS ESTILOS PARA PERFIL DE USUARIO ===== */
/* ===== DISEÑO PREMIUM - PERFIL DE USUARIO ===== */
.user-profile-section {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.95) 0%, 
        rgba(118, 75, 162, 0.9) 50%, 
        rgba(72, 187, 120, 0.85) 100%);
    border-radius: 24px;
    padding: 0;
    margin: 0 0 30px 0;
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.25),
        0 8px 20px rgba(72, 187, 120, 0.15);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
}

/* Fondo con patrón decorativo */
.user-profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

/* Efecto de borde luminoso */
.user-profile-section::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #48bb78 50%, 
        #667eea 100%);
    border-radius: 26px;
    z-index: -1;
    opacity: 0.6;
    animation: borderGlow 4s ease-in-out infinite;
}

/* CONTENEDOR PRINCIPAL */
.user-profile-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 28px;
    position: relative;
    z-index: 2;
}

/* === AVATAR MEJORADO === */
.user-avatar-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-profile {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.user-avatar-profile:hover {
    transform: scale(1.08) rotate(3deg);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.1);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
    filter: brightness(1.05) contrast(1.1);
}

/* Indicador de estado en línea */
.avatar-status {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: pulseStatus 2s infinite;
}

/* === INFORMACIÓN DE USUARIO === */
.user-info-profile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.profile-name {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff, #e0f7fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.profile-email {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.92em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.email-icon {
    font-size: 0.9em;
    opacity: 0.9;
    filter: brightness(1.2);
}

/* === BOTÓN CERRAR SESIÓN === */
.user-actions {
    display: flex;
    align-items: center;
}

.btn-signout-profile {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 12px 20px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88em;
    font-weight: 600;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-signout-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.6s ease;
}

.btn-signout-profile:hover::before {
    left: 100%;
}

.btn-signout-profile:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        0 0 0 3px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-signout-profile:active {
    transform: translateY(0) scale(1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn-signout-profile i {
    font-size: 1em;
    color: #ff6b6b;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.btn-signout-profile:hover i {
    transform: translateX(2px) rotate(-5deg);
}

/* === ELEMENTOS DECORATIVOS === */
.profile-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: floatDecoration 8s ease-in-out infinite;
}

.decoration-circle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.decoration-circle:nth-child(2) {
    width: 50px;
    height: 50px;
    bottom: -15px;
    left: 10%;
    animation-delay: 2s;
}

.decoration-circle:nth-child(3) {
    width: 30px;
    height: 30px;
    top: 30%;
    right: 15%;
    animation-delay: 4s;
}

/* === ANIMACIONES === */
@keyframes borderGlow {
    0%, 100% {
        opacity: 0.5;
        filter: hue-rotate(0deg);
    }
    50% {
        opacity: 0.8;
        filter: hue-rotate(45deg);
    }
}

@keyframes pulseStatus {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 2px 12px rgba(72, 187, 120, 0.6);
    }
}

@keyframes floatDecoration {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-15px) rotate(120deg) scale(1.05);
    }
    66% {
        transform: translateY(8px) rotate(240deg) scale(0.95);
    }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .user-profile-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 18px;
        padding: 24px;
    }
    
    .user-avatar-container {
        justify-self: center;
    }
    
    .user-avatar-profile {
        width: 70px;
        height: 70px;
    }
    
    .user-info-profile {
        text-align: center;
        gap: 6px;
    }
    
    .profile-name {
        font-size: 1.3em;
    }
    
    .profile-email {
        justify-content: center;
    }
    
    .user-actions {
        justify-self: center;
    }
    
    .btn-signout-profile {
        width: 100%;
        justify-content: center;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .user-profile-section {
        border-radius: 20px;
        margin-bottom: 25px;
    }
    
    .user-profile-header {
        padding: 20px;
        gap: 16px;
    }
    
    .user-avatar-profile {
        width: 65px;
        height: 65px;
        border-radius: 18px;
    }
    
    .profile-name {
        font-size: 1.2em;
    }
    
    .profile-email {
        font-size: 0.88em;
    }
    
    .btn-signout-profile {
        padding: 11px 18px;
        font-size: 0.85em;
    }
    
    .avatar-status {
        width: 18px;
        height: 18px;
        bottom: -2px;
        right: -2px;
    }
}

/* Modo de alto contraste para accesibilidad */
@media (prefers-contrast: high) {
    .user-profile-section {
        background: linear-gradient(135deg, #667eea, #764ba2);
        border: 2px solid white;
    }
    
    .profile-name {
        -webkit-text-fill-color: white;
        background: none;
    }
}

/* Reducción de movimiento para usuarios sensibles */
@media (prefers-reduced-motion: reduce) {
    .user-avatar-profile,
    .btn-signout-profile,
    .decoration-circle {
        animation: none;
        transition: none;
    }
    
    .btn-signout-profile:hover {
        transform: none;
    }
}
/* ===== FIN ESTILOS PERFIL USUARIO ===== */
/* ===== DISEÑO PROFESIONAL ORGANIZADO - MIS REPARACIONES ===== */
.mis-reparaciones-section {
    margin: 2.5rem 0 0 0;
    padding: 2rem 0 0 0;
    border-top: 1px solid rgba(224, 224, 224, 0.8);
}

/* HEADER DE SECCIÓN - MÁS ELEGANTE */
.section-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-header h3 {
    color: #333;
    margin: 0 0 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4em;
    font-weight: 700;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.section-header h3 i {
    color: #667eea;
    font-size: 1.3em;
}

/* HEADER INFORMATIVO - MÁS ESTRUCTURADO */
.reparaciones-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 5px solid #667eea;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.reparaciones-header h4 {
    margin: 0 0 0.75rem 0;
    color: #333;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.reparaciones-header h4 i {
    color: #667eea;
    font-size: 1.1em;
}

.reparaciones-header p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

/* LISTA DE REPARACIONES - MEJOR ESPACIADO */
.lista-reparaciones {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* TARJETA DE REPARACIÓN - MÁS PROFESIONAL */
.reparacion-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reparacion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #667eea;
    opacity: 0.8;
}

.reparacion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* HEADER DE TARJETA - MEJOR ORGANIZADO */
.reparacion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.folio {
    font-weight: 700;
    color: #667eea;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.estado-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ESTADOS - COLORES ORIGINALES PERO MEJORADOS */
.estado-recibido { 
    background: #e3f2fd; 
    color: #1976d2; 
    border: 1px solid #bbdefb;
}
.estado-en-diagnóstico { 
    background: #fff3e0; 
    color: #f57c00; 
    border: 1px solid #ffe0b2;
}
.estado-en-proceso { 
    background: #fff8e1; 
    color: #ffa000; 
    border: 1px solid #ffecb3;
}
.estado-reparado { 
    background: #e8f5e8; 
    color: #2e7d32; 
    border: 1px solid #c8e6c9;
}
.estado-listo { 
    background: #e8f5e8; 
    color: #2e7d32; 
    border: 1px solid #c8e6c9;
}
.estado-entregado { 
    background: #f3e5f5; 
    color: #7b1fa2; 
    border: 1px solid #e1bee7;
}
.estado-no-reparable { 
    background: #ffebee; 
    color: #c62828; 
    border: 1px solid #ffcdd2;
}

/* CUERPO DE LA TARJETA - MEJOR ESTRUCTURA */
.reparacion-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* INFORMACIÓN DEL EQUIPO - MÁS DESTACADA */
.equipo-info {
    margin-bottom: 0;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.equipo-info strong {
    color: #333;
    font-size: 1.1em;
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.equipo-info small {
    color: #666;
    font-size: 0.9em;
    font-weight: 500;
}

/* SECCIONES DE INFORMACIÓN - MEJOR JERARQUÍA */
.problema, .diagnostico, .costo {
    margin-bottom: 0;
}

.problema label, .diagnostico label, .costo label {
    font-weight: 600;
    color: #555;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.problema label i, .diagnostico label i, .costo label i {
    color: #667eea;
    font-size: 0.9em;
}

.problema p, .diagnostico p {
    color: #666;
    font-size: 0.92em;
    line-height: 1.5;
    margin: 0;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    border-left: 2px solid #e2e8f0;
}

/* FECHAS - MEJOR VISUALIZACIÓN */
.fechas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.fechas span {
    color: #666;
    font-size: 0.88em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fechas span i {
    color: #667eea;
    font-size: 0.9em;
    width: 16px;
    text-align: center;
}

/* COSTO - MÁS DESTACADO */
.costo {
    padding: 1rem;
    background: rgba(46, 125, 50, 0.05);
    border-radius: 8px;
    border-left: 3px solid #2e7d32;
}

.costo .precio {
    color: #2e7d32;
    font-weight: 700;
    font-size: 1.2em;
    background: rgba(46, 125, 50, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    margin-top: 0.5rem;
}

/* ESTADO VACÍO - MÁS ELEGANTE */
.sin-reparaciones {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 1rem 0;
    border: 1px solid #e9ecef;
}

.empty-state {
    color: #666;
}

.empty-state i {
    font-size: 3.5em;
    color: #ccc;
    margin-bottom: 1.25rem;
    display: block;
}

.empty-state p {
    margin: 0.75rem 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #555;
}

.empty-state small {
    color: #999;
    font-size: 0.9em;
    line-height: 1.5;
}

/* RESPONSIVE MEJORADO */
@media (max-width: 768px) {
    .mis-reparaciones-section {
        margin: 2rem 0 0 0;
        padding: 1.5rem 0 0 0;
    }
    
    .section-header h3 {
        font-size: 1.3em;
        padding: 0.875rem 1.5rem;
    }
    
    .reparaciones-header {
        padding: 1.25rem;
    }
    
    .reparacion-card {
        padding: 1.25rem;
    }
    
    .reparacion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .folio {
        font-size: 0.9em;
        padding: 0.375rem 0.875rem;
    }
    
    .estado-badge {
        padding: 0.375rem 0.875rem;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .section-header h3 {
        font-size: 1.2em;
        padding: 0.75rem 1.25rem;
        gap: 0.5rem;
    }
    
    .reparaciones-header {
        padding: 1rem;
    }
    
    .reparacion-card {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .reparacion-body {
        gap: 1rem;
    }
    
    .equipo-info,
    .fechas,
    .costo {
        padding: 0.875rem;
    }
    
    .problema p,
    .diagnostico p {
        padding: 0.625rem;
    }
}

/* MEJORAS DE INTERACCIÓN */
.reparacion-card:active {
    transform: translateY(-1px);
}

/* ESTILOS PARA CONTENIDO DINÁMICO */
.reparacion-card .diagnostico:empty {
    display: none;
}

.reparacion-card .costo:empty {
    display: none;
}

/* ANIMACIÓN SUAVE DE ENTRADA */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reparacion-card {
    animation: fadeInUp 0.5s ease-out;
}
/* ===== FIN ESTILOS MIS REPARACIONES ===== */

.form-group {
    margin-bottom: 22px;
    text-align: left;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.92em;
}

.form-label i {
    color: #667eea;
}

.input-container {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 15px 42px 15px 15px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 13px;
    color: #2d3748;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.05);
    -webkit-appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15), 0 4px 10px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 0.95em;
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #a0aec0;
    font-size: 0.82em;
}

.form-hint i {
    font-size: 0.88em;
}

.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 13px;
    color: #ffffff;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 7px 18px rgba(102, 126, 234, 0.3);
    -webkit-appearance: none;
    touch-action: manipulation;
}

.btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.btn-secondary {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #38a169, #48bb78);
}

.additional-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
}

.info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    padding: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.05em;
    margin: 0 auto 9px;
}

.info-content h4 {
    font-size: 0.88em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.info-content p {
    font-size: 0.78em;
    color: #718096;
}

.card-footer {
    padding: 18px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #f8fafc;
}

.footer-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Elementos flotantes decorativos */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 1.4em;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    top: 18%;
    left: 8%;
    animation-delay: 0s;
}

.element-2 {
    top: 62%;
    right: 12%;
    animation-delay: 2s;
}

.element-3 {
    bottom: 18%;
    left: 18%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(180deg); }
}

/* Estados de resultado */
.resultado {
    margin-top: 22px;
    padding: 18px;
    background: #f7fafc;
    border-radius: 13px;
    border-left: 4px solid #667eea;
    color: #2d3748;
}

.estado {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.88em;
    margin-top: 9px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.estado.reparado { 
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.estado.recibido { 
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.estado.en_reparacion { 
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

.estado.entregado { 
    background: linear-gradient(135deg, #9f7aea, #805ad5);
}

.volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.volver:hover {
    color: #764ba2;
    transform: translateX(-5px);
}

/* ===== ESTILOS CORREGIDOS PARA BOTÓN Y TEXTO DE CONSULTA RÁPIDA ===== */
.google-signin-section {
    margin: 25px 0;
    display: flex;
    justify-content: center;
}

.login-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: #718096;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.login-divider span {
    background: rgba(255, 255, 255, 0.98);
    padding: 0 15px;
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

.quick-consult-option {
    text-align: center;
    margin-top: 20px;
}

.btn-quick-consult {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    padding: 12px 20px;
    border-radius: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.92em;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.btn-quick-consult:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.quick-consult-hint {
    font-size: 0.82em;
    color: #718096;
    margin-top: 8px;
    line-height: 1.4;
}

/* ===== ESTILOS PARA USUARIO LOGUEADO ===== */
.user-section, .login-section, .quick-consult-section {
    display: none;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-info h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.2em;
}

.user-email {
    margin: 5px 0 0 0;
    color: #718096;
    font-size: 0.9em;
}

.user-actions {
    margin-top: 20px;
}

.user-guides {
    margin-top: 25px;
}

.user-guides h4 {
    color: #2d3748;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guides-list {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-guides {
    text-align: center;
    color: #718096;
    padding: 30px;
}

.no-guides i {
    font-size: 2em;
    margin-bottom: 10px;
    color: #cbd5e0;
}

.loading-text {
    text-align: center;
    color: #718096;
    font-style: italic;
}

.user-footer {
    margin-top: 25px;
    text-align: center;
}

.btn-back, .btn-logout {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #e53e3e;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    font-family: inherit;
    font-size: 0.9em;
}

.btn-back {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    width: 100%;
    justify-content: center;
    margin-top: 15px;
}

.btn-back:hover {
    background: rgba(102, 126, 234, 0.15);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.15);
}

.back-to-login {
    margin-top: 20px;
}

/* ===== ESTILOS PWA ===== */
.install-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Notificaciones personalizadas */
.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 350px;
    width: 90%;
}

.custom-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i {
    color: #667eea;
    font-size: 1.2em;
}

.notification-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-text strong {
    color: #2d3748;
    font-size: 16px;
}

.notification-text span {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.3;
}

.notification-close {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 1.2em;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    color: #f56565;
    background: rgba(245, 101, 101, 0.1);
}

/* ===== ESTILOS PARA AUTENTICACIÓN Y NOTIFICACIONES ===== */

/* Estilos para la sección de autenticación */
.auth-section {
    text-align: center;
}

.g_id_signin {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

/* Información del usuario */
.user-info {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    gap: 15px;
}

.user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.user-details {
    flex: 1;
    text-align: left;
}

.user-details h3 {
    margin: 0 0 5px 0;
    color: white;
    font-size: 18px;
}

.user-details p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.btn-signout {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-signout:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* ===== ESTILOS PARA NOTIFICACIONES PUSH ===== */
.notifications-section {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.btn-notifications {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    justify-content: center;
    min-height: 50px;
}

.btn-notifications:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-notifications:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-notifications i {
    font-size: 1.1em;
    color: #ffd700;
}

.notification-status {
    margin-top: 12px;
    font-size: 14px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-height: 20px;
}

.status-default {
    color: #718096;
    background: rgba(255, 255, 255, 0.05);
}

.status-loading {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.status-enabled {
    color: #48bb78;
    background: rgba(72, 187, 120, 0.1);
}

.status-denied {
    color: #f56565;
    background: rgba(245, 101, 101, 0.1);
}

.status-error {
    color: #ed8936;
    background: rgba(237, 137, 54, 0.1);
}

/* Display del token FCM */
.token-display {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.token-display h4 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 16px;
}

.token-display code {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    word-break: break-all;
    color: #ffd700;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-copy {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ===== MEDIA QUERIES RESPONSIVE ===== */

@media (max-width: 480px) {
    body {
        padding: 12px;
    }
    
    .card {
        border-radius: 20px;
    }
    
    .card-header {
        padding: 24px 20px 18px;
    }
    
    .card-content {
        padding: 24px 20px;
    }
    
    .logo-container {
        gap: 12px;
    }
    
    .logo-img {
        max-width: 250px;
        max-height: 100px;
    }
    
    .welcome-icon {
        width: 62px;
        height: 62px;
        font-size: 1.6em;
    }
    
    .welcome-section h2 {
        font-size: 1.3em;
    }
    
    .info-text {
        font-size: 0.9em;
    }
    
    /* Responsive para perfil de usuario */
    .user-profile-section {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .user-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .user-avatar-profile {
        width: 50px;
        height: 50px;
    }
    
    .user-info-profile {
        text-align: center;
    }
    
    .profile-name {
        font-size: 1.1em;
    }
    
    .profile-email {
        font-size: 0.85em;
    }
    
    .btn-signout-profile {
        width: 100%;
        justify-content: center;
    }
    
    /* Responsive para Mis Reparaciones */
    .mis-reparaciones-section {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .reparacion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .folio {
        font-size: 0.85em;
    }
    
    .estado-badge {
        font-size: 0.75em;
        padding: 0.2rem 0.6rem;
    }
    
    .additional-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .floating-element {
        display: none;
    }
    
    .btn-quick-consult {
        padding: 11px 18px;
        font-size: 0.9em;
    }
    
    .quick-consult-hint {
        font-size: 0.8em;
    }
    
    .install-button {
        bottom: 70px;
        right: 15px;
        font-size: 0.8em;
        padding: 10px 16px;
    }
    
    .user-header {
        flex-direction: column;
        text-align: center;
    }
    
    .user-avatar {
        width: 50px;
        height: 50px;
    }
    
    .user-info h3 {
        font-size: 1.1em;
    }
}

@media (max-width: 375px) {
    body {
        padding: 10px;
    }
    
    .card {
        border-radius: 18px;
    }
    
    .card-header {
        padding: 22px 18px 16px;
    }
    
    .card-content {
        padding: 22px 18px;
    }
    
    .logo-img {
        max-width: 200px;
        max-height: 80px;
    }
    
    .welcome-icon {
        width: 58px;
        height: 58px;
        font-size: 1.5em;
    }
    
    .welcome-section h2 {
        font-size: 1.25em;
    }
    
    .form-input {
        padding: 14px 40px 14px 14px;
        font-size: 0.92em;
    }
    
    .btn {
        padding: 14px;
        font-size: 0.92em;
    }
    
    .info-card {
        padding: 12px;
    }
    
    .info-icon {
        width: 36px;
        height: 36px;
        font-size: 1em;
    }
    
    .card-footer {
        padding: 16px 20px;
    }
    
    .btn-quick-consult {
        padding: 10px 16px;
        font-size: 0.88em;
    }
    
    /* Ajustes adicionales para perfil de usuario */
    .user-profile-section {
        padding: 14px;
    }
    
    .user-avatar-profile {
        width: 45px;
        height: 45px;
    }
    
    .profile-name {
        font-size: 1em;
    }
    
    .profile-email {
        font-size: 0.8em;
    }
}

@media (max-width: 320px) {
    .card {
        border-radius: 16px;
    }
    
    .card-header {
        padding: 20px 16px 14px;
    }
    
    .card-content {
        padding: 20px 16px;
    }
    
    .logo-img {
        max-width: 180px;
        max-height: 70px;
    }
    
    .welcome-section h2 {
        font-size: 1.2em;
    }
    
    .info-text {
        font-size: 0.85em;
    }
    
    .form-input {
        padding: 13px 38px 13px 13px;
    }
    
    .btn {
        padding: 13px;
    }
    
    .btn-quick-consult {
        padding: 9px 14px;
        font-size: 0.85em;
    }
    
    .quick-consult-hint {
        font-size: 0.78em;
    }
    
    /* Ajustes finales para perfil de usuario */
    .user-profile-section {
        padding: 12px;
    }
    
    .user-avatar-profile {
        width: 40px;
        height: 40px;
    }
    
    .profile-name {
        font-size: 0.95em;
    }
    
    .profile-email {
        font-size: 0.75em;
    }
    
    .btn-signout-profile {
        font-size: 0.8em;
        padding: 8px 12px;
    }
}

/* Mejoras para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: 0 7px 18px rgba(102, 126, 234, 0.3);
    }
    
    .info-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .volver:hover {
        transform: none;
    }
    
    .form-input:focus {
        transform: none;
    }
    
    .btn-quick-consult:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    }
    
    .install-button:hover {
        transform: none;
    }
    
    .btn-signout-profile:hover {
        transform: none;
        box-shadow: none;
    }
    
    .reparacion-card:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}

/* Soporte para orientación horizontal en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 8px;
        align-items: flex-start;
    }
    
    .container {
        margin: 8px auto;
    }
    
    .card {
        max-width: 95%;
    }
    
    .card-content {
        padding: 20px 24px;
    }
    
    .additional-info {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
    }
    
    .welcome-section {
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    /* Ajustes para perfil de usuario en landscape */
    .user-profile-header {
        flex-direction: row;
        text-align: left;
    }
    
    .user-info-profile {
        text-align: left;
    }
}

html, body {
  touch-action: manipulation;
  -webkit-text-size-adjust: none;
}

/* Mejoras para móviles adicionales */
@media (max-width: 768px) {
    .notifications-section {
        margin-top: 20px;
        padding: 15px;
    }
    
    .btn-notifications {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .notification-status {
        font-size: 12px;
        padding: 10px;
    }
    
    .token-display code {
        font-size: 10px;
        padding: 8px;
    }
}