/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #f7fafc;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 60px;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

/* Visa Selection */
.visa-selection {
    margin-bottom: 60px;
}

.visa-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.visa-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.visa-card:hover {
    border-color: #4299e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.15);
}

.visa-card.selected {
    border-color: #3182ce;
    background: #ebf8ff;
}

.card-header {
    text-align: center;
    margin-bottom: 24px;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
}

.card-icon {
    text-align: center;
    margin-bottom: 24px;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.visa-type {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4a5568;
}

.features {
    list-style: none;
}

.features li {
    padding: 8px 0;
    color: #4a5568;
    position: relative;
    padding-left: 20px;
}

.features li::before {
    content: '•';
    color: #4299e1;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Form Section */
.form-section {
    max-width: 500px;
    margin: 0 auto;
}

.form-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.back-button {
    color: #4299e1;
    cursor: pointer;
    margin-bottom: 24px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: #3182ce;
}

.form-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.form-subtitle {
    color: #718096;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.form-group input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #4299e1;
    background: white;
}

.form-group input.error {
    border-color: #e53e3e;
}

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
}

.submit-btn {
    width: 100%;
    background: #4299e1;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background: #3182ce;
}

/* Certificate Section */
.certificate-section {
    max-width: 800px;
    margin: 0 auto;
}

.certificate-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.certificate {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
}

.certificate-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
}

.certificate-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.certificate-id {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #4a5568;
    background: #f7fafc;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
}

.certificate-body {
    text-align: center;
}

.holder-info {
    margin-bottom: 32px;
}

.holder-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visa-badge {
    display: inline-block;
    background: #4299e1;
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.certificate-details {
    background: #f7fafc;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row .label {
    font-weight: 500;
    color: #4a5568;
}

.detail-row .value {
    font-weight: 600;
    color: #1a202c;
}

.signature {
    text-align: right;
    margin-top: 40px;
}

.signature-line {
    display: inline-block;
    border-bottom: 2px solid #1a202c;
    padding-bottom: 4px;
    min-width: 200px;
    text-align: center;
    font-style: italic;
    color: #4a5568;
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.action-btn {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    border-color: #4299e1;
    color: #4299e1;
}

.action-btn.primary {
    background: #4299e1;
    border-color: #4299e1;
    color: white;
}

.action-btn.primary:hover {
    background: #3182ce;
    border-color: #3182ce;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .visa-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .visa-card {
        padding: 24px 20px;
    }
    
    .form-container,
    .certificate-container {
        padding: 24px;
    }
    
    .certificate {
        padding: 24px;
    }
    
    .holder-name {
        font-size: 2rem;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .certificate-header h2 {
        font-size: 1.5rem;
    }
    
    .holder-name {
        font-size: 1.5rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section,
.certificate-section {
    animation: fadeIn 0.3s ease-out;
}