/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding-top: 2rem;
}

/* Header */
header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 16px;
    margin: 0 2rem 2rem;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

header h1 {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

.company-name {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
}

/* Botón de regreso */
.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #2563eb;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 2rem 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-back-home:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Sección principal */
.request-section {
    padding: 2rem 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container > p {
    font-size: 1.2rem;
    color: #64748b;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #2563eb;
}

/* Formulario de subida */
.upload-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Área de subida */
.upload-area {
    background: white;
    border: 3px dashed #cbd5e1;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-area:hover {
    border-color: #2563eb;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-content {
    position: relative;
    z-index: 2;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.upload-area h3 {
    color: #1e40af;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upload-area p {
    color: #64748b;
    font-size: 1rem;
}

/* Detalles del equipo */
.equipment-details {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.equipment-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.equipment-details h3 {
    color: #1e40af;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

#equipmentSpecs {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 150px;
    transition: all 0.3s ease;
    background: #fafafa;
}

#equipmentSpecs:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#equipmentSpecs::placeholder {
    color: #94a3b8;
    line-height: 1.5;
}

/* Botón de envío */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:active {
    transform: translateY(0);
}

/* Estados de archivo cargado */
.upload-area.success {
    border-color: #10b981;
    background: #f0fdf4;
}

.upload-area.success .upload-icon {
    color: #10b981;
}

.upload-area.success h3 {
    color: #059669;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 1rem;
    }

    header {
        margin: 0 1rem 1rem;
        padding: 1.5rem 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .btn-back-home {
        margin: 0 1rem 1.5rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 1rem;
    }

    .upload-form {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .equipment-details {
        padding: 1.5rem;
    }

    .container > p {
        font-size: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    .company-name {
        font-size: 1rem;
    }

    .upload-area {
        padding: 1.5rem 0.5rem;
    }

    .upload-icon {
        font-size: 2.5rem;
    }

    .equipment-details {
        padding: 1rem;
    }

    #equipmentSpecs {
        min-height: 120px;
        padding: 0.75rem;
    }

    .btn-submit {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-form > * {
    animation: fadeInUp 0.6s ease forwards;
}

.equipment-details {
    animation-delay: 0.2s;
}

/* Efectos adicionales */
.upload-area:active {
    transform: scale(0.98);
}

.equipment-details:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Loading state para el botón */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-submit.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}