/* =====================================================
   SISTEMA DE TICKETS - ESTILOS
   Consultoría Integral TI MX
   ===================================================== */

/* Hero */
.support-hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/imagenes/Gemini_Generated_Image_sga60xsga60xsga6.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    margin-top: -130px;
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.support-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.support-hero .container {
    position: relative;
    z-index: 2;
}

.support-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.support-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.4);
    line-height: 1.6;
}

/* Section */
.support-section {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Form Card */
.ticket-form-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.ticket-form-card h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group .required {
    color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Sidebar */
.support-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.sidebar-card h3 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.sidebar-card p {
    margin-bottom: 10px;
    color: #555;
}

.sidebar-card p i {
    width: 20px;
    color: var(--primary-color);
}

.sidebar-card a {
    color: #333;
    text-decoration: none;
}

.sidebar-card a:hover {
    color: var(--primary-color);
}

.track-form {
    display: flex;
    gap: 10px;
}

.track-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.track-form button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #d4edda;
    color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
}

.success-message h2 {
    color: #28a745;
    margin-bottom: 15px;
}

.ticket-number {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
}

.ticket-number span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.success-actions a {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Ticket View */
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.ticket-title h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.ticket-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ticket-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.ticket-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 30px;
}

.info-item label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.info-item span {
    font-weight: 600;
    color: #333;
}

/* Conversation */
.conversation {
    margin-top: 30px;
}

.conversation h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.message {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.message.staff {
    background: #e8f4fd;
    border-left: 4px solid var(--primary-color);
}

.message.client {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
}

.message-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.message.client .message-avatar {
    background: #6c757d;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.message-author {
    font-weight: 600;
    color: #333;
}

.message-date {
    font-size: 0.85rem;
    color: #666;
}

.message-body {
    color: #444;
    line-height: 1.6;
}

/* Reply Form */
.reply-form {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border: 1px solid #eee;
}

.reply-form h4 {
    margin-bottom: 15px;
}

.reply-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 992px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .support-sidebar {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-card {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .support-hero h1 {
        font-size: 2rem;
        text-shadow: 2px 2px 6px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.5);
    }
    
    .support-hero p {
        font-size: 1rem;
        text-shadow: 2px 2px 5px rgba(0,0,0,0.8), 0 0 12px rgba(0,0,0,0.4);
    }
    
    .ticket-form-card {
        padding: 25px;
    }
    
    .ticket-header {
        flex-direction: column;
    }
    
    .success-actions {
        flex-direction: column;
    }
}
